• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] Easy and simple adb and fastboot setup for newbies (Windows only)

Search This thread

amidabuddha

Senior Member
Jun 26, 2011
2,441
2,458
Linux users please go HERE (thanks to bloodychaos)
Similar guides can be found on other devices subforums around but I can see that a lot of new users in our forum are not familiar with the setup and use of this commands.
All the instructions and installation files can be found on the Android Developers webpage, but for basic commands it is not necessary to download the whole SDK (which requires the JDK as well) to follow installation and the resources download process.

*Important: to use the adb/fastboot commands you have to enable USB Debugging in your phone Settings -> Applications -> Development menu*

To have working adb and fastboot system wide for basic commands just follow the steps below:

  1. UPDATE: Not necessary for Windows 7 is installng adb drivers automatically after plugging the device and fastboot ones after rebooting the connected device to bootloader. To get the HTC USB Drivers on different Windows version download and install HTC Sync (If you do not need the Sync application itself you can uninstall it but the drivers will remain on your system).
    *According to post #5 in this thread in some cases may be necessary to temporary disable your antivirus software during the installation of HTC Sync. Thanks @mimirom*
  2. Download the zip archive or the attached file below
  3. Extract the archive on your C: drive. You will have C:\android-tools folder
  4. Adding to the System Path globally to use the command without browsing to the containing folder

    Method 1 (via GUI):
    Go to My Computer icon -> right click and select Properties.
    On the left side of the opened screen select Advanced system settings.
    (Or Start -> Search -> type sysdm.cpl -> Enter, browse to the Advanced tab)
    Look down on the opened menu and select Environment Variables.
    In the lower half are listed the System Variables.
    Scroll to find "Path" variable, select it and click Edit...
    On the Edit window in the Variable value field go to the end of the line (do not delete it!) and add without any intervals (spaces):
    Code:
    ;C:\android-tools
    do not forget the semicolon symbol (;)!
    Click Ok 3 times.

    Method 2 (via Command prompt):
    Go to Start and in the Search box type cmd, right click and Run as Administrator
    Type
    Code:
    setx path /m "%PATH%;C:\android-tools"
    and hit Enter. Close the cmd window
    By the way, I noticed that it doesn't work for me (windows 7 professional) unless i end the path of adb with "\", for example: ;C:\android-tools\ and not ;C:\android-tools as in your guide.
    Method 3:
    Just a tip, if you put the Adb and fastboot files in C:/windows/system32 (32bit) or in C/windows/sysWOW64 (64bit) you can just use them from any command prompt window
  5. To check is it working properly open Command Prompt (Start -> Search -> type cmd -> Enter) and type adb
    If everything is configured properly this should list you the Android Debug Bridge version and the available commands.

*HINT*: To use adb or fastboot with files in the Command prompt you have to navigate to the folder containing the file first (using the cd command) e.g. "D:\Downloads\Android" and then to execute the command.

Example:
Start -> type cmd in the Search box, then Enter. You will see
C:\Users\with blinking cursor
If your file is on another drive like the example type "d:" (without the quotes), or other drive letter to go to the relevant drive. Skip this if the file is on C: drive. Then type:
cd D:\Downloads\Android to go to the "D:\Downloads\Android" folder. If your path contains spaces (intervals) type it in quotes.
The command "cd.." brings you one folder back
 

Attachments

  • android-tools.zip
    557.4 KB · Views: 10,436
Last edited:

ben_pyett

Senior Member
Oct 28, 2006
5,570
2,333
London, Colchester, Wivenhoe
Good Idea!

Have put a link to this within the GUIDES section of [INDEX][22 SEP 11] ROMS/RECOVERY/ROOT/HBOOT/RADIOS/TWEAKS/GUIDES/etc

I believe that the guide would be more useful if you put in a link to a URL for the HTC Drivers and moved the advice about enabling USB Debugging to the top!

I can now point people at this guide rather than manually instruct them, Thank's you probably just saved me loads of time and aggravation! :D
 
Last edited:

mimirom

Senior Member
Oct 4, 2010
89
9
Prague
Hi an thank you. Good guide.

I believe one important information is missing in the guide:

Before installing the HTC drivers (or HTC sync) it is necessary to temporarily disable AntiVirus software on Windows machines. If you don't do that, Windows won't recognise your phone. After the installation is finished, enable AntiVirus again.

I got this advice somewhere and it was true for me personally. I'm using Windows 7.

Sent from my HTC Desire S using XDA App
 
Last edited:

mimirom

Senior Member
Oct 4, 2010
89
9
Prague
One more comment:

This is a minor detail but I think it's worth mentioning.

If you are using the HTC Sync installation in order to get the HTC drivers only, you actually don't need to install and immediately uninstall HTC Sync itself.
The Sync installer will first install the Desired (pun fully intended ;-) drivers and the it will stop. Next it's going to ask you if you want to proceed with the installation of HTC Sync. At that point you hit cancel and you're done. No Sync, just the drivers.
 
  • Like
Reactions: TIGER 123

ichaochao

Member
Nov 23, 2011
5
0
One more comment:

This is a minor detail but I think it's worth mentioning.

If you are using the HTC Sync installation in order to get the HTC drivers only, you actually don't need to install and immediately uninstall HTC Sync itself.
The Sync installer will first install the Desired (pun fully intended ;-) drivers and the it will stop. Next it's going to ask you if you want to proceed with the installation of HTC Sync. At that point you hit cancel and you're done. No Sync, just the drivers.
It's very useful, Thanks!!
 

rajverma3135

Senior Member
Oct 23, 2010
274
79
Nottingham, UK
Similar guides can be found on other devices subforums around but I can see that a lot of new users in our forum are not familiar with the setup and use of this commands.
All the instructions and installation files can be found on the Android Developers webpage, but for basic commands it is not necessary to download the whole SDK (which requires the JDK as well) to follow installation and the resources download process.

*Important: to use the adb/fastboot commands you have to enable USB Debugging in your phone Settings -> Applications -> Development menu*

To have working adb and fastboot system wide for basic commands just follow the steps below:

  1. To get the HTC USB Drivers download and install HTC Sync (If you do not need the Sync application itself you can uninstall it but the drivers will remain on your system).
    *According to post #5 in this thread in some cases may be necessary to temporary disable your antivirus software during the installation of HTC Sync. Thanks @mimirom*
  2. Download the zip archive (Mirror @MediaFire) or the attached file below
  3. Extract the archive on your C: drive. You will have C:\android-tools folder
  4. Adding to the System Path globally to use the command without browsing to the containing folder

    Method 1 (via GUI):
    Go to My Computer icon -> right click and select Properties.
    On the left side of the opened screen select Advanced system settings.
    (Or Start -> Search -> type sysdm.cpl -> Enter, browse to the Advanced tab)
    Look down on the opened menu and select Environment Variables.
    In the lower half are listed the System Variables.
    Scroll to find "Path" variable, select it and click Edit...
    On the Edit window in the Variable value field go to the end of the line (do not delete it!) and add without any intervals (spaces):
    Code:
    ;C:\android-tools
    do not forget the semicolon symbol (;)!
    Click Ok 3 times.

    Method 2 (via Command prompt):
    Go to Start and in the Search box type cmd, right click and Run as Administrator
    Type
    Code:
    setx path /m "%PATH%;C:\android-tools"
    and hit Enter. Close the cmd window

    Method 3:

  5. To check is it working properly open Command Prompt (Start -> Search -> type cmd -> Enter) and type adb
    If everything is configured properly this should list you the Android Debug Bridge version and the available commands.

*HINT*: To use adb or fastboot with files in the Command prompt you have to navigate to the folder containing the file first (using the cd command) e.g. "D:\Downloads\Android" and then to execute the command.

Example:
Start -> type cmd in the Search box, then Enter. You will see
C:\Users\with blinking cursor
If your file is on another drive like the example type "d:" (without the quotes), or other drive letter to go to the relevant drive. Skip this if the file is on C: drive. Then type:
cd D:\Downloads\Android to go to the "D:\Downloads\Android" folder. If your path contains spaces (intervals) type it in quotes.
The command "cd.." brings you one folder back
Nice work mate
 
  • Like
Reactions: amidabuddha

fonpacific

Senior Member
Oct 20, 2011
63
2
Thanks a lot for the guide, dude!
By the way, I noticed that it doesn't work for me (windows 7 professional) unless i end the path of adb with "\", for example: ;C:\android-tools\ and not ;C:\android-tools as in your guide.
Hope it helps! ;)
 
  • Like
Reactions: amidabuddha

amidabuddha

Senior Member
Jun 26, 2011
2,441
2,458
Instructions for Linux users???

OP edited - there is a link to a guide for Linux users

Thanks a lot for the guide, dude!
By the way, I noticed that it doesn't work for me (windows 7 professional) unless i end the path of adb with "\", for example: ;C:\android-tools\ and not ;C:\android-tools as in your guide.
Hope it helps! ;)

Thank you for the remark, I hope it will help the users with the same problem :)
 

RokBedenk

New member
Mar 13, 2009
1
0
Hey Guys, I need help!

after an installation of adb all I get is error:device not found

i entered a code adb shell and hit enter, than i entered

dmesg | grep mmc0, since you cannot put two lines of code at once (I'm a rookie)..

where did I put it wrong?

I can get to recovery of my device, but I get error like:

/I]E:Can't open /cache/recovery/command

I made revolutionary S-OFF..

Thanx for a help!

Rocks
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 63
    Linux users please go HERE (thanks to bloodychaos)
    Similar guides can be found on other devices subforums around but I can see that a lot of new users in our forum are not familiar with the setup and use of this commands.
    All the instructions and installation files can be found on the Android Developers webpage, but for basic commands it is not necessary to download the whole SDK (which requires the JDK as well) to follow installation and the resources download process.

    *Important: to use the adb/fastboot commands you have to enable USB Debugging in your phone Settings -> Applications -> Development menu*

    To have working adb and fastboot system wide for basic commands just follow the steps below:

    1. UPDATE: Not necessary for Windows 7 is installng adb drivers automatically after plugging the device and fastboot ones after rebooting the connected device to bootloader. To get the HTC USB Drivers on different Windows version download and install HTC Sync (If you do not need the Sync application itself you can uninstall it but the drivers will remain on your system).
      *According to post #5 in this thread in some cases may be necessary to temporary disable your antivirus software during the installation of HTC Sync. Thanks @mimirom*
    2. Download the zip archive or the attached file below
    3. Extract the archive on your C: drive. You will have C:\android-tools folder
    4. Adding to the System Path globally to use the command without browsing to the containing folder

      Method 1 (via GUI):
      Go to My Computer icon -> right click and select Properties.
      On the left side of the opened screen select Advanced system settings.
      (Or Start -> Search -> type sysdm.cpl -> Enter, browse to the Advanced tab)
      Look down on the opened menu and select Environment Variables.
      In the lower half are listed the System Variables.
      Scroll to find "Path" variable, select it and click Edit...
      On the Edit window in the Variable value field go to the end of the line (do not delete it!) and add without any intervals (spaces):
      Code:
      ;C:\android-tools
      do not forget the semicolon symbol (;)!
      Click Ok 3 times.

      Method 2 (via Command prompt):
      Go to Start and in the Search box type cmd, right click and Run as Administrator
      Type
      Code:
      setx path /m "%PATH%;C:\android-tools"
      and hit Enter. Close the cmd window
      By the way, I noticed that it doesn't work for me (windows 7 professional) unless i end the path of adb with "\", for example: ;C:\android-tools\ and not ;C:\android-tools as in your guide.
      Method 3:
      Just a tip, if you put the Adb and fastboot files in C:/windows/system32 (32bit) or in C/windows/sysWOW64 (64bit) you can just use them from any command prompt window
    5. To check is it working properly open Command Prompt (Start -> Search -> type cmd -> Enter) and type adb
      If everything is configured properly this should list you the Android Debug Bridge version and the available commands.

    *HINT*: To use adb or fastboot with files in the Command prompt you have to navigate to the folder containing the file first (using the cd command) e.g. "D:\Downloads\Android" and then to execute the command.

    Example:
    Start -> type cmd in the Search box, then Enter. You will see
    C:\Users\with blinking cursor
    If your file is on another drive like the example type "d:" (without the quotes), or other drive letter to go to the relevant drive. Skip this if the file is on C: drive. Then type:
    cd D:\Downloads\Android to go to the "D:\Downloads\Android" folder. If your path contains spaces (intervals) type it in quotes.
    The command "cd.." brings you one folder back
    2
    Good Idea!

    Have put a link to this within the GUIDES section of [INDEX][22 SEP 11] ROMS/RECOVERY/ROOT/HBOOT/RADIOS/TWEAKS/GUIDES/etc

    I believe that the guide would be more useful if you put in a link to a URL for the HTC Drivers and moved the advice about enabling USB Debugging to the top!

    I can now point people at this guide rather than manually instruct them, Thank's you probably just saved me loads of time and aggravation! :D
    2
    Hi an thank you. Good guide.

    I believe one important information is missing in the guide:

    Before installing the HTC drivers (or HTC sync) it is necessary to temporarily disable AntiVirus software on Windows machines. If you don't do that, Windows won't recognise your phone. After the installation is finished, enable AntiVirus again.

    I got this advice somewhere and it was true for me personally. I'm using Windows 7.

    Sent from my HTC Desire S using XDA App
    1
    One more comment:

    This is a minor detail but I think it's worth mentioning.

    If you are using the HTC Sync installation in order to get the HTC drivers only, you actually don't need to install and immediately uninstall HTC Sync itself.
    The Sync installer will first install the Desired (pun fully intended ;-) drivers and the it will stop. Next it's going to ask you if you want to proceed with the installation of HTC Sync. At that point you hit cancel and you're done. No Sync, just the drivers.
    1
    Just a tip, if you put the Adb and fastboot files in C:/windows/system32 (32bit) or in C/windows/sysWOW64 (64bit) you can just use them from any command prompt window