What U search ?

konten dari Teknologi, Marketing, Adsense, Tips, Blogger, Keuangan, Jomblo dan lainnya
Think | Do | Be Positive And Work For Success

How to Use ADB and Fastboot from Any folder on Windows and Linux

How to Use ADB and Fastboot from Any folder on Windows and Linux

if you need to use adb and fastboot from any directory and location in your windows or linux then read this complete blog post i will explain you how to use.

adb and fastboot

i have previusly explaind how to install ADB and Fastboot on Windows, Linux, or macOSand also in this post we explaind how to make successful connection between android and pc using adb. but each time you have to make use of adb and fastboot. you need to change the directory location of terminal/command window. and now we are showing you how you can use adb and fastboot from any location in windows, linux, macos.

Make Use ADB and Fastboot from Any Directory


Before we get to the arrangement, let us shed some light on the minor inconvenience that you may confront.

if want to use tools then you have to change the current working directory or command window to the location where adb/fastboot files are located and and any file that you want to use with adb/fastboot.
we have a good solution that can be use now. which is set a PATH variable and allow the CMD/Terminal shell to recognize the path of the directory where the ADB and Fastboot binaries/executables are located.


Adding PATH Variable in Windows

  • Open ‘Windows Explorer’.
  • click on left bar and right click on this pc icon and click on properties.
Use ADB and Fastboot from any directory - Windows Explorer Properties

  • and now find advanced system settings and click on image you can see in image below.
Use ADB and Fastboot from any directory - Advanced system settings

  • and now new popup window will open you have select environment variables in advanced tab.
Use ADB and Fastboot from any directory - Environment Variables

  • now find path variable in variables available for your username.
  • select it and now click to edit button.
Use ADB and Fastboot from any directory - Edit Path variable
  • in editor select new and add adb/fastboot folder location.
C:\<path-to-folder>
  • For example:
    C:\adb

Use ADB and Fastboot from any directory - Add ADB tools patch
  • and now click on ok to save changes.
  • some cases you need to restart your pc to make changes effective.
  • and after restart you can use abd/fastboot from any location.
  • and now try this with opening a powershell command window and enter the command.
adb
  • and now your pc should recognize the adb platform tool and output the help menu instructions.

Adding PATH Variable in Linux

want to use adb and fastboot in linux then follow the instructions below.
you want to configure .bashrc file this is usualy placed in root location of the os installation.

  • Now open the terminal window in linux os.
  • And enter the command to edit the .bashrc file.

sudo nano .bashrc
      • this command will open the .bashrc file for editing.
      • now go to add the path to the adb tools location.
        export PATH=${PATH}:/home/YOUR-USERNAME/path/to/adb
      • Now there ''your-username" you need to replace it with you username in the command line and. ''/path/to/adb" will be replaced with the your path to adb/fastboot tools package folder whereb your executables files are located.
      • For example:
        export PATH=${PATH}:/home/aamir/Desktop/adb
      • when done now you have to save the changes try this command in terminal window to confirm save changes if you are able to adb platform tools from any directory.
        ./adb
      1. the command should return help menu instructions. Which means, that your Linux os recognizes the adb location path.
      if you face any type of problem then you can comment below we will solve for you.

      Top Article For You

      , , , , , Edit Post

      Powered by Blogger - Template CaraSehat.Me