Android Debug Bridge , o ADB is a tool that works as a command-line and which is part of the SDK Android. (Also available separately) Used to send commands to Android phones and tablets when they are connected to a PC via cable USB .
ADB has been designed specifically for the Android Developers but there are many useful things that, as a normal consumer, you could do with ADB . For example you can do the sideload of applications, rooting your phone, transferring files between your phone and your computer, creating backups, recording the screen and uninstalling system apps on Android.
1. Download Platform Tools for Windows. (You can also download it for Mac or Linux, from the same web page.)
2. Extract the zip file after downloading. It may be useful to save it in the “C:” drive or in the Home folder (in Linux) to make it easier to find.
3. Open the folder platform-tools and hold down the Shift key while right-clicking on the folder.
4. Choose the option “ Open PowerShell window here. “or “Open command prompt”.
At the end of these steps, ADB is set on your computer. The next step is to enable debugging USB on your phone.
Enable debugging USB on Android
Before using the commands ADB it is essential to activate debugging USB on your Android phone, without which the connection will not be possible. We have already written a detailed guide to the following link:
How to Activate Debug USB on Android
Test commands ADB
To determine if the connection between your phone and computer is working, try ADB by performing the same steps to open the command prompt above.
1. Connect your phone to the PC
adb devices in the command window and presses Send .
3. If your device appears, you have made the connection correctly.
What to do if it doesn’t work ADB ?
If the message “ Allow debugging USB “after you’ve set everything up, don’t panic. Correction can be as simple as restarting your phone or changing options USB for file transfer.
If the problem persists, try running the tests ADB . If you get a scary looking red text that tells you “ ADB is not recognised as an internal or external control “…’ tests the following steps.
1. Go to the Oracle website.
2. Scroll down to find links to all available Java download options SE .
3. Select “dk-12.0.1_windows-x64_bin.exe” or newer version.
4. Download JavaSE .
5. Double-click on the installer
6. When you have finished installing Java, right click on the icon Computer resources in Windows Explorer.
7. Select “Properties”
8. In the window that opens, select Advanced System Settings.
9. Click on the “Environmental variables” button.
10. Select the path listed in the box at the bottom of the window and click on Edit .
11. Click on “ Browse “and access the folder where you previously saved the platform’s tools folder.
12. Select the folder, the platform tools and click on OK .
13. Now, in Windows Explorer, go back to the platform tools folder and open the command prompt as you did at the beginning.
14. In the command prompt, type adb devices . Your device should appear now.
If your device is “ unauthorized “Check your phone. The debug box USB should be visible now. Allow your computer to access your phone and you’ll be ready to use ADB