From afa61aeb0915fd4334d266bdfee759ab9bbb52db Mon Sep 17 00:00:00 2001 From: daserge Date: Wed, 23 Sep 2015 18:44:41 +0300 Subject: [PATCH] CB-9080 Cordova CLI run for Android versions 4.1.1 and lower throws error --- bin/templates/cordova/lib/device.js | 2 +- bin/templates/cordova/lib/emulator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/templates/cordova/lib/device.js b/bin/templates/cordova/lib/device.js index 560f26db..f0d6f893 100644 --- a/bin/templates/cordova/lib/device.js +++ b/bin/templates/cordova/lib/device.js @@ -104,7 +104,7 @@ module.exports.install = function(target, buildResults) { return exec('adb -s ' + resolvedTarget.target + ' uninstall ' + pkgName, os.tmpdir()) .then(function() { console.log('Installing app on device...'); - var cmd = 'adb -s ' + resolvedTarget.target + ' install -r -d "' + apk_path + '"'; + var cmd = 'adb -s ' + resolvedTarget.target + ' install -r "' + apk_path + '"'; return exec(cmd, os.tmpdir()); }) .then(function(output) { diff --git a/bin/templates/cordova/lib/emulator.js b/bin/templates/cordova/lib/emulator.js index a27d0d3e..4e58c92b 100644 --- a/bin/templates/cordova/lib/emulator.js +++ b/bin/templates/cordova/lib/emulator.js @@ -344,7 +344,7 @@ module.exports.install = function(givenTarget, buildResults) { var retriedInstall = retry.retryPromise( NUM_INSTALL_RETRIES, - exec, 'adb -s ' + target.target + ' install -r -d "' + apk_path + '"', os.tmpdir(), execOptions + exec, 'adb -s ' + target.target + ' install -r "' + apk_path + '"', os.tmpdir(), execOptions ); return retriedInstall.then(function (output) {