Mobile Phones » Samsung Galaxy

ID #1075

Android - Setup ADB for Windows


For Windows

Want to set up ADB or Android Debugging Bridge on your PC, here is a quick guide for you. This tutorial does not need large download or full Android SDK installation. You will just have to download a small compressed file, which is all that you require.

  1. First download this file called ADBUNZIPTOCDRIVE.zip, just click on the link, download will start automatically.
  2. Now download PdaNet for driver installation. It comes with drivers from all major manufacturers, so this is all you need. Install PDAnet after downloading.
  3. Now extract the zip file that we downloaded in the first step to C drive and name the extracted folder ADB.
  4. Now we will go to the desktop and right click to make a new shortcut.
  5. Point the shortcut to ADB folder that we created in step 3, and name the shortcut ADB or whatever you want.
  6. Now right click on that shortcut and go to properties and change START IN field to c:\adb.
  7. Click Apply or OK and you are done. Click on ADB shortcut on the desktop and you are good to go.

 

Here is list of ADB commands that might be useful for you in the future.

adb devices – list all connected devices
adb push <local> <remote> – copy file/dir to device
adb pull <remote> [<local>] – copy file/dir from device
adb sync [ <directory> ] – copy host->device only if changed
adb shell – run remote shell interactively
adb shell <command> – run remote shell command
adb emu <command> – run emulator console command
adb logcat [ <filter-spec> ] – View device log
adb forward <local> <remote> – forward socket connections forward specs are one of: tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp – list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> – push this package file to the device and install it
adb uninstall [-k] <package> – remove this app package from the device (‘-k’ means keep the data and cache directories)
adb bugreport – return all information from the device
that should be included in a bug report.
adb help – show this help message
adb version – show version num
adb wait-for-device – block until device is online
adb start-server – ensure that there is a server running
adb kill-server – kill the server if it is running
adb get-state – prints: offline | bootloader | device
adb get-serialno – prints: <serial-number>
adb status-window – continuously print device status for a specified device
adb remount – remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] – reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader – reboots the device into the bootloader
adb root – restarts the adbd daemon with root permissions
adb usb – restarts the adbd daemon listening on USB
adb tcpip <port> – restarts the adbd daemon listening on TCP on the specified port

 

* Some useful commands

I think many of you were familiar with QTADB. It is easy to manage your phone with it. But geeks who are interested doing the stuff in different ways try some of these:

Go to command command prompt where your ADB installed. (assuming you are familiar installing adb before doing these) To install ADB download these and extract to any of the desired drive. Say D:\ or E:\ etc.

 

* Code to delete unwanted apps:

adb shell
su
mount -o remount,rw /dev/block/stl9 /system
rm /system/app/nameofapk.apk

 

* Code to add apps and stuff:

adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit

adb push nameofapk.apk /system/app/




Tags: android setup adb