From 09f537511ba228eab5d79c27f2c8b606f08b1635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=98=E6=A0=91=40=E9=98=BF=E9=87=8C?= Date: Tue, 1 Oct 2019 11:23:45 +0800 Subject: [PATCH] add product, model, device, transportId output ![](https://img.alicdn.com/tfs/TB1X3nVhO_1gK0jSZFqXXcpaXXa-2158-668.png) add product, model, device and transportId parse result return. --- src/adb/command/host/deviceswithpaths.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adb/command/host/deviceswithpaths.coffee b/src/adb/command/host/deviceswithpaths.coffee index d1b9deef..a777c974 100644 --- a/src/adb/command/host/deviceswithpaths.coffee +++ b/src/adb/command/host/deviceswithpaths.coffee @@ -25,8 +25,8 @@ class HostDevicesWithPathsCommand extends Command for line in value.toString('ascii').split '\n' if line # For some reason, the columns are separated by spaces instead of tabs - [id, type, path] = line.split /\s+/ - devices.push id: id, type: type, path: path + [id, type, path, product, model, device, transportId] = line.split /\s+/ + devices.push id: id, type: type, path: path, product: product, model: model, device: device, transportId: transportId return devices module.exports = HostDevicesWithPathsCommand