Android Debug Bridge - adb shell guide

From thelinuxwiki
Revision as of 12:18, 3 February 2014 by Nighthawk (Talk | contribs)

Jump to: navigation, search

Android Debug Bridge

connecting to a physical phone using adb

enable developer usb debugging

go to and enable: Settings > Applications > Development > USB debugging

enabling app installation

go to and enable: Settings > Applications > Unknown sources


command line

The adb command line utility is installed as part of the Android SDK

list locally attached devices

$ adb devices
List of devices attached 
c7b5b844        device

run shell interactively

$ adb shell
shell@android:/ $ 

at this point you are connected to your device. You can move around the phone file system, list files, etc..

copy files off the device

 $ adb pull /pathtofileondevice localfilename

copy files to the device

 $ adb push localfilename /pathtofileondevice

Full Android Debug Bridge reference at android.com