Commands
Commands
ADB Commands:
———————————————————————————————————————————————————————————————————————
adb help
• Shows ADB Help Documentation.
adb devices
• Lists all the Android Devices connected via ADB.
adb reboot
• Reboots your Android Device.
adb install
• Helps you install an APK File on your Android Device.
adb uninstall
• Helps you install an App File on your Android Device.
adb logcat
• Displays the Log Data onto the Screen.
adb bugreport
• Displays the Dumpsys, Dumpstate and Logcat Data on the Screen.
adb jdwp
• Lists the JDWP (Java Debug Wire Protocol) Processes on the Device.
adb get-serialno
• Shows the adb instance Serial Number String with the Device.
adb get-state
• Displays the Device Status.
adb wait-for-device
• Used to set a Delay before the next Command is issued.
It executes when the Device is online but it can be programmed to wait till another
Process is done.
adb start-server
• Starts the ADB Server Process.
adb kill-server
• Stops the ADB Server Process.
———————————————————————————————————————————————————————————————————————
ADB Shell Commands:
———————————————————————————————————————————————————————————————————————
adb shell
• Starts the Remote Shell Command Console in the Device.
mkdir /sdcard/Android
• Creates a new Folder named "Android" under "/sdcard"
cp /sdcard/filename.apk /sdcard/FolderName/
• To copy a File.
mv /sdcard/filename.apk /sdcard/FolderName/
• To move a File.
mv /sdcard/filename.apk /sdcard/anotherfilename.apk
• To rename a File.
———————————————————————————————————————————————————————————————————————
Fastboot Commands:
———————————————————————————————————————————————————————————————————————
fastboot devices
• List all the Android Devices that are connected in Fastboot Mode to your
Computer.
fastboot flash
• Used to flash Files on your Android Device.