Comparing version 1.1.0 to 1.1.1
@@ -342,3 +342,3 @@ (function() { | ||
_this = this; | ||
temp = Sync.temp(apk); | ||
temp = Sync.temp(typeof apk === 'string' ? apk : '_stream.apk'); | ||
return this.push(serial, apk, temp, function(err, transfer) { | ||
@@ -357,3 +357,3 @@ if (err) { | ||
} | ||
return _this.shell(serial, "rm -f " + temp, function(err, out) { | ||
return _this.shell(serial, ['rm', '-f', temp], function(err, out) { | ||
return callback(err); | ||
@@ -360,0 +360,0 @@ }); |
@@ -41,3 +41,3 @@ (function() { | ||
}); | ||
return this._send("shell:pm install -r " + apk + " 2>/dev/null"); | ||
return this._send("shell:pm install -r '" + apk + "' 2>/dev/null"); | ||
}; | ||
@@ -44,0 +44,0 @@ |
{ | ||
"name": "adbkit", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -283,3 +283,3 @@ # adbkit | ||
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`. | ||
* **apk** The path to the APK file. | ||
* **apk** When `String`, interpreted as a path to an APK file. When [`Stream`][node-stream], installs directly from the stream, which must be a valid APK. | ||
* **callback(err)** | ||
@@ -286,0 +286,0 @@ - **err** `null` when successful, `Error` otherwise. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139469