From 650a928b21afaafa2b439eb314435ebb14729a9f Mon Sep 17 00:00:00 2001 From: adelphes Date: Sun, 22 Jan 2017 21:56:21 +0000 Subject: [PATCH] Always specify device serial in port-forward cmd Fixes #4 --- src/adbclient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adbclient.js b/src/adbclient.js index 60aaf9d..f2202d9 100644 --- a/src/adbclient.js +++ b/src/adbclient.js @@ -158,7 +158,7 @@ ADBClient.prototype = { }) .then(function(data) { this.fd = data; - return this.dexcmd_read_status('forward', 'wa', this.fd, 'host:forward:tcp:'+x.o.localport+';jdwp:'+x.o.jdwp); + return this.dexcmd_read_status('forward', 'wa', this.fd, 'host-serial:'+this.deviceid+':forward:tcp:'+x.o.localport+';jdwp:'+x.o.jdwp) }) .then(function(data) { return this.dexcmd('dc', this.fd);