How to Verify Your ADB Connection: adb devices, Wi-Fi Pairing, Unauthorized, Offline #Shorts
How to verify your ADB connection with adb devices, what to do when the list is empty, the phone says unauthorized or the state is offline, and how to connect over Wi-Fi with adb pair on Android 11 and newer.
WHAT YOU NEED
- A phone with USB debugging on, plugged into your computer (or Android 11 or newer for the Wi-Fi part)
- ADB installed (adb version prints a version)
STEPS Run: adb devices
Your phone's serial number followed by the word device means it's connected. Add -l for more detail, like the phone's model: adb devices -l unauthorized: unlock the phone and accept the prompt. offline: the device isn't responding. Replug it, then restart ADB with adb kill-server. Empty list: ADB can't reach the phone. Try another cable or port, and check that USB debugging is on. Two devices connected? ADB won't guess. Add -s and the serial number. To connect over Wi-Fi instead, keep the phone and computer on the same network and turn on Wireless debugging in Developer options. Tap Pair device with pairing code, then run adb pair with the address and port shown on the phone, and enter the code. Run adb devices. The address with the word device means you're connected.
COMMANDS FROM THE VIDEO
adb devices
adb devices -l
adb kill-server
adb pair ipaddress:port
GOOD TO KNOW
- Wi-Fi debugging needs Android 11 or newer and the latest SDK Platform Tools.
- No prompt on the phone? In Developer options, tap Revoke USB debugging authorizations, then plug in again.
FAQ
What does adb devices print?
A list with each device's serial number and its state. The states are device (connected), offline (not connected or not responding) and no device (nothing connected).
How do I connect ADB over Wi-Fi?
On Android 11 or newer, keep the phone and the computer on the same network and update SDK Platform Tools. On the phone, turn on Wireless debugging in Developer options and tap Pair device with pairing code. Then run adb pair with the IP address and port shown on the phone and enter the code. After pairing, adb devices lists the phone.
What does unauthorized mean?
The phone hasn't approved this computer yet. Unlock the phone and accept the Allow USB debugging prompt. No prompt? Tap Revoke USB debugging authorizations in Developer options and plug the phone in again.
What does offline mean in adb devices?
The device is not connected to adb or is not responding. Try another cable, then run adb kill-server. The next adb command starts a fresh server.
What if two devices are connected?
ADB won't guess. Add -s and the serial number from adb devices, for example adb -s emulator-5554 shell.
What does adb kill-server do?
It stops the ADB server. The next adb command starts a new one, which fixes most offline and not responding states.
Do I need a USB driver on Windows?
You may need the USB driver from your phone's maker if Windows doesn't detect the phone. Mac and Linux usually don't need one.
How do I turn on Developer options?
Open Settings, About phone and tap Build number seven times. On Android 4.2 and higher the Developer options screen is hidden until you do this.
Which port does the ADB server use?
The server binds to local TCP port 5037 and listens for commands from adb clients. It starts by itself the first time you run an adb command.
Why does my terminal say adb: command not found?
The platform-tools folder isn't on your PATH. Add it to your PATH, or open a terminal inside the folder and run./adb on Mac and Linux (adb on Windows Command Prompt).
ABOUT THIS VIDEO
The adb devices, offline, empty list and two devices output are real recordings. The unauthorized output is recreated and labelled. The Wi-Fi pairing was recorded against an Android 16 emulator through a port redirect, so the address is the one its Wireless debugging screen showed; on your phone you will see your own address. The phone screens are real emulator screenshots, and the opening phone background is AI-generated (ChatGPT image, animated with Magnific). The narration is an AI voice.
ADB works for phones you can plug in. When the bug happens on a user's phone, there is no cable and no Logcat. Bugfender collects your app's logs remotely from the devices where the bug happened, with the device and app version next to each line. It works next to ADB, it doesn't replace it. Get started for free: https://bugfender.com
RELATED VIDEOS
"How to Set Up ADB on Your Android Phone"
"How to Use ADB for Debugging"
LINKS
Android Debug Bridge (official docs): https://developer.android.com/tools/adb
SDK Platform Tools download: https://developer.android.com/tools/releases/platform-tools
Developer options and USB debugging: https://developer.android.com/studio/debug/dev-options
Logcat command-line reference: https://developer.android.com/tools/logcat
ADB debugging guide (Bugfender blog): https://bugfender.com/blog/adb-debugging/
Bugfender: https://bugfender.com
#Shorts #AndroidDev #ADB