Page 1 of 2 12 LastLast
Results 1 to 25 of 35
  1. Thread Author  Thread Author    #1  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Exclamation 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:

    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
    Last edited by t0ast3d; 06-19-2010 at 11:32 PM. Reason: Added commands threw ADB Shell
    Thanked by 14:
    + Show/Hide list of the thanked
  2. #2  
    mr.saving's Avatar

    Posts
    311 Posts
    Global Posts
    770 Global Posts
    ROM
    Jedi Invasion

    Default

    Do we need to download for our platform? like 2.1 or 2.0,etc...
  3. Thread Author  Thread Author    #3  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    Nope!
  4. #4  
    mr.saving's Avatar

    Posts
    311 Posts
    Global Posts
    770 Global Posts
    ROM
    Jedi Invasion

    Default

    Sweet,hopefully i can use this to root my Droid
  5. Thread Author  Thread Author    #5  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    Don't see why you couldn't.

    If you need any help, just reply in this thread, would be happy to help.
  6. #6  

    Default

    Thanks Toast!!!
  7. #7  
    Brett's Avatar
    Retired Moderator

    Posts
    2,394 Posts
    Global Posts
    2,393 Global Posts
    ROM
    CM 7 / Incredikernel .37

    Default

    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
  8. Thread Author  Thread Author    #8  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    Quote Originally Posted by Brett View Post
    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
  9. #9  
    Brett's Avatar
    Retired Moderator

    Posts
    2,394 Posts
    Global Posts
    2,393 Global Posts
    ROM
    CM 7 / Incredikernel .37

    Default

    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?
    Thanked by:
  10. Thread Author  Thread Author    #10  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    Quote Originally Posted by Brett View Post
    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
  11. #11  

    Default

    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!
  12. Thread Author  Thread Author    #12  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    Quote Originally Posted by mrsato View Post
    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?
  13. #13  

    Default

    You left out two major portions.
    Jdk
    USB driver
    ಠ_ಠ
    제리
  14. Thread Author  Thread Author    #14  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    Quote Originally Posted by gbhil View Post
    You left out two major portions.
    Jdk
    USB driver
    Meaning the download links?
  15. #15  

    Default

    Quote Originally Posted by t0ast3d View Post
    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.
  16. Thread Author  Thread Author    #16  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    You don't have the ADB driver, install HTC Sync and it will install if for you.
  17. #17  

    Default

    Quote Originally Posted by t0ast3d View Post
    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
  18. Thread Author  Thread Author    #18  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    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.
  19. #19  

    Default

    Quote Originally Posted by t0ast3d View Post
    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.
  20. Thread Author  Thread Author    #20  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    Quote Originally Posted by StandardSanders View Post
    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.
  21. #21  

    Default

    Good info, thanks.
  22. #22  
    arwaldon4's Avatar

    Posts
    45 Posts
    Global Posts
    86 Global Posts
    ROM
    Stock

    Default

    yeah thanks for the steps. makes it a lot easier when explained that way :-)
    life is good
  23. Thread Author  Thread Author    #23  
    t0ast3d's Avatar
    Banned

    Posts
    671 Posts

    Default

    No problem guys, that's what I'm here for.
    Thanked by:
  24. #24  
    igotsanevo4g's Avatar
    Retired Moderator

    Posts
    3,558 Posts
    Global Posts
    3,549 Global Posts
    ROM
    Ice Cream Sandwich

    Default

    Good write up. Thanks.
    Some say the glass is half empty. Some say its half full. I say, "Are you going to drink that?"
  25. #25  
    igotsanevo4g's Avatar
    Retired Moderator

    Posts
    3,558 Posts
    Global Posts
    3,549 Global Posts
    ROM
    Ice Cream Sandwich

    Default

    Quote Originally Posted by gbishop18 View Post
    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
    Some say the glass is half empty. Some say its half full. I say, "Are you going to drink that?"
    Thanked by:
Page 1 of 2 12 LastLast

Posting Permissions

B