From 428a386301ce24dfeaeeedeaaa4beb226aa8e6f2 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 3 Mar 2022 00:17:00 +0900 Subject: [PATCH] Update adb.js --- lib/adb.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() {