CB-9080 Cordova CLI run for Android versions 4.1.1 and lower throws error

This commit is contained in:
daserge 2015-09-23 18:44:41 +03:00
parent bf57aa1df0
commit afa61aeb09
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {