Jump to content


Photo

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


  • Please log in to reply
1 reply to this topic

#1 xaueious

xaueious

    Advanced Member

  • Hero Member
  • PipPipPip
  • 954 posts
  • LocationOntario

Posted 01 July 2010 - 05:55 PM

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-dev...ad.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-dev...ad.php?t=502010Linux: http://forum.xda-dev...ad.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
adb devices
Diagnostic Android log
adb logcat
Linux Kernel Messages
adb shellcat /proc/kmsg
Install a specific APK file
adb install filename_of_the_app.apk
Pull (grab) a file from your device to your current working directory on your PC
adb pull filename_or_directory_name_in_device .
Push (put) a file from your current working directory to your device
adb push filename_or_directory_name_of_file_to_push destination_on_device
Quick reboot
adb shell reboot
Look at the tasks running on your device
adb shell top
Check memory usage
adb shell free
Check storage usage
adb shell busybox df -h


#2 rokky

rokky

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 180 posts

Posted 01 October 2010 - 08:04 PM

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.