[GUIDE][HOW TO]ADB & Fastboot From Anywhere in Command Prompt

Status
Not open for further replies.

fareeed

Senior Member
Apr 16, 2012
442
173
0
Newcastle
Hello, this a quick guide on how to get adb and fastboot working from anywhere in command promt. You might ask why this is useful? Well if you set your system up like this, you can use adb and fastboot from practically anywhere. This is very convenient and saves you having to navigate to your SDK every time you want to do something with your phone. So let's get started! :)

Prerequisites:

  • Windows 7 or Windows 8
  • Java JDK downloaded and installed.
  • Android SDK, preferred location:
    Code:
    C:\AndroidSDK
    See note

  1. First, right click My Computer and select Properties. From there, select Advanced system settings.




  2. Then, select Environment Variables




  3. You will now get a box that looks like this. Select edit, here is the important part.




  4. Do NOT delete any of the text in the field, simply add:
    Code:
    C:\AndroidSDK\platform-tools;C:\AndroidSDK\tools
    to the end of the text field, like this




    Note: This assumes that your Android SDK, tools and platform-tools folders are setup in the same directory as mine, if not please modify the path accordingly :)

  5. After you've edited the text field, press okay, then okay again and voila. Finished!




From now on, whenever you need to use adb or fastboot simply open command prompt and type away :)




If you have any comments or suggestions, please feel free to leave a reply below :D
 
Status
Not open for further replies.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone