ADB stands for “Android Debug Bridge” and it basically just allows you to send commands to your device. A common misconception is ADB is only useful in conjunction with root access, but there is a lot you can do with unrooted devices. You can bring System UI Tuner options to non-stock devices, force system-wide Immersive Mode, tweak the navigation bar, and more. Google makes it easy to get ADB up and running quickly.
ADB is a small tool bundled in the Android SDK as part of the “Platform Tools.” Users used to be required to download the entire SDK (which is very large) just to use ADB, but Google now allows users to download only the Platform Tools.
- Download the SDK Platform Tools for Windows, Mac, or Linux
- Extract the ZIP file somewhere easily accessible (like C:\platform-tools)
Now we need to do a few things on your Android device. First, you’ll need to enable the secret Developer Options. Skip this step if you already enabled Developer Options.
- Open Settings
- Scroll down to System (step 3 not required for pre-Android Oreo devices)
- Select About phone
- Tap Build number 7 times in quick succession (some phones will bury this under Software info)
- You will see a message appear that says Developer Options are enabled
- Now go back and you’ll see Developer Options listed
With that out of the way, we can enable USB debugging.
- Open Settings
- Go to System > Developer options or just Developer options
- Scroll until you find USB debugging
- Toggle the switch on
You have ADB downloaded on your computer and your Android device is ready to receive instructions. Now it’s time to put it all together and run your first ADB command.
- Connect your Android device to the computer with a USB cable
- The USB mode must be PTP in order for ADB to work. You can usually change this from the notification shade
- Make sure to allow USB debugging if a pop-up appears
- Open the platform-tools folder on your computer
- Shift+Right Click and select Open command prompt here
- Type
adb devices
and hit Enter - You should see a list of attached devices
- Now you can enter ADB commands!