Appium+python solve the problem of installing unlock and appiumsetting on every run code (some Android models)
1, modify the Android-helpers.js file under Appium-android-driver\lib
Installation path \appium-desktop\resources\app\node_modules\appium\node_modules\appium-android-driver\lib\ Android-helpers.js
Await Adb.install (Unicodeimepath, {replace:false});---//comment out
Await Helpers.pushsettingsapp (ADB);---//comment out
Await Helpers.pushunlock (ADB);---//comment out
2, modify the Android-helpers.js file under Appium-android-driver\build\lib
Installation path \appium-desktop\resources\app\node_modules\appium\node_modules\appium-android-driver\build\lib\ Android-helpers.js
A,//return _regeneratorruntime.awrap (Adb.install (_appiumandroidime.path, {replace:false}));--//commented out
B, return Context$1$0.abrupt (' return ', defaultime);//---a new b
C,//return _regeneratorruntime.awrap (Helpers.pushsettingsapp (ADB));--//Comment out
D, return Context$1$0.abrupt (' return ', defaultime);//--c new D below
E,//return _regeneratorruntime.awrap (Helpers.pushunlock (ADB));----//commented out
F, return Context$1$0.abrupt (' return ', defaultime);//---E under new f
Modify 1 and 2 and save, restart Appium, run the code, and start the app normally.
Appium+python troubleshoot problems with installing unlock and appiumsetting every time that you run code