mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update adb.js
This commit is contained in:
parent
7dcd4ae1d6
commit
a4bd4b987e
10
lib/adb.js
10
lib/adb.js
|
@ -69,6 +69,16 @@ function ADBObject() {
|
|||
this.push = function(id, filename, path) {
|
||||
return SHELL.exec([this.binPath, "-s", id, "push", "data\\" + filename, path]);
|
||||
};
|
||||
|
||||
// install APK file
|
||||
this.install = function(filename) {
|
||||
return SHELL.exec([this.binPath, "-s", id, "install", "data\\" + filename]);
|
||||
};
|
||||
|
||||
// reboot device
|
||||
this.reboot = function(id) {
|
||||
return SHELL.exec([this.binPath, "-s", id, "reboot"]);
|
||||
};
|
||||
}
|
||||
|
||||
exports.create = function() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user