Nvidia and Robotics w/ Barrett Williams – XDA:DevCon 2014

Robotics continues to dominate our videos from this years XDA:DevCon 2014 in … more

Speed Up Deodexing with JoelDroid Batch Deodexer

Android 5.0 Lollipop brings many under-the-hood changes like changing the default compiler … more

Top 5 Apps for 2014 + Top Xposed Mod of 2014 – XDA TV

Its that time of year where you look back and remember the things that happened … more

NVIDIA SHIELD Tablet Gets Android 5.0.1, OTA Available

The NVIDIA SHIELD Tablet is the latest Android-powered device released by famed GPU … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Tutorial] How to install Android SDK tool & HTC's drivers [BEGINNERS FRIENDLY]

OP Lucky Thirteen

10th April 2013, 04:02 PM   |  #1  
Lucky Thirteen's Avatar
OP Senior Member
Flag Montréal
Thanks Meter: 1,591
 
1,126 posts
Join Date:Joined: Jul 2010
More
-- Android SDK/ADB tool Tutorial --

I decided to create this Beginner Friendly tutorial on how to install SDK tool mainly because recent phones such as the i.e. HTC One X / One X+ are requiring many basic usage of adb command line, and lots of members are having difficulities to have basics adb command to work because their SDK tool is not correctly installed. I won't show you how to make usage of it, there is plenty of How-to's for that purpose all around xda and on the Web.

This is all safe to install on your Windows based computer, and if you can not achieve success with this installation, well obviously, you shouldn't play the hacking game with your device. From now on, I or anyone else on the Internet can not be held responsible if something really bad is happening to you because you didn't read and followed any given instructions letters by letters and you ended with a screwed, pricey and valuable paperweight device. That being said, let's get started.


Let's GO!

____________________________________________
-- Enabling USB debugging mode --

On your phone simply follow this path : Settings -> Developer options -> Turn the option ON -> under Debugging -> tick USB debugging option Debug mode when USB is connected
That's it, done!


____________________________________________
-- Java Installation --

This is a prerequisite to have a flawlessly working SDK tool installation.
  1. Click on the following link to download it on Java's website : Free Java Download
  2. On the next page, do not click on Agree and Start Download, instead click on See all Java downloads.
  3. Which should you choose? If you have a 64-bit Windows OS you MUST install the two versions (both 32-bit and 64-bit), otherwise the 32-bit is sufficient for a 32-bit Windows OS.
  4. Before installing the latest version of Java, it is recommended to uninstall all previous Java's installation. (How to -> Remove Older Versions)
  5. Complete the required installation depending of the type of Windows installation.
  6. You are all done for Java.

-- Screenshots for the visual ones --







____________________________________________
-- SDK Tools Installation --
  1. First step is to download the SDK Manager, to do so click on this link -> Download the SDK
  2. Next locate on the bottom of your screen the USE AN EXISTING IDE, click on it.
  3. On the Get the Android SDK page, tick the I have read and agree with the above terms and conditions box and click on the Download the SDK Tools for Windows button.
  4. Navigate to your Download folder, and locate a file named like this: installer_r21.1-windows.exe (N.B. The r21.1 version was available when I did this how to, your version could be different.)
  5. Double click on the installer_r21.1-windows.exe file to start the installation. Take good note where the file will be installed, generally the default SDK path is : C:\Users\your_session's_name\AppData\Local\Android \android-sdk.
  6. Now, navigate to the path of the SDK installation folder.
  7. Select all (CTRL + A) in this folder and Copy (CTRL +C) them for the next step.
  8. Now you need to create a new folder at the root of your C:\ drive named : AndroidSDK
  9. Open up the newly created folder and Paste (CTRL + V) the previously copied files.
  10. Stay in this folder and double click on the SDK Manager icon.
  11. The SDK Manager will open a new window, click on Deselect All, then tick the following line in Tools : AndroidSDK Platform-tools
  12. Click on Install 1 Package..., accept the license agreement and click on Install let the manager do it's thing.
  13. Click on Done and close the manager's window.
  14. Congrats! You have created successfully your SDK tool!
  15. Wait! Let's clean your computer a bit....
  16. Go back to the previous folder, the one located in this path : C:\Users\your_session's_name\AppData\Local\Android \android-sdk
  17. Click on the Uninstaller, we don't need this one anymore. Don't worry the other AndroidSDK folder won't be deleted.
  18. Voilà! You are done with this part.

-- Screenshots for the visual ones --













____________________________________________
-- Creating of script file for a fast access --
  1. Locate the Platform-tools sub-folder in the AndroidSDK folder.
  2. Right click in a empty space of the folder and select in the contextual menu New -> Text Document
  3. Open this new Text Document and Copy/Paste this : c:\windows\system32\cmd.exe
  4. Save this file as : Start SDK.bat
  5. Acknowledge the : If you change file extension... warning.
  6. Right click your new created Start SDK and send a shortcut on your Desktop.
  7. Done! If you try to double click on your Start SDK shortcut, a command window should open with something like these lines :

Code:
C:\AndroidSDK\platform-tools>c:\windows\system32\cmd.exe
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\AndroidSDK\platform-tools>
Success!

____________________________________________
-- Installing HTC's Drivers --

This one is very easy, simply download and run the installer and let Windows do the rest. Drivers compatbile 32-bit or 64-bit
  • Download the Self-install HTCDriver_4.0.1.001.exe/
  • Make sure your phone is not plugged on your computer via the USB cable.
  • Simply run the installer of the driver you've just downloaded.
  • Once the installation is completed, simply plug your phone via your USB cable and Windows "wizard manager" will now detect your phone.
  • If it doesn't work, unplug your phone and reboot your computer. Then plug back your phone once rebooted.
  • Done!

-- Screenshots for the visual ones --




____________________________________________
-- Let's try all this! --
  1. With your phone plugged on your USB cable...
  2. From your Desktop, double click on your Start SDK shortcut.
  3. In the command window, at the command line : C:\AndroidSDK\platform-tools> type this -> adb devices (Enter)
  4. The serial number of your phone should appear in the command window. If it is the case, then try this again : C:\AndroidSDK\platform-tools> type this -> adb reboot (Enter)
  5. Your phone will now Reboot
  6. If all this worked, you have a successful SDK Tools installation!

-- Screenshots for the visual ones --




This is it, I hope this tutorial was helpful, if you have some sort of problems let me know, I will try to help you at the best of my knowledge. Have fun hacking your Android!!
Last edited by Lucky Thirteen; 11th April 2013 at 09:24 PM.
The Following 33 Users Say Thank You to Lucky Thirteen For This Useful Post: [ View ]
10th April 2013, 04:27 PM   |  #2  
The-Last-Hylian's Avatar
Senior Member
Thanks Meter: 523
 
1,840 posts
Join Date:Joined: Feb 2012
Nice guide
Very concise
The Following User Says Thank You to The-Last-Hylian For This Useful Post: [ View ]
19th June 2013, 01:28 PM   |  #3  
Member
Flag Csíkszereda
Thanks Meter: 3
 
37 posts
Join Date:Joined: Nov 2012
More
Thumbs up
Quote:
Originally Posted by Lucky Thirteen

-- Android SDK/ADB tool Tutorial --

I decided to create this Beginner Friendly tutorial on how to install SDK tool mainly because recent phones such as the i.e. HTC One X / One X+ are requiring many basic usage of adb command line, and lots of members are having difficulities to have basics adb command to work because their SDK tool is not correctly installed. I won't show you how to make usage of it, there is plenty of How-to's for that purpose all around xda and on the Web.

This is all safe to install on your Windows based computer, and if you can not achieve success with this installation, well obviously, you shouldn't play the hacking game with your device. From now on, I or anyone else on the Internet can not be held responsible if something really bad is happening to you because you didn't read and followed any given instructions letters by letters and you ended with a screwed, pricey and valuable paperweight device. That being said, let's get started.


Let's GO!

____________________________________________
-- Enabling USB debugging mode --

On your phone simply follow this path : Settings -> Developer options -> Turn the option ON -> under Debugging -> tick USB debugging option Debug mode when USB is connected
That's it, done!


____________________________________________
-- Java Installation --

This is a prerequisite to have a flawlessly working SDK tool installation.
  1. Click on the following link to download it on Java's website : Free Java Download
  2. On the next page, do not click on Agree and Start Download, instead click on See all Java downloads.
  3. Which should you choose? If you have a 64-bit Windows OS you MUST install the two versions (both 32-bit and 64-bit), otherwise the 32-bit is sufficient for a 32-bit Windows OS.
  4. Before installing the latest version of Java, it is recommended to uninstall all previous Java's installation. (How to -> Remove Older Versions)
  5. Complete the required installation depending of the type of Windows installation.
  6. You are all done for Java.

-- Screenshots for the visual ones --







____________________________________________
-- SDK Tools Installation --
  1. First step is to download the SDK Manager, to do so click on this link -> Download the SDK
  2. Next locate on the bottom of your screen the USE AN EXISTING IDE, click on it.
  3. On the Get the Android SDK page, tick the I have read and agree with the above terms and conditions box and click on the Download the SDK Tools for Windows button.
  4. Navigate to your Download folder, and locate a file named like this: installer_r21.1-windows.exe (N.B. The r21.1 version was available when I did this how to, your version could be different.)
  5. Double click on the installer_r21.1-windows.exe file to start the installation. Take good note where the file will be installed, generally the default SDK path is : C:\Users\your_session's_name\AppData\Local\Android \android-sdk.
  6. Now, navigate to the path of the SDK installation folder.
  7. Select all (CTRL + A) in this folder and Copy (CTRL +C) them for the next step.
  8. Now you need to create a new folder at the root of your C:\ drive named : AndroidSDK
  9. Open up the newly created folder and Paste (CTRL + V) the previously copied files.
  10. Stay in this folder and double click on the SDK Manager icon.
  11. The SDK Manager will open a new window, click on Deselect All, then tick the following line in Tools : AndroidSDK Platform-tools
  12. Click on Install 1 Package..., accept the license agreement and click on Install let the manager do it's thing.
  13. Click on Done and close the manager's window.
  14. Congrats! You have created successfully your SDK tool!
  15. Wait! Let's clean your computer a bit....
  16. Go back to the previous folder, the one located in this path : C:\Users\your_session's_name\AppData\Local\Android \android-sdk
  17. Click on the Uninstaller, we don't need this one anymore. Don't worry the other AndroidSDK folder won't be deleted.
  18. Voilà! You are done with this part.

-- Screenshots for the visual ones --













____________________________________________
-- Creating of script file for a fast access --
  1. Locate the Platform-tools sub-folder in the AndroidSDK folder.
  2. Right click in a empty space of the folder and select in the contextual menu New -> Text Document
  3. Open this new Text Document and Copy/Paste this : c:\windows\system32\cmd.exe
  4. Save this file as : Start SDK.bat
  5. Acknowledge the : If you change file extension... warning.
  6. Right click your new created Start SDK and send a shortcut on your Desktop.
  7. Done! If you try to double click on your Start SDK shortcut, a command window should open with something like these lines :

Code:
C:\AndroidSDK\platform-tools>c:\windows\system32\cmd.exe
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\AndroidSDK\platform-tools>
Success!

____________________________________________
-- Installing HTC's Drivers --

This one is very easy, simply download and run the installer and let Windows do the rest. Drivers compatbile 32-bit or 64-bit
  • Download the Self-install HTCDriver_4.0.1.001.exe/
  • Make sure your phone is not plugged on your computer via the USB cable.
  • Simply run the installer of the driver you've just downloaded.
  • Once the installation is completed, simply plug your phone via your USB cable and Windows "wizard manager" will now detect your phone.
  • If it doesn't work, unplug your phone and reboot your computer. Then plug back your phone once rebooted.
  • Done!

-- Screenshots for the visual ones --




____________________________________________
-- Let's try all this! --
  1. With your phone plugged on your USB cable...
  2. From your Desktop, double click on your Start SDK shortcut.
  3. In the command window, at the command line : C:\AndroidSDK\platform-tools> type this -> adb devices (Enter)
  4. The serial number of your phone should appear in the command window. If it is the case, then try this again : C:\AndroidSDK\platform-tools> type this -> adb reboot (Enter)
  5. Your phone will now Reboot
  6. If all this worked, you have a successful SDK Tools installation!

-- Screenshots for the visual ones --




This is it, I hope this tutorial was helpful, if you have some sort of problems let me know, I will try to help you at the best of my knowledge. Have fun hacking your Android!!

This works fine on windows 8 I needed that for my HTC Desire C and I managed to do with this! Thank you!
20th June 2013, 07:22 AM   |  #4  
junpei1337's Avatar
Senior Member
Jackson,MI
Thanks Meter: 62
 
125 posts
Join Date:Joined: Oct 2011
More
I didn't know about that shortcut. Very nice.
23rd June 2013, 09:11 PM   |  #5  
XGC75's Avatar
Junior Member
Thanks Meter: 2
 
12 posts
Join Date:Joined: Jan 2013
Thumbs up


Why isn't that driver link in a stickied thread?? Solved my connectivity issues.
27th June 2013, 09:20 AM   |  #6  
aswindivakar100's Avatar
Junior Member
Flag Vatakara
Thanks Meter: 0
 
20 posts
Join Date:Joined: Jun 2013
More
Post Rooting My Htc Desire C
I need to know How to root my HTC DESIRE C ,like this beginner friendly method.Many websites are showing different ways to do it and some ways didn't work for some people iam afraid my phone becoms a brick.so please help xda developers.

And this helped a lot....Thank You So Much
27th June 2013, 08:47 PM   |  #7  
Member
Thanks Meter: 9
 
62 posts
Join Date:Joined: Jan 2011
More
I have the HTC One for AT&T, I have the drivers installed and everything works fine when the phone is powered on I can transfer stuff back and forth easily. Although as soon as I boot my into the bootloader and select the fastboot and fastboot usb and when I run my adb devices in the CMD it comes up blank under the devices connected with several cables in all 4 usb ports. What is wrong? Help please
31st December 2013, 03:58 AM   |  #8  
Junior Member
Thanks Meter: 1
 
25 posts
Join Date:Joined: Oct 2008
this helped me thanks. I followed everything to the tee. I only had a problem with changing the .txt to.bat extension however in notepad choosing save as and adding ".bat" in quotation marks allowed me to change the file extension
18th June 2014, 03:07 AM   |  #9  
slickrick54's Avatar
Senior Member
Flag Tampa
Thanks Meter: 166
 
640 posts
Join Date:Joined: Jan 2011
More
What an awesome tutorial! Thank you very much flawless!!!
4th July 2014, 11:29 PM   |  #10  
Member
Thanks Meter: 11
 
65 posts
Join Date:Joined: Mar 2013
can you delete the android-sdk folder once everything is finished?

Post Reply Subscribe to Thread

Tags
adb install, beginners guide & tutorial, friendly support, getting started with adb/sdk tool
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes