installApk static method

Future<String?> installApk(
  1. String filePath,
  2. String appId
)

for Android : install apk by its file absolute path; if the target platform is higher than android 24: a appId is required (the caller's applicationId which is defined in build.gradle)

Implementation

static Future<String?> installApk(String filePath, String appId) async {
  Map<String, String> params = {'filePath': filePath, 'appId': appId};
  return await _channel.invokeMethod('installApk', params);
}