diff --git a/lib/adb.js b/lib/adb.js index e3d3c67..20959c1 100644 --- a/lib/adb.js +++ b/lib/adb.js @@ -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() {