1. Documents:/applications/appium.app/contents/resources/node_modules/appium/node_modules/appium-android-driver/lib/ Driver.js, comment The following lines of code
await this.adb.uninstallApk(this.opts.appPackage);
await helpers.installApkRemotely(this.adb, this.opts);
await helpers.resetApp(this.adb, this.opts.app, this.opts.appPackage, this.opts.fastReset);
await this.checkPackagePresent();
2. Documents:/applications/appium.app/contents/resources/node_modules/appium/node_modules/appium-android-driver/build/ Lib/driver.js, comment The following lines of code: Return _regeneratorruntime.awrap (_androidhelpers2[' Default '].resetapp (THIS.ADB, This.opts.app, This.opts.appPackage, This.opts.fastReset)); Return _regeneratorruntime.awrap (THIS.ADB.UNINSTALLAPK (This.opts.app)); Return _regeneratorruntime.awrap (_androidhelpers2[' Default '].installapkremotely (THIS.ADB, this.opts)); Return _regeneratorruntime.awrap (This.checkpackagepresent ()); 3. Documents:/applications/appium.app/contents/resources/node_modules/appium/node_modules/appium-android-driver/lib/ Android-helpers.js comment The following lines of code
await adb.
install
(unicodeIMEPath,
false
);
await helpers.pushSettingsApp(adb);
await helpers.pushUnlock(adb);
4. Document/applications/appium.app/contents/resources/node_modules/appium/node_modules/appium-android-driver/build/ Lib/android-helpers.js Replace the following lines of code with return _regeneratorruntime.awrap (Helpers.initunicodekeyboard (ADB)) instead of return Context$1$0.abrupt (' return ', defaultime); Return _regeneratorruntime.awrap (Helpers.pushsettingsapp (ADB)); Replace with return Context$1$0.abrupt (' return ', defaultime); Return _regeneratorruntime.awrap (Helpers.pushunlock (ADB)); Replace with return Context$1$0.abrupt (' return ', defaultime);
Appium prohibit appium setting and unlock from being repeatedly installed on the device