Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16377] CLI: Android: Restart adb if it stops seeing Android devices

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-09-02T21:46:44.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, CLI
Labelsandroidlib
ReporterChris Barber
AssigneeChris Barber
Created2014-02-05T01:22:10.000+0000
Updated2017-03-23T22:33:29.000+0000

Description

There are times when adb stops seeing an Android device despite being connected. This can be fixed by restarting adb, however it can be confusing when the Android build says there are no Android devices connected. To fix this, we need to scan all connected USB devices and identify all Android devices, then query "adb devices". If "adb devices" does not return all of the connected devices, then restart adb and try again. To detect connected USB devices on Mac OS X run system_profiler SPUSBDataType and on Linux run lsusb -v.

Comments

  1. Chris Barber 2016-09-02

    I haven't seen this in a long time. This just may have been a side effect of an old version of adb. In any case, I really don't want to do this ticket. It's a hack. We shouldn't have to querying the OS for connected USB devices to validate adb devices results.
  2. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source