標籤:wrap and install while runtime /usr als text 增加
(appium目錄不知道可以查看appium作業記錄)
修改目錄/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/build/lib/下的
android-helpers.js和driver.js檔案
android-helpers.js
注釋掉以下
helpers.pushSettingsApp = function callee$0$0(adb) {
return _regeneratorRuntime.async(function callee$0$0$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
_logger2[‘default‘].debug("Pushing settings apk to device...");
context$1$0.prev = 1;
context$1$0.next = 4;
//return _regeneratorRuntime.awrap(adb.installOrUpgrade(_ioAppiumSettings.path, SETTINGS_HELPER_PKG_ID));//注釋掉
return;//增加
helpers.initUnicodeKeyboard = function callee$0$0(adb) {
var defaultIME, appiumIME;
return _regeneratorRuntime.async(function callee$0$0$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
_logger2[‘default‘].debug(‘Enabling Unicode keyboard support‘);
_logger2[‘default‘].debug("Pushing unicode ime to device...");
context$1$0.next = 4;
//return _regeneratorRuntime.awrap(adb.install(_appiumAndroidIme.path, false));//注釋掉
return;//增加
context$1$0.next = 14;
//return _regeneratorRuntime.awrap(helpers.pushSettingsApp(adb));//注釋掉
return;//增加
context$1$0.next = 17;
//return _regeneratorRuntime.awrap(helpers.pushUnlock(adb));//注釋掉
return;//增加
appium 1.6.x版本去除安裝Unlock、Setting