How to Fix adb Device Offline Without Replugging the Phone Ten Times and Pretending That Is a Workflow
A practical guide to fixing adb device offline errors by restarting the adb server, resetting USB authorization, checking transport mode, and verifying that the host and device trust relationship is still valid.
Why this keeps returning:
adb device offlineis usually not one dramatic Android failure. It is the host and device losing trust, transport stability, or a clean server session.
You run:
adb devicesand see:
abcdef123456 offlineStep 1: restart the adb server cleanly
adb kill-server
adb start-server
adb devicesThis clears a surprising number of transient states.
Step 2: reset USB debugging authorization on the phone
On Android:
- open Developer options
- tap
Revoke USB debugging authorizations - disconnect and reconnect the device
- accept the host fingerprint again
If you never get the trust prompt again, the issue is not solved yet.
Step 3: check USB mode and cable quality
Charging-only mode and low-quality cables cause nonsense errors that look like adb problems.
Prefer:
- file transfer or similar data mode
- a cable known to carry data
- a direct port instead of a flaky hub
Step 4: inspect the device state again
adb devices -lIf the device still shows offline, remove stale adb keys on the host:
rm -f ~/.android/adbkey ~/.android/adbkey.pub
adb kill-server
adb start-server
adb devicesThen reconnect and accept the trust dialog again.
Wireless debugging note
If you are using adb over TCP/IP, stale pairing or network changes can produce the same symptom. Re-pair if needed rather than assuming USB-only fixes apply.
Verification checklist
adb devices -l
adb shell getprop ro.product.modelYou want the device listed as device, not offline, and a shell command that returns normally.
Bottom line
adb device offline is usually a broken trust or transport session, not a mysterious Android curse. Restart the server, reset authorization, and make sure the cable and USB mode are not undermining you before touching more exotic fixes.