Appium prohibit appium setting and unlock from being repeatedly installed on the device

Source: Internet
Author: User
Tags appium

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.