{ "id": "125875", "key": "TIMOB-16377", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-09-02T21:46:44.000+0000", "created": "2014-02-05T01:22:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "androidlib" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-23T22:33:29.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "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.\r\n\r\nTo 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.\r\n\r\nTo detect connected USB devices on Mac OS X run {{system_profiler SPUSBDataType}} and on Linux run {{lsusb -v}}.", "attachment": [], "flagged": false, "summary": "CLI: Android: Restart adb if it stops seeing Android devices", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "395243", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I haven't seen this in a long time. This just may have been a side effect of an old version of adb.\r\n\r\nIn 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.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-02T21:46:44.000+0000", "updated": "2016-09-02T21:46:44.000+0000" }, { "id": "415451", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:33:29.000+0000", "updated": "2017-03-23T22:33:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }