How to Install Android Debug Bridge (ADB)

Debug Bridge,Android Debug Bridge Google released two tools known as Android Debug Bridge (ADB) and fastboot, each of which can be available in a package called Platform Tools. They are command line gear that permit you to customise and manage your Android telephone by sending instructions to it via your pc.

As lengthy as debugging mode is enabled in your smartphone, you could ship ADB commands whilst the phone is running regularly or even when it is in healing mode. Plus, the device doesn’t even want to be rooted, so you do not have to fear approximately following those steps first.

The records protected right here need to practice irrespective of who made your Android smartphone: Samsung, Google, Huawei, Xiaomi, and so forth.

These ADB instructions can be used to modify your Android without having to in reality contact the tool, however there is a lot more it’s possible. With ADB, you can do easy things like set up system updates or even deal with matters that are commonly restrained, like tweaking settings you didn’t even know existed, or getting access to device folders which can be typically locked down.

Here are some examples of ADB commands:

  • adb devices shows which ADB supported devices are connected to your computer
  • reboot restarts your phon
  • backup creates a full backup of your phone and saves it to your computer
  •  
  • sideload loads ROMs and other ZIP files from your computer onto your Android
  • pull copies files from the phone to your computer
  • shell allows commands to be run in a terminal on the Android device
  • reboot -bootloader starts your phone in bootloader mode so that you can run fastboot commands.

Fastboot is beneficial in case you want to exchange your Android cellphone’s firmware or different file device details at the same time as it is in bootloader mode, like putting in a new boot image. It’s normally used to install a custom recovery have to the smartphone prevent booting generally.

01.Debug Bridge,Android Debug Bridge How to Download ADB and Fastboot

Debug Bridge,Both of those utilities are to be had thru Android.Com:

Visit the SDK Platform-Tools down load page to discover the ultra-modern version of ADB and fastboot.

They’re additionally included inside the complete Android SDK but it’s needless to download all of that only for those equipment that you can get them via Platform Tools.

Choose the download hyperlink that corresponds with your working gadget. In different phrases, if you have Windows, choose the SDK Platform-Tools for Windows one, or the Mac download for macOS, and so forth. After studying via the terms and conditions, click on the field next to I have examine and believe the above phrases and situations. Click DOWNLOAD SDK PLATFORM-TOOLS FOR [operating system]. Save the report somewhere memorable because you may be the use of it once more rapidly. The folder wherein you commonly keep documents is quality as long as you understand the way to get again there.​ Since ADB downloads in a ZIP archive, you’ll be extracting it earlier than the use of it, which you can pick a area for inside the next step. This approach that the area in Step four is not always the permanent location of the program.

02.Android Debug Bridge pen the Platform Tools ZIP File

Windows

  1. Right-click platform-tools-latest-windows.zip and choose the extract option. It’s called Extract All… in some versions of Windows.
  2. When asked where to save the file, like you see in the image above, pick a folder that’s appropriate for ADB to stay, not somewhere temporary like a downloads folder or somewhere that’s easily cluttered like the desktop. I’ve chosen the root of my C: drive, in a folder called ADB.
  3. Put a check in the box next to Show extracted files when complete.
  4. Click Extract to save the files there.
  5. The folder you chose in Step 1 should open and show the platform-tools folder that was extracted from the ZIP file you downloaded earlier.

7-Zip and PeaZip are some third-party programs that can open ZIP files in Windows.

macOS

  1. Double-click platform-tools-latest-darwin.zip to immediately have the contents extracted to the same folder you’re in.
  2. A new folder should appear called platform-tools.
  3. You’re welcome to move this folder anywhere you like or you can keep it where it’s at.

F you would as a substitute, you may as a substitute use The Unarchiver or Keka to open the ZIP record.

Linux

Linux users can use the following Terminal command, replacing destination_folder with whatever folder you need the platform-device folder to emerge as in.

unzip platform-tools-latest-linux.zip -d destination_folder

The high-quality way to do this is to open Terminal on the folder in which the ZIP record resides. If it truly is now not the case, you need to regulate the platform-tools-ultra-modern-linux.Zip course to include the whole course to the ZIP record.

If the unzip software isn’t always set up, run this command:

sudo apt-get install unzip

Like with Windows, you can use 7-Zip or PeaZip in Linux instead if you’d rather not use these Terminal commands or they’re not working for you.

03.Copy the Folder Path to “platform-tools” Folder Path

Before you start using ADB, you want to make certain that it is easily reachable from the command line. This requires the route to the platform-gear folder from the preceding slide to be setup as an environment variable.

The easiest manner to do that is to first reproduction the direction to the folder:

Windows

  1. Open the folder where you extracted the platform-tools folder.
  2. Open the platform-tools folder so that you can see the folders and files inside it.
  3. At the top of the window, click in an empty space next to the path. You can alternatively hit Alt+D to quickly move the current focus to the navigation bar and automatically highlight the folder path.
  4. When the path to the open folder is highlighted, right-click and copy it, or hit Ctrl+C.

macOS

  1. Select the platform-tools folder you extracted.
  2. Hit Command+i to open the Get Info window for that folder.
  3. Click and drag to select the path next to “Where” so that it’s highlighted.
  4. Hit Command+C to copy the folder path.

Linux

  1. Open the platform-tools folder so that you can see the other folders and files inside it.
  2. Hit Ctrl+L to move the focus to the navigation bar. The path should instantly become highlighted.
  3. Copy the path with the Ctrl+C keyboard shortcut.
  4.  

Edit the PATH System Variable

Here’s how to open the Edit System Variable display screen in Windows in order that the route you copied may be setup as a PATH gadget variable:

1.Open Control Panel.

  1. Search for and open the SystemApplet
  2. Choose Advanced system settings from the left side.
  3. In the System Properties window, click or tap Environment Variables… at the bottom of the Advanced tab.
  4. Locate the bottom area labeled System variables, and find the variable named Path.
  5. Click Edit….
  6. Right-click in the Variable value: text box and paste the path to the platform-tools folder. If there are other paths already in the text box, go to the very far right side (hit End on your keyboard to quickly get there) and put a semicolon at the very end. Without any spaces, right-click and paste your folder path there. See the image above for reference.
  7. Click OK a few times until you get out of System Properties.

Follow these steps to edit the PATH file in macOS or Linux:

  1. Open Terminal through Spotlight or Applications/Utilities.
  2. Enter this command to open your Bash profile in your defaultTextual content editor:
touch ~/.bash_profile; open ~/.bash_profile

Move the cursor to the very end of the file and enter the following, replacing folder with the path to the platform-tools folder:

 

export PATH=”$HOME/folder/bin:$PATH”

3.Save the file and exit the text editor. 4.Enter the following Terminal command to run your Bash profile:

source ~/.bash_profile

Test to Make Sure You Can Reach ADB

Now that the system variable is properly configured, you should check that you can actually run commands against the program.

  1. Open Command Prompt or Terminal.
  2. Enter adb.
  3. If the result of the command is text similar to this:
Android Debug Bridge version 1.0.39 Revision 3db08f2c6889-android Installed as C:\ADB\platform-tools\adb.exe