Skip to Content

Android studio hangs “Waiting for ADB” »
« Some great in depth turtorials and slide for Android tasks
submit to reddit

This is for when you have not been able to boot your phone and need to get files off it.
The device (a Nexus 4) turns on but never makes it past the loading screen.
So it doesn’t finish booting – but mine had booted enough to have ADB running.

To use this method you need to have ADB installed on the host. (e.g. install dev tools – see [1])

* To get the list we use ADB shell
$ adb shell
shell@mako:/ $ ls /sdcard/                                                     
...    
DCIM/                                 
shell@mako:/ $ ls /sdcard/DCIM/                                                
100ANDRO/                 Camera/                 

shell@mako:/ $ ls /sdcard/DCIM/Camera/        
... (list files)

* Take this list (select+copy) and paste to to a local file say picnames.txt
* Then execute
$ cat picnames.txt | xargs -I % adb pull /sdcard/DCIM/Camera/%
7003 KB/s (3677132 bytes in 0.512s)  ...

This should copy the files to the local directory … phew!

refs:
[1] http://developer.android.com/sdk/index.html

No comments yet!

You can be legendary and add one ...

All spam will be deleted - don't waste my time and yours. Fackbook profiles posted will be reported to FB as spam accounts


Allowed HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*

By submitting a comment you grant Sentinel Web Technologies a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.

Android studio hangs “Waiting for ADB” »
« Some great in depth turtorials and slide for Android tasks