Error Code: error: device offline

How to Fix "device offline" Status in ADB

Resolve unresponsive ADB socket channels and protocol version mismatches.

Common Symptoms

  • `adb devices` outputs `RF8M90... offline`
  • Shell commands fail immediately with `error: device offline`

Root Causes

  • Unstable USB port power delivery
  • Outdated ADB client platform-tools version communicating with newer Android OS
  • The phone is in bootloader/fastboot mode or deep sleep suspension

Proven Solutions

Solution 1: Restart ADB and Re-enumerate USB

  1. Run `adb kill-server`
  2. Toggle USB debugging off and on in phone Developer Options
  3. Re-plug the USB cable into a different port (prefer USB 3.0+ port on rear motherboard)
  4. Run `adb devices`
adb kill-server
adb devices

Solution 2: Update Android SDK Platform-Tools

Legacy ADB binaries cannot establish secure tunnels with Android 13, 14, 15, and 16.

  1. Download latest platform-tools from developer.android.com or use WebADB Shell directly in browser.