Update adb.js

This commit is contained in:
Namhyeon Go 2022-03-03 00:23:26 +09:00 committed by GitHub
parent 7dcd4ae1d6
commit a4bd4b987e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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