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()) return exec('adb -s ' + resolvedTarget.target + ' uninstall ' + pkgName, os.tmpdir())
.then(function() { .then(function() {
console.log('Installing app on device...'); 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()); return exec(cmd, os.tmpdir());
}) })
.then(function(output) { .then(function(output) {

View File

@ -344,7 +344,7 @@ module.exports.install = function(givenTarget, buildResults) {
var retriedInstall = retry.retryPromise( var retriedInstall = retry.retryPromise(
NUM_INSTALL_RETRIES, 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) { return retriedInstall.then(function (output) {