mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update adb.js
This commit is contained in:
parent
a4bd4b987e
commit
90f8ce6cd9
|
@ -71,9 +71,14 @@ function ADBObject() {
|
||||||
};
|
};
|
||||||
|
|
||||||
// install APK file
|
// install APK file
|
||||||
this.install = function(filename) {
|
this.install = function(id, filename) {
|
||||||
return SHELL.exec([this.binPath, "-s", id, "install", "data\\" + filename]);
|
return SHELL.exec([this.binPath, "-s", id, "install", "data\\" + filename]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Uninstall the App
|
||||||
|
this.uninstall = function(id, appname) {
|
||||||
|
return SHELL.exec([this.binPath, "-s", id, "uninstall", appname]);
|
||||||
|
};
|
||||||
|
|
||||||
// reboot device
|
// reboot device
|
||||||
this.reboot = function(id) {
|
this.reboot = function(id) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user