ADB: Basics [Windows only]
Here is a thread to help the new people with ADB
1. Turn on ADB
Go to Menu > Settings > Applications > Development > USB Debugging
2. Running ADB
To run ADB, downolad the newest Android SDK and place it in C: and rename it AndroidSDK
SDK Link: Download the Android SDK | Android Developers
Open up command prompt and type
You are now in
3. Basic ADB commands
ADB push (sends files to your phone) -- adb push c:\example.apk /sdcard/example.apk
ADB pull (Receives files from your phone) -- adb pull /system/app/example.apk c:\example.apk
ADB install (installs application) -- adb install c:\example.apk
adb shell (Begins shell connection with phone)
adb reboot (reboots phone)
adb reboot recovery (reboots phone into recovery)
adb reboot bootloader (reboots the phone into bootloader/the white screen)
adb remount (remounts the system)
4. Commands to run while in ADB Shell
cd (changes directories) -- cd /system/app
ls (lists all files in the directory) -- cd /system/app
rm (removes files) -- rm /system/app/example.apk
cp (copies files) similar to cat -- cp /system/app/example.apk /sdcard/example.apk
cat (copies files) -- cat /system/app/example.apk > /sdcard/example.apk
exit (exits shell) -- exit
Let me know if I was able to help in any way, or if you want to learn how to do more through adb
- 06-19-2010, 08:39 PM #2
- 06-19-2010, 08:48 PM #4
- 06-19-2010, 09:36 PM #6
- 06-19-2010, 09:45 PM #7
thanks man. im sure a lot of people will read this and it will answer their questions. or atleast point them in the right direction. ill sticky it but seeing as it is more or less general and not device specific I am going to move it to the hacking section before i sticky it. if there is anything else you want to add like things you can do with adb, by all means you can always edit it. good job man
- 06-19-2010, 10:01 PM #9
no, thank you for your informative thread
i know a good amount when it comes to rooting, roms, themes (things of that nature). when it comes to coding type stuff im a complete newb haha. but never really saw a major reason for adb since i originally purchased the droid back in November. what are some things you can do or reasons you would need to use adb?
Um, the main reason I use it is for logcat. Say if you have a infinite boot loop or something is going wrong, you can look in the logcat to see your device log which you see everything that loaded successfully and/or didn't to help find your problem. You can also run bug reports. Those are the top 2 IMO.
but I could go on all day about the reasons to set up ADB, but might save that for another thread if there already isn't one
- 06-23-2010, 01:14 PM #11
- 8 Posts
I've done as instructed. I type adb shell and I get "error: device not found"
What USB mode do I need to be in? How do I connect to my phone? I tried adb -d shell but that didn't work. I tried adb connect, but it asks for hostort and I have no idea what those would be.
- 06-23-2010, 07:16 PM #13
- 06-24-2010, 02:48 AM #15
i'm having the same problem, getting error device found, and if i try to say install JIT i get device not found with that as well
I am running windows 7, no HTC sync, USB Debugging is enabled. Running Bugless Beast .021, p3droid 800mhz kernel and the latest baseband update i could find.
Additonally if i go to device list in windows it'll show my motodroid listed properly.
still can't seem to get it to work properly, i also have made sure that adb.exe is in my PATH settings for windows as well.
- 06-24-2010, 04:12 AM #17
so in Devices & printers > Android phone (Whatever you have it named) > Hardware and nothing has a triangle with an exclamation mark?
Did you try updating the drivers?
My buddy just got a droid so I'll look into it.
Sorry, I just don't know much about droids but I'll get back here asap.
- 06-24-2010, 06:49 PM #19
- 07-18-2010, 09:43 PM #21
- 07-25-2010, 04:11 PM #22
- 08-26-2010, 05:21 AM #24
- 10-22-2010, 11:19 PM #25Retired Moderator
- 3,558 Posts
- Ice Cream Sandwich