Tutorial : How To Set Up Android ADB & Fastboot On Windows



If you've ever tried to root your Android phone or flash a ROM, you may have heard about ADB and/or fastboot. These two tools are surprisingly powerful, but can be a bit overly complex to install. 


Abbreviation for Android Debug Bridge, ADB for the uninitiated, provides a terminal/command-line-based interface for interaction between your computer and Linux-based Android Device. 


Packaged as a part of the platform tools in Android Software Development Kit (SDK), ADB allows app developersto tamper the internal components of the operating system; ones that are not available to the user otherwise. Since modding a firmware often deals with changing parts of the system, ADB is essential to gain those abilities.


One question that does arise at this point, is why you’d need ADB access. If you go through most of the mod or custom firmware installation guides, they put this tool to be set up on your PC as a basic, essential requirement.

Even in several of our Android rooting/modification guides, you’ll see ADB required. Hence, if you want to make any advanced-level changes to your Android Smartphone or tablet, ADB is a must.



These days, a new term has joined in with the debugging bridge, Fastboot. Along side ADB, you’ll often see Fastboot as one of the required configuration components, especially for the newer devices. From CyanogenMod Wiki, Fastboot is:


"A command line tool used to directly flash the filesystem in Android devices from a host via USB. It allows flashing of unsigned partition images. It is disabled in prioduction Device since USB support has been disabled in the bootloader."

What are ADB and Fastboot?


These two tools allow you to send terminal commands to your phone from your computer via USB. They both serve different functions, but they can be installed with relative ease at the same time, so it's helpful to have both. Here's a (very) brief breakdown on what these tools do:

Android Debug Bridge (ADB): This tool allows you to send a wide array of terminal commands—including but not limited to basic Linux shell commands, plus some specialty developer commands—to your phone at just about any time (as long as you have debugging enabled on your phone). You can send commands while the phone is turned on and booted, or even when it's in recovery mode. While ADB is often used in conjunction with rooting or modifying your phone, you can use ADB to send terminal commands to unrooted devices as well.


Fastboot: When you need to modify your phone's firmware, fastboot is the tool you need. This allows you to send commands to the bootloader, which means you can flash/modify things like custom recoveries. You can't flash whole ROMs with it, but it's helpful for many things that ADB can't do. Fastboot isn't enabled for all phones, so you may have to check your specific device.



Both of these tools come with the Android SDK, however this is an extremely large download that, frankly, most users who are interested in ADB and fastboot don't need. If you just want to root your phone, flash some ROMs, and mess around in the terminal without having to muck about with complex button combinations, skip the SDK.

How To Set Up ADB & Fastboot For Android On Windows

Despite the ultra-useful functionality that ADB & Fastboot impart to your computer, setting them up is pretty easy. Since they both come packaged as part of the standard Android SDK, all you need to do is download the kit and set up path variables.

Step 1: Head over to this link to download the latest version of Android SDK.

Step 2: Extract the contents of the downloaded file to your hard drive. Within the unzipped “sdk” folder, you’ll find another folder labeled ‘platform-tools’. Since we’re interested in only ADB and Fastboot, this is the one that we’re looking for.

Step 3: Move the platform-tools folder to a convenient location on your PC. The root of C: drive is usually a good idea. I also recommend renaming the folder to something easier, like C:\Android-adb.






By this point, ADB is essentially set up, but to use it, you’ll first need to navigate your command prompt window to this Android-adb folder, and then run all ADB commands inside it. Since it’s too much hassle for most users, we’ll add this location to Windows’ System Path Variable, so you can run ADB commands from anywhere.



Step 4: Right-click the Computer icon on your desktop, and go to Properties.





Step 5:
Under System Properties, go to the Advanced tab, and click Environment Variables.



Step 6: The system variables are contained within the lower pane. Locate “Path” here, highlight it, and click the Edit button.




Step 7: There will already be a string of locations here; navigate to the very end, and add the following text (assuming that you have chosen C:\Android-adb as the folder; otherwise, enter whatever path you’ve located adb at):

;C:\Android-adb

Click OK, finally.




Your ADB folder is now configured, and you can run both ADB and Fastboot commands from anywhere in command prompt.


To verify, connect your Android device to PC with USB Debugging enabled, launch a command prompt window, and type “adb devices” (without quotes). The daemon will start up, and all Connected Devices will be listed.





For more information on ADB, do check out Google’s official guide.









Source:Redmondpie


No comments:

Powered by Blogger.