Create devutil.js

This commit is contained in:
thinkhy
2017-06-11 18:02:31 +08:00
committed by GitHub
parent 441319dca1
commit 08d9220b58

View File

@@ -42,7 +42,7 @@ devutil.listPidsByComm = function(adb, serial, comm, bin) {
return adb.shell(serial, ['ps', comm])
.then(function(out) {
return new Promise(function(resolve) {
var header = false
var header = true
var pids = []
out.pipe(split())
.on('data', function(chunk) {