05-09-2014 06:15 AM
36 12
tools
  1. t0ast3d's Avatar
    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
    cd c:\AndroidSDK/tools

    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 07:37 PM
  2. mr.saving's Avatar
    Do we need to download for our platform? like 2.1 or 2.0,etc...
    06-19-2010 07:39 PM
  3. t0ast3d's Avatar
    Nope!
    06-19-2010 07:40 PM
  4. mr.saving's Avatar
    Sweet,hopefully i can use this to root my Droid
    06-19-2010 07:48 PM
  5. t0ast3d's Avatar
    Don't see why you couldn't.

    If you need any help, just reply in this thread, would be happy to help.
    06-19-2010 07:55 PM
  6. Jetdr's Avatar
    Thanks Toast!!!
    06-19-2010 08:36 PM
  7. Brett's Avatar
    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 08:45 PM
  8. t0ast3d's Avatar
    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
    No problem man, thank you thank you for support
    06-19-2010 08:49 PM
  9. Brett's Avatar
    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?
    elcubanevo likes this.
    06-19-2010 09:01 PM
  10. t0ast3d's Avatar
    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?
    Anytime. It might say I'm a newb on here, but that's not true by any means lol.

    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-19-2010 09:18 PM
  11. mrsato's Avatar
    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.

    Help please!
    06-23-2010 12:14 PM
  12. t0ast3d's Avatar
    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.

    Help please!
    What Windows are you running?

    Do you have HTC Sync installed?
    06-23-2010 05:34 PM
  13. Jerry Hildenbrand's Avatar
    You left out two major portions.
    Jdk
    USB driver
    06-23-2010 06:16 PM
  14. t0ast3d's Avatar
    You left out two major portions.
    Jdk
    USB driver
    Meaning the download links?
    06-23-2010 09:26 PM
  15. StandardSanders's Avatar
    What Windows are you running?

    Do you have HTC Sync installed?

    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 01:48 AM
  16. t0ast3d's Avatar
    You don't have the ADB driver, install HTC Sync and it will install if for you.
    06-24-2010 02:17 AM
  17. StandardSanders's Avatar
    You don't have the ADB driver, install HTC Sync and it will install if for you.
    tried this, still not detecting my phone. in device manager i do show adb interface under android phone
    06-24-2010 03:12 AM
  18. t0ast3d's Avatar
    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 01:03 PM
  19. StandardSanders's Avatar
    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.

    yeah it shows up correctly in there, no errors, tried updating the drivers but it pretty much doesn't let me, checked the drivers and its on revision 2 which is the one w/ droid support, so i'm not sure at this point.
    06-24-2010 05:49 PM
  20. t0ast3d's Avatar
    yeah it shows up correctly in there, no errors, tried updating the drivers but it pretty much doesn't let me, checked the drivers and its on revision 2 which is the one w/ droid support, so i'm not sure at this point.
    I have no idea.


    I'll have my friends Droid today so I'll try to get the problem figured out.
    06-25-2010 11:23 AM
  21. Msqueenb's Avatar
    Good info, thanks.
    07-18-2010 08:43 PM
  22. arwaldon4's Avatar
    yeah thanks for the steps. makes it a lot easier when explained that way :-)
    07-25-2010 03:11 PM
  23. t0ast3d's Avatar
    No problem guys, that's what I'm here for.
    igotsanevo4g likes this.
    08-06-2010 09:19 PM
  24. igotsanevo4g's Avatar
    Good write up. Thanks.
    08-26-2010 04:21 AM
  25. igotsanevo4g's Avatar
    i want to learn more on using adb. I have a basic knowledge of it but would like to become more proficient and wanted to know where would be the best place to learn? thanks
    Just mess around with adb a little, push a few files to your sd, reboot, etc.

    Then...

    http://forum.androidcentral.com/hack...l-rom-faq.html
    Politician likes this.
    10-22-2010 10:19 PM
36 12
LINK TO POST COPIED TO CLIPBOARD