From 6d379be3898d5e191d062d7cfb2b70edd7f5b510 Mon Sep 17 00:00:00 2001 From: ifsnow Date: Wed, 17 Apr 2019 09:37:18 +0900 Subject: [PATCH 1/2] fix: modified to update APK on Android --- packages/platform-android/src/commands/runAndroid/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/platform-android/src/commands/runAndroid/index.js b/packages/platform-android/src/commands/runAndroid/index.js index 08d587e31..603da7912 100644 --- a/packages/platform-android/src/commands/runAndroid/index.js +++ b/packages/platform-android/src/commands/runAndroid/index.js @@ -166,9 +166,9 @@ function tryInstallAppOnDevice(args, adbPath, device) { ); const pathToApk = `${buildDirectory}/${apkFile}`; - const adbArgs = ['-s', device, 'install', pathToApk]; + const adbArgs = ['-s', device, 'install', '-r', '-d', pathToApk]; logger.info( - `Installing the app on the device (cd android && adb -s ${device} install ${pathToApk}`, + `Installing the app on the device (cd android && adb -s ${device} install -r -d ${pathToApk}`, ); execFileSync(adbPath, adbArgs, { stdio: [process.stdin, process.stdout, process.stderr], From 26fb3ca11f2b0e5ff58e30b2e0b692d1456e857a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 17 Apr 2019 09:25:12 +0200 Subject: [PATCH 2/2] Update index.js --- packages/platform-android/src/commands/runAndroid/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/platform-android/src/commands/runAndroid/index.js b/packages/platform-android/src/commands/runAndroid/index.js index 603da7912..9248016af 100644 --- a/packages/platform-android/src/commands/runAndroid/index.js +++ b/packages/platform-android/src/commands/runAndroid/index.js @@ -166,9 +166,9 @@ function tryInstallAppOnDevice(args, adbPath, device) { ); const pathToApk = `${buildDirectory}/${apkFile}`; - const adbArgs = ['-s', device, 'install', '-r', '-d', pathToApk]; + const adbArgs = ['-s', device, 'install', '-rd', pathToApk]; logger.info( - `Installing the app on the device (cd android && adb -s ${device} install -r -d ${pathToApk}`, + `Installing the app on the device (cd android && adb -s ${device} install -rd ${pathToApk}`, ); execFileSync(adbPath, adbArgs, { stdio: [process.stdin, process.stdout, process.stderr],