Android Debug Bridge (adb) is a tool that lets you manage the state of an emulator instance or Android phone. ADB is bundled with Android SDK package that can be downloaded from Android SDK download page. This tool is usefull for communicating with Android phone such as install application, copy files from/to device and perform some linux shell commands.
How to Install
Phone Setup
In order to use ADB, you have to enable USB Debugging option in phone settings (Settings->Applications->Development)

How to Use
Update!!
New Android SDK puts adb executable file on \platform-tools directory instead of tool. So the path should be D:\android-sdk-windows\platform-tools
Usefull Commands
1. Check connected phone
Syntax: adb devices

2. Login to Android shell
Syntax: adb shell
![]()
Note:
If you get ‘#’ after typing adb shell, you are already get root access on the phone, no need to type su. Otherwise if you get ‘$’ , type ’su’ to get root access (only for rooted device).
3. Some usefull shell commands
List directory
Syntax: ls [path]
Example:
#ls /system/lib
Copy file or directory
Syntax: cp [options] source dest
Note:
To copy or delete files in Android root directories you have to change the directory access mode to ‘read and write (rw)’ using command: remount rw
Example:
#remount rw
#cp /sdcard/libsec-ril.so /system/lib
#remount ro
Move file or directory
Syntax: mv [options] source dest
Example:
#mv /system/lib/libsec-ril.so /sdcard/backup
Change file/directory permission
Syntax: chmod [-R] mode[,mode] …. file
Example:
#chmod 0644 /system/lib/libsec-ril.so
Remove file or directory
Syntax: rm [options] file
Example:
#rm /system/lib/libsec-ril.so
4. Install application
You can use adb to install aplication from your local drive into phone.
Syntax: adb install appname.apk
Example:
D:\android-sdk-windows\tools\adb install D:\AnReboot.apk

5. Copy files from phone to local drive
Syntax: adb pull source [destination]
Example:
D:\android-sdk-windows\tools\adb pull /sdcard/arm11-dvm.zip
D:\android-sdk-windows\tools\adb pull /sdcard/arm11-dvm.zip D:\

5. Copy files from local drive to phone
Syntax: adb push source destination
Example:
D:\android-sdk-windows\tools\adb push D:\AnReboot.apk /sdcard

I’ve got root access, ran my windows cmd shell in admin mode, opened the adb tool with ‘adb shell’ command.. then i was able to run linux commands so i know it was running (have the ‘#’ sign). I ran the ‘remount rw’ command but got a remount: not found error. When i attempt to delete or chmod files i get a ‘read-only file system’ error and get denied. Does anyone know how i change this ‘read-only file system’ setting? Would really like to change my boot animation. Thanks!
Sorry was too hasty in posting here; i figured it out. Just had to run the commands from my windows shell using the adb.exe like so: ‘D:android-sdkplatform-tools>adb remount’.
It displayed ‘remount succeeded’ and then was able to go in and gain access to the file-system.
My problem is that I have a Craneboard with a precompiled Android image. I can only connect to the device through the serial port. After booting, it outputs to the terminal the # sign. So far, so goog. My problem is that I cannot install an application by using this shell.
I know that from windows one has to issue a adb instal App.apk command. But what is the command from inside the shell?
Many thanks!
i have a rooted samsung galaxy s plus after i type on cmd adb shell su,he give me this # sign, and im stock on it i cannot do other command.. any help pls.
im using rooted samsung galaxy s plus, and im inside the adb shell su, what is the command to copy application from my computer to my phone?