Android

ADB 'device unauthorized' Error: Causes and 5 Fixes

The 'device unauthorized' error occurs when the computer cannot authorize the connection via USB debugging. In this guide, you'll find 5 working ways to solve the problem—from simply reconnecting the cable to resetting USB debugging settings.

Updated at February 14, 2026
10-15 min
Medium
FixPedia Team
Применимо к:Android 8.0+ADB 1.0.41+Windows 10/11, macOS, Linux

Why does the device unauthorized error occur?

The device unauthorized error in the adb devices output means that the ADB server on your computer cannot establish a secure connection with the device. This is not a driver failure or a missing cable—it's a protective mechanism in Android, starting from version 4.2.2.

Every time a new computer attempts to connect via USB debugging, Android must explicitly permit this access. The permission is stored in the system using a debugging key. If you previously clicked "Cancel" or reset developer settings, the "Always allow from this computer" checkbox was not set, and upon the next connection, ADB receives the unauthorized status.

Typical symptoms

  • In the terminal: adb devices shows unauthorized instead of device.
  • The standard "Allow USB debugging?" dialog does not appear on the phone screen.
  • The device is listed in fastboot devices, but not in adb devices.
  • The issue occurs only on one specific PC; debugging works on another.

5 Proven Solutions

Solution 1: Hardware Check and Basic Restart

Start with the simplest—hardware-related causes.

  1. Cable: Use the device's original cable or a high-quality data-supporting alternative. Many cheap cables only have power lines.
  2. Port: Connect the cable directly to a port on the computer's motherboard, avoiding USB hubs.
  3. Restart ADB: In the terminal/command prompt, run:
    adb kill-server
    adb start-server
    adb devices
    
  4. Reconnect the device, having first unlocked the screen (PIN/pattern).

After this, the debugging authorization dialog should appear on the device. Be sure to check the "Always allow from this computer" box and tap "OK".

Solution 2: Recreate the Authorization Key on the Device

If the authorization window doesn't appear, reset the saved keys on the device itself.

  1. Open Settings → Developer options (if not visible, enable it by tapping "Build number" in "About phone" 7 times).
  2. Find the "Revoke USB debugging authorizations" option.
  3. Confirm the reset.
  4. Turn off and back on the "USB debugging" option.
  5. Reconnect the device to the computer.

The system will delete the old keys, and the permission request will appear again upon the next connection.

Solution 3: Change USB Mode and Reboot the Device

Sometimes the conflict arises from the selected connector mode.

  1. With the cable connected, pull down the notification shade on the device.
  2. Tap the "USB for charging" (or "USB connection") notification.
  3. Select "File Transfer (MTP)" or "Transfer files".
  4. Reboot both the phone and the computer.
  5. After booting, check adb devices again.

For some firmware (MIUI, EMUI), you need to go to Settings → Additional settings → Developer options and enable "USB debugging (Security settings)" as a separate option.

Solution 4: Manually Adding the Authorization Key (Advanced)

If none of the above worked, the key file on the device might be corrupted. Root access is required.

  1. Install a file manager with root access on the device (e.g., Solid Explorer).
  2. Navigate to the /data/misc/adb/ folder (or /data/adb/ on some firmware).
  3. Find the adb_keys and adb_keys.pub files. Delete them.
  4. Reboot the device.
  5. Enable USB debugging and connect to the PC—the authorization window will reappear.

This method is impossible without root.

Solution 5: Reset Developer Settings and Factory Reset (Last Resort)

If the problem persists, the system developer settings might be corrupted.

  1. In Settings → Developer options, find "Reset developer options" and perform the reset.
  2. Disable and re-enable developer mode (tap "Build number" 7 times again).
  3. Re-enable "USB debugging".
  4. If that didn't help—perform a factory data reset (Settings → System → Reset → Factory data reset). All data will be erased! Create a backup beforehand.

After the reset, the developer settings will "forget" the old keys, and authorization will work with the new PC.

Preventing the Problem

  • Always check the "Always allow from this computer" box upon first connection.
  • Avoid turning off "USB debugging" unnecessarily.
  • Use high-quality data-supporting cables.
  • When changing PCs or reinstalling the OS, be prepared for re-authorization.

What to Do If the Problem Persists?

If none of the solutions helped, check:

  1. ADB drivers on your computer (for Windows, use SDK Platform-Tools or Universal ADB Driver).
  2. Firmware specifics—on Xiaomi/Redmi/Realme, you often need to separately enable "USB debugging (Security settings)" and "Install via USB".
  3. The condition of the device's USB port—mechanical damage or dirty contacts.

For devices with a locked bootloader and custom firmware (LineageOS, Pixel Experience), you may need to manually install the key via recovery or re-flash adb_keys.

F.A.Q.

What does the 'device unauthorized' error in ADB mean?
Why doesn't the debug permission dialog appear on the phone?
Can I bypass the authorization window if I've lost access to the phone's screen?

Hints

Physical inspection of cable and ports
Reconnection and ADB server reset
Revoke USB debugging and restart
Reset USB connector settings
ADB authorization reset via fastboot (last resort)
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community