1. Download our Official Android App: Forums for Android!

Tips [TUTORIAL] How to Set-up ADB

Discussion in 'Android Devices' started by anshubham, Aug 19, 2012.

  1. anshubham

    anshubham Member
    Thread Starter
    Rank:
    None
    Points:
    23
    Posts:
    44
    Joined:
    Mar 25, 2012

    Mar 25, 2012
    44
    45
    23
    Q. What is ADB ? :thinking:
    Ans. ADB stands for Android Debugging Bridge. Now, for all those don’t know what I am talking about, adb is an integral part of the standard Android SDK and provides the terminal interface access so that you can easily interact with your phone’s file system. Since the Android is made on an open source platform as it’s a Linux based system which is useful for doing advanced operations on the device so that you can root your device as the ADB provides access between the machine as well as the computer.

    This is the tutorial for setting up adb for noobs.

    No need to download the full SDK.

    Just Follow these instructions and you are good to go.

    1. Make a Folder C:\SDK\ and copy the extracted files (from attachment) to this folder.
    Files that are to be copied in C:\SDK\ :

    adb.exe
    AdbWinApi.dll
    AdbWinUsbApi.dll
    fastboot.exe


    2. Then open CMD and type :
    cd c:\sdk\ (Hit Enter)

    3. Now type :
    adb.exe (Hit Enter)
    It will show some data don't freak out.

    4. Now type :
    adb devices (Hit Enter)
    This will show the connected ADB devices.

    You have Succesfully set-up ADB.

    Here is list of ADB commands that might be useful for you in the future. (thanks to sekhargreen at xda) ;). You can also see the list of command after typing "adb" in cmd.

    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 (&#8216;-k&#8217; 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.

    If this helped you click THANKS and help me...!!! :smokingsomb:
     

    Attached Files:


    Advertisement

  2. subrato

    subrato Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Sep 20, 2012

    Sep 20, 2012
    2
    0
    5
    what u mean by CMD??
     
  3. anshubham

    anshubham Member
    Thread Starter
    Rank:
    None
    Points:
    23
    Posts:
    44
    Joined:
    Mar 25, 2012

    Mar 25, 2012
    44
    45
    23
    CMD means command propmt
    open run
    type cmd
    hit enter.:smokingsomb:
     
    betexxx likes this.
  4. tylerboggs

    tylerboggs Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Dec 2, 2012

    Dec 2, 2012
    1
    0
    5
    i got through the steps but the last adb devices commend nothing happens after i type it
     
  5. sus40

    sus40 Lurker
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Dec 27, 2012

    Dec 27, 2012
    2
    0
    25
    Am I supposed to be on the computer with the smartphone attached?

    How can I get to the command level on the phone?
     
  6. Knight Rider

    Knight Rider Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Feb 2, 2013

    Feb 2, 2013
    1
    0
    5
    Thanks it worked!

    Another thing you can do is edit the system's path environment variable. By doing this you can use adb from anywhere and you needn't navigate to C:\ADB (or wherever you stored it).

    Do this by right-clicking on computer -> properties -> advanced system settings -> advanced -> environment variables. In system variables click 'Path' and then click edit. Add ";C:\ADB" (without quotes) to the end of the variable value.
     
  7. jazzisjazz

    jazzisjazz Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 18, 2013

    Jan 18, 2013
    1
    0
    5
    1. should the phone be connected by usb to the pc before starting ( when I plug in the phone winxp asks fora driver installation - motorola communication interface, my web browser opens to a Verizon page that has a download called backup assistant)?

    2. with the phone plugged up by usb cable (driver install was cancelled) I have created the folder, extracted the files, naved to the folder by cmd, ranadb.exe, saw the data listed, typed adb devices

    the list I get has no entries

    Plz help.
     
  8. I_am_Zurvan

    I_am_Zurvan Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Nov 19, 2013

    Nov 19, 2013
    2
    0
    5
    thanks :eek:) thanks :eek:) thanks :eek:) thanks :eek:) thanks :eek:) thanks :eek:)
     
  9. celomanga

    celomanga Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Apr 29, 2015

    Apr 29, 2015
    1
    0
    5
    Male
  10. bdocksey

    bdocksey Lurker
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jul 13, 2015

    Jul 13, 2015
    2
    0
    15
    Male
    It does not find any devices, I tried it on my kindle and my tablet
     
  11. EarlyMon

    EarlyMon The PearlyMon
    Rank:
     #1
    Points:
    5,218
    Posts:
    57,632
    Joined:
    Jun 10, 2010

    Jun 10, 2010
    57,632
    70,418
    5,218
    New Mexico, USA
    USB debugging is turned on?
     
  12. bdocksey

    bdocksey Lurker
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Jul 13, 2015

    Jul 13, 2015
    2
    0
    15
    Male
    I think i turned it on (after tapping the serial number 7 times I opened the developer options) Still did not work, but I solved my problem of getting a Paid app from google play into a kindle. I bought the app and downloaded it to my other tablet. I used Back-up and Restore program to back up the app to Dropbox. then Moved it to the kindle and restored it.
     
  13. wetbiker7

    wetbiker7 Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    7,475
    Joined:
    Jun 27, 2011

    Jun 27, 2011
    7,475
    3,426
    333
    Male
    USN Vet. / Certified Drug and Alcohol Abuse Counse
    So-Cal
    Great tool and super simple to install. For those of you who don't know, installing the whole version can be a PITA. Especially when trying to explain it to a newcomer. This is as easy as it gets people. Gotta give credit where credit is due. @anshubham, thank you for the thread and tutorial. The long list of CMDs will come in handy for many members too.

    Sending people here sure beats the heck out of trying to walk them through the SDK installation. I tip my hat to you sir and again, thank you. :D
     
  14. jani7

    jani7 Lurker
    Rank:
    None
    Points:
    15
    Posts:
    1
    Joined:
    Apr 3, 2016

    Apr 3, 2016
    1
    0
    15
    Male
    Hi there,
    This is a great tool, but I somehow screwed up. I get 2 identical devices listed and it won't run. Would you please tell me how to fix this?
    Thanks!
     
Tags:

Share This Page

Loading...