Update adb.js

This commit is contained in:
Namhyeon Go 2022-03-03 00:17:00 +09:00 committed by GitHub
parent 69d0c0d307
commit 428a386301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,16 @@ function ADBObject() {
return "";
}
};
// download a file from target device
this.pull = function(id, path) {
return SHELL.exec([this.binPath, "-s", id, "pull", path, "data\\"]);
};
// upload a file to target device
this.push = function(id, filename, dstpath) {
return SHELL.exec([this.binPath, "-s", id, "push", "data\\" + filename, dstpath]);
};
}
exports.create = function() {