Android SDK brings with itself the two most important tools needed for tweaking your Android phone, ADB (Android Debug Bridge) and Fastboot. Why do we need them? ADB and fastboot help us install a custom recovery, which allows us to root our Android devices, install custom ROMs and perform many other system tweaks which are not otherwise
Let’s get on with how to set up ADB and Fastboot for your Android phone so that you never have to go through USB drivers issues again when trying out a custom Rom.
How to Set Up ADB and Fastboot with Android SDK
Instructions on how to set up ADB / Fastboot on your computer. Follow the steps carefully and make sure you read the tutorial once before actually performing it.
Things You Need:
- An Android phone…
- USB cable
- A computer
DOWNLOADING JAVA & ANDROID USB DRIVERS
First, we need to get Java Platform installed and then download the Android USB drivers (and some other tools) using Android SDK Manager. This is how it is to be done:
Step 1 – Download and Install Java Platform (JDK) from Java SE Software Development Kit (SDK) downloads. Once installed, proceed to the next step.
Step 2 – Download Android SDK (installer_rXX.X-windows) from the Android Developers website. Preferably: Click on Other platforms and download the ZIP package file for Windows.
Step 3 – Extract the zip file anywhere in your computer. We extracted in D: drive. So now we have, D:android-sdk-windows.
Step 4 – Open SDK Manager and wait till it loads (fetches) all the packages.
Step 5 – Now only select two pakcages. Check Android SDK Platform-tools and Google USB Driver options. Uncheck everything else. Then click on the “Install 2 packages…” button.
Step 6 – Confirm the packages that you selected. Select Accept All and click the “Install” button.
Step 7 – Wait till the downloading finishes.
Step 8 – Once you get the following screen, this means all the packages have been successfully installed.
Step 9 – If you again go to the Android SDK folder (D:android-sdk-windows), you will see the following directories now. extras and platform-tools are the most important ones that we need.
We can proceed on setting up ADB. In this part, we will tell you how to use the downloaded USB drivers to set up ADB.
NOTE: USB drivers may be different for other Android phones.
Step 10 – Make sure USB debugging is enabled on your phone. How? See here:
Step 11 – Connect your Android phone to the computer and wait till your PC installs all the drivers it could. Most of the drivers would fail to install.
Step 12 – Go to Start -> Control Panel -> System -> Device Manager. In the list, you will see your phone.
Step 13 – Right-click on it, and select Update Driver Software…
Step 14 – Select the second option from the following screen.
Step 15 – Again, select the second option from the next screen as shown below.
Step 16 – Select Show All Devices and click Next.
Step 17 – Click the “Have Disk” button. Now browse to D:android-sdk-windowsextrasgoogleusb_driver directory and select android_winusb.inf. Click Open. Then click on OK.
Step 18 – You will be show a list of Android drivers. Select Android ADB Interface and click Next.
Step 19 – Click Yes to the warning message.
Step 20 – Now wait till driver installation gets over. Click the ‘Install’ button if you see the following warning message.
Step 21 – Do you see the following screen now? Congratulations! ADB drivers are now successfully installed on your computer!
Step 22 – Now to verify ADB is working fine, go to the platform-tools directory (D:android-sdk-windowsplatform-tools).
Step 23 – Open Command Prompt. Hold Shift key + right-click anywhere in the folder and select Open command prompt here.
Step 24 – Type “adb devices” (without quotes) in the Command Prompt window and press Enter.
Step 25 – If you see the screen as in the screenshot above, you have successfully set up ADB on your computer for your Android phone.