install method
Future<void>
install({
- required String apkPath,
- AdbInstallOptions? installOptions,
- bool debug = false,
Installs an APK on the device.
apkPath is the path to the APK file.
installOptions is optional and can be used to specify additional options.
Returns the result of the installation.
Implementation
Future<void> install({required String apkPath, AdbInstallOptions? installOptions, bool debug = false}) async {
final args = ['install'];
if (installOptions != null) {
args.addAll(installOptions.toArgs());
}
await _bridge.executor.execute([..._connection.arguments, ...args, apkPath], debug: debug);
}