Welcome to theMikMik!

We are a friendly community of Android custom Roms developers and users. If this is your first visit, be sure to check out the forum rules. You will need to register before you can post, and as a registered user you will also see fewer advertisements. Join us now to become a part of one of the most helpful Android community online and get the max from your phone!

Results 1 to 9 of 9
  1. #1
    Developer chingy51o's Avatar
    Join Date
    Mar 2011
    Posts
    569
    Thanks
    314

    [Guide] How to Setup ADB

    ADB Guide - How to install, setup, and use ADB.

    First off I am not the originator of this guide, I just combined a couple of guides from two guys over on xda, nephron and joeykrim. I just updated it with some updated links and instructions. The newer version seemed to do a lot of the steps that were in his guide therefore I didn't need to do them to get adb to work.

    Jadeboy and Coiledwire help me with this guide as well, so be sure to give them some imaginary thanks!

    If you are using a mac or linux machine search joeykrims guide for the download links.

    I am no expert at adb commands, however if you post in here your questions I can guarantee that Jadeboy will have you an answer in about 10.5 seconds or you can go to Tommy "the Killer" Tomatoes thread he started here (work in progress).

    Link to the Android SDK site, you might check here to see if there is an updated version of the SDK that I have link below(installer_r10)
    --------------------------------------------------------------------------

    Things you need:

    Android SDK - Download
    7-zip - Download
    Win 7 Drivers- Download-thanks shep 211
    HTC Sync-The one that is in the SD card that came with your phone will work
    Windows PC
    USB Cable
    A Rooted HTC EVO

    --------------------------------------------------------------------------

    Setting up the Android SDK

    I installed the drivers and htc sync first, I am not sure if that matters or not.

    Download the file SDK file from above and accept defaults to install it.

    Once installed make sure the box is checked that says "Start SDK Manager" and hit finish.

    Once SDK Manager opens click on the accept all radio button and hit install. Be patient it will take awhile.

    Any problems or questions go here.

    Once completed move the "android-sdk" folder from c:\program files(x86)\android to the root of your hard drive C:\.

    This is a large folder so be patient it's going to take awhile, good time to go get some coffee, potty break, etc.

    Right click on My Computer and click properties
    Select the Advanced Tab or Advanced System Setting (Vista/Windows 7)
    Select Environment Variables...
    On the bottom half (system variables)
    go to PATH and edit it to include C:\android-sdk\platform-tools
    Make sure to separate it from the rest of the ones in there by a semicolon
    Hit Ok

    *The reason for this is so that you can run adb from any folder on your drive so that you don't have to copy your files to the tools folder. Big thanks to jadeboy and coiledwire for helping me figure this out.

    --------------------------------------------------------------------------

    Preparing your phone for ADB

    If you are running MikFroyo USB Debugging should be checked by default but you can double check it if you want.

    Go to Settings on your phone
    Select Applications
    Select Development
    Make sure 'USB Debugging' is checked

    --------------------------------------------------------------------------

    Installing Drivers

    Plug in your phone through USB and it should automatically install the drivers. I've done this 4 times and every time it finds the phone just fine.

    If not check out nephron's thread on xda linked above.

    --------------------------------------------------------------------------

    Check if your phone is detected by ADB

    Open up Command Prompt (Go to run, type in cmd, press enter)
    Type in

    Code:
    cd C:\android-sdk\platform-tools === Press Enter
    adb devices === You should see your device listed
    adb shell === you should see # in the next line
    Now you are all set to run adb commands. Tommy "the Killer" Tomatoe has a thread started here, not much on there yet, just the beginning. Listed below are some basic command you can do through adb.

    Reboot phone command
    Code:
    adb reboot
    Pull System apps from your phone onto computer
    Code:
    adb pull /system/app
    Push apps back to phone from the computer
    Code:
    adb push app /system/app
    Delete existing apps on SD
    Code:
    adb shell rm -r /system/sd/app
    adb shell rm -r /system/sd/app-private
    From Recovery Screen
    Sending an update file to your SD card:
    Code:
    adb shell mount /sdcard
    adb shell rm /sdcard/update.zip
    adb push *filename* /sdcard/update.zip
    Remount remounts the /system partition as writable (or readonly if it is already writeable)
    Code:
    adb remount
    To control the phone remotely. Like you were in terminal on phone
    Code:
    adb shell
    Another good place to look for common commands is here and also in Tommy's thread.

    Note: for a list of commands type in 'adb' in cmd

    CONGRATS YOU NOW HAVE ADB FULLY RUNNING!
    Current Device: HTC Thunderbolt


    Help me get some more space on dropbox please!!!! http://db.tt/eBClH7r
    If you like/support/use my work. Feel free to

  2. The Following User Says Thank You to chingy51o For This Useful Post:       Show/Hide
    prboy1969 (11-12-2011)
  3. #2
    Moderator prboy1969's Avatar
    Join Date
    Apr 2011
    Location
    Michigan
    Posts
    3,142
    Thanks
    539

    Re: [Guide] How to Setup ADB

    Thank you very much
    Samsung Galaxy S 3 / HTC EVO Shift 4G / OG EVO4G
    Forum Rules and Usage ------------INSTRUCTIONS FOR FLASHING
    Have a Problem ? LOOK HERE FIRST ( Thank you jadeboy7 )
    Exploding Noema: The precise moment when your mind cannot differentiate between perception and reality

  4. #3
    Senior Member turkbot's Avatar
    Join Date
    Aug 2011
    Posts
    229
    Thanks
    6
    ok i have a problem i finally got around to installing all the bells and whistles of sdk and what not set the environmental variables installed sync and drivers multiple times but adb is not finding my phone?????? help please

  5. #4
    Administrator nick1313's Avatar
    Join Date
    Mar 2011
    Location
    Columbia MO
    Posts
    16,501
    Thanks
    3,378
    Quote Originally Posted by turkbot View Post
    ok i have a problem i finally got around to installing all the bells and whistles of sdk and what not set the environmental variables installed sync and drivers multiple times but adb is not finding my phone?????? help please
    What errors do you see and what steps are you taking to get it to recognize? Are you doing adb remount, etc?
    You like my work? Be sure to hit the thanks button or if you feel so inclined you can
    * Phone Details
    Phone: HTC One M8
    Hardware: ???
    HBoot: ???
    Baseband: ???
    PRI: ???
    Recovery: ???
    Kernel: ???
    ROM: ???
    Theme: ???
    64gb class 10


    TEAM MiK
    MikROMs Since Since 1/30/11

  6. #5
    Senior Member turkbot's Avatar
    Join Date
    Aug 2011
    Posts
    229
    Thanks
    6
    Well i do adb devices
    List of attached devices
    Nothing shows up
    Adb shell
    Error no device detected
    Ill try thr remount later
    Last edited by turkbot; 03-06-2012 at 04:41 PM.

  7. #6
    Junior Member
    Join Date
    Mar 2012
    Location
    Portland, Oregon, United States
    Posts
    9
    Thanks
    0
    mine says no device connected ??

  8. #7
    Moderator prboy1969's Avatar
    Join Date
    Apr 2011
    Location
    Michigan
    Posts
    3,142
    Thanks
    539
    Try a different USB cable. Also try rebooting the PC, and the device.

  9. #8
    Senior Member turkbot's Avatar
    Join Date
    Aug 2011
    Posts
    229
    Thanks
    6
    What i did to get it to work is go into device manager after uninstall the htc drivers is manually install drivers from the link in the post and then reboot and boom it works......for me anyway

  10. #9
    Junior Member
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Its nice,
    I think you can issue adb commands from a command line on your development machine or from a script


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •