Always specify device serial in port-forward cmd

Fixes #4
This commit is contained in:
adelphes
2017-01-22 21:56:21 +00:00
parent 4347d90514
commit 650a928b21

View File

@@ -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);