[SIZE="+1"]-- Android SDK/ADB tool Tutorial --[/SIZE]
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!
____________________________________________
[SIZE="+1"]-- Enabling USB debugging mode --[/SIZE]
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!
____________________________________________
[SIZE="+1"]-- Java Installation --[/SIZE]
This is a prerequisite to have a flawlessly working SDK tool installation.
- Click on the following link to download it on Java's website : Free Java Download
- On the next page, do not click on Agree and Start Download, instead click on See all Java downloads.
- 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.
- Before installing the latest version of Java, it is recommended to uninstall all previous Java's installation. (How to -> Remove Older Versions)
- Complete the required installation depending of the type of Windows installation.
- You are all done for Java.
-- Screenshots for the visual ones --
____________________________________________
[SIZE="+1"]-- SDK Tools Installation --[/SIZE]
- First step is to download the SDK Manager, to do so click on this link -> Download the SDK
- Next locate on the bottom of your screen the USE AN EXISTING IDE, click on it.
- 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.
- 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.)
- 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.
- Now, navigate to the path of the SDK installation folder.
- Select all (CTRL + A) in this folder and Copy (CTRL +C) them for the next step.
- Now you need to create a new folder at the root of your C:\ drive named : AndroidSDK
- Open up the newly created folder and Paste (CTRL + V) the previously copied files.
- Stay in this folder and double click on the SDK Manager icon.
- The SDK Manager will open a new window, click on Deselect All, then tick the following line in Tools : AndroidSDK Platform-tools
- Click on Install 1 Package..., accept the license agreement and click on Install let the manager do it's thing.
- Click on Done and close the manager's window.
- Congrats! You have created successfully your SDK tool!
- Wait! Let's clean your computer a bit....
- Go back to the previous folder, the one located in this path : C:\Users\your_session's_name\AppData\Local\Android\android-sdk
- Click on the Uninstaller, we don't need this one anymore. Don't worry the other AndroidSDK folder won't be deleted.
- Voilà! You are done with this part.
-- Screenshots for the visual ones --
____________________________________________
[SIZE="+1"]-- Creating of script file for a fast access --[/SIZE]
- Locate the Platform-tools sub-folder in the AndroidSDK folder.
- Right click in a empty space of the folder and select in the contextual menu New -> Text Document
- Open this new Text Document and Copy/Paste this : c:\windows\system32\cmd.exe
- Save this file as : Start SDK.bat
- Acknowledge the : If you change file extension... warning.
- Right click your new created Start SDK and send a shortcut on your Desktop.
- 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!
____________________________________________
[SIZE="+1"]-- Installing HTC's Drivers --[/SIZE]
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 --
____________________________________________
[SIZE="+1"]-- Let's try all this! --[/SIZE]
- With your phone plugged on your USB cable...
- From your Desktop, double click on your Start SDK shortcut.
- In the command window, at the command line : C:\AndroidSDK\platform-tools> type this -> adb devices (Enter)
- 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)
- Your phone will now Reboot
- 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: