Command Line:
adb devices -l
List of devices attached
9591163035000RU device product:PD2085 model:V2085A device:PD2085 transport_id:24
a9bdcc8c device product:PD1821 model:V1821A device:PD1821 transport_id:23
10.13.209.82:9999 device product:PD2085 model:V2085A device:PD2085 transport_id:19
demo.go:
Starting server…
Server version: 41
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running, locked to thread]:
github.com/zach-klippenstein/goadb.parseKeyVal(...)
~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:86
github.com/zach-klippenstein/goadb.parseDeviceAttributes({0xc0004a40e0, 0x4, 0xc0004aa000?})
~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:77 +0x125
github.com/zach-klippenstein/goadb.parseDeviceLong({0xc0004aa000?, 0xc0004a20b0?})
~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:70 +0x4f
github.com/zach-klippenstein/goadb.parseDeviceList({0xc0004a0100, 0xff}, 0xa21a68)
~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:47 +0x132
github.com/zach-klippenstein/goadb.(*Adb).ListDevices(0xc00033aaa0)
~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/adb.go:130 +0x56
main.main()
~/test_goadb.go:39 +0x2b1
demo.go: Starting server… Server version: 41 panic: runtime error: index out of range [1] with length 1 goroutine 1 [running, locked to thread]: github.com/zach-klippenstein/goadb.parseKeyVal(...) ~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:86 github.com/zach-klippenstein/goadb.parseDeviceAttributes({0xc0004a40e0, 0x4, 0xc0004aa000?}) ~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:77 +0x125 github.com/zach-klippenstein/goadb.parseDeviceLong({0xc0004aa000?, 0xc0004a20b0?}) ~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:70 +0x4f github.com/zach-klippenstein/goadb.parseDeviceList({0xc0004a0100, 0xff}, 0xa21a68) ~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/device_info.go:47 +0x132 github.com/zach-klippenstein/goadb.(*Adb).ListDevices(0xc00033aaa0) ~/go/pkg/mod/github.com/zach-klippenstein/goadb@v0.0.0-20201208042340-620e0e950ed7/adb.go:130 +0x56 main.main() ~/test_goadb.go:39 +0x2b1