refactor: replace gadb with optimized version authoried by @appl3s

This commit is contained in:
lilong.129
2023-04-13 22:41:45 +08:00
parent 6600473855
commit 3d4dffbd0b
13 changed files with 509 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ var listAndroidDevicesCmd = &cobra.Command{
return errors.Wrap(err, "list android devices failed")
}
var deviceList []gadb.Device
var deviceList []*gadb.Device
// filter by serial
for _, d := range devices {
if serial != "" && serial != d.Serial() {