adb unauthorized Android Origin: On your device Last updated 13 Oct 2026

adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set

The phone hasn’t accepted your computer’s RSA key for USB debugging yet.

Exact message you may see device unauthorizedunauthorized (adb devices)This adb server's $ADB_VENDOR_KEYS is not setTry 'adb kill-server' if that seems wrong
Seen on: Android

Meaning

The first connection shows an “Allow USB debugging?” dialog on the phone. If it was dismissed, the key revoked, or the adb keys regenerated, the device stays unauthorized.

Common causes

  • Prompt on the phone not accepted (screen locked)
  • USB debugging authorizations revoked
  • adb keys changed (~/.android/adbkey)
  • Charge-only cable/USB mode

⚡ Quick fix

  1. Unlock the phone and accept the prompt (tick Always allow)
  2. Revoke authorizations in Developer options and reconnect
  3. Restart adb server

Detailed fix by platform

ADB

  1. kotlin
    adb kill-server && adb start-server
    adb devices

How to diagnose

  1. Phone — Prompt visible?
  2. Keys — ~/.android/adbkey present?
  3. Cable — Data-capable?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

ActivityNotFoundException — ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml? (Android)ActivityNotFoundExcep…adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version do…Can not perform this action after onSaveInstanceState — IllegalStateException: Can not perform this action after onSaveInstanceState (fragment transaction) (Android)Can not perform this …FLAG_IMMUTABLE or FLAG_MUTABLE — Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent (Android)FLAG_IMMUTABLE or FLA…Fragment not attached to a context — IllegalStateException: Fragment x not attached to a context / not attached to an activity (Android)Fragment not attached…INSTALL_FAILED_INSUFFICIENT_STORAGE — INSTALL_FAILED_INSUFFICIENT_STORAGE: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] (Android)INSTALL_FAILED_INSUFF…INSTALL_FAILED_TEST_ONLY — INSTALL_FAILED_TEST_ONLY: installPackageLI (Android)INSTALL_FAILED_TEST_O…INSTALL_FAILED_UPDATE_INCOMPATIBLE — Android: INSTALL_FAILED_UPDATE_INCOMPATIBLE (Android)INSTALL_FAILED_UPDATE…adb unaut…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.