Android Tablets Forum banner

[RESOURCE] How to use ADB (Android Debug Bridge)

8016 Views 1 Reply 2 Participants Last post by  rokky
ADB is a tool you can use to pull diagnostic information to your device or to perform other debugging commands. XDA developers has good documentation on how to get it to work. Windows:http://forum.xda-developers.com/showthread.php?t=532719Drivers only: http://www.multiupload.com/WV7RGN4JZ8You can also use Droid Explorer for an automatic install and a Windows explorer-like interfaceMac: http://forum.xda-developers.com/showthread.php?t=502010Linux: http://forum.xda-developers.com/showthread.php?t=537508Things you need:Android SDK - DownloadPCmale mini-USB to male USB Cable that comes in the box--------------------------------------------------------------------------Common commands for adbCheck if device is connected properly
Code:
adb devices
Diagnostic Android log
Code:
adb logcat
Linux Kernel Messages
Code:
adb shellcat /proc/kmsg
Install a specific APK file
Code:
adb install filename_of_the_app.apk
Pull (grab) a file from your device to your current working directory on your PC
Code:
adb pull filename_or_directory_name_in_device .
Push (put) a file from your current working directory to your device
Code:
adb push filename_or_directory_name_of_file_to_push destination_on_device
Quick reboot
Code:
adb shell reboot
Look at the tasks running on your device
Code:
adb shell top
Check memory usage
Code:
adb shell free
Check storage usage
Code:
adb shell busybox df -h
1 - 2 of 2 Posts
If you want to run this on a Linux system, and you are not running your terminal session as root (good idea NOT to as a standard security practice), you need to start the adb server with root privileges thus:sudo adb start-serverNote that your Id will need sudo access for that to work.
1 - 2 of 2 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top