amo13 / Anarchy-Droid

One-Click Android Rom Installation Assistant
https://anarchy-droid.com
GNU General Public License v3.0
113 stars 15 forks source link

Weird responses to adb state query #23

Closed amo13 closed 2 years ago

amo13 commented 2 years ago

Collecting them here for reference. Maybe that can help address some adb-related issues.


On linux with gta4lwifi (SM-T500) in adb.State()

unknown state:
StdOUT:
StdERR:adb server version (39) doesn't match this client (41); killing...
* daemon started successfully
error: no devices/emulators found

amo13 commented 2 years ago

Choose to ignore the warning. Should be fixed by doing strings.Contains(stderr, "error: no devices/emulators found") instead of strings.HasPrefix(stderr, "error: no devices/emulators found")