INSTALL_FAILED_USER_RESTRICTED Android Origin: On your device OSI layer 7 · Application Last updated 13 Oct 2026

INSTALL_FAILED_USER_RESTRICTED: Install canceled by user (Xiaomi/MIUI, Oppo, Vivo)

The phone’s manufacturer layer blocked installs over USB — Xiaomi/MIUI, Oppo/ColorOS and Vivo require extra developer settings.

Exact message you may see Install canceled by userInstall via USB
Seen on: Android

Meaning

Besides USB debugging, MIUI needs “Install via USB” (and sometimes “USB debugging (Security settings)”) which may require a Mi account and SIM. Other OEMs show a confirmation dialog on the phone that times out.

Common causes

  • “Install via USB” disabled (MIUI)
  • On-device install prompt not confirmed
  • Work profile/MDM restrictions

⚡ Quick fix

  1. Enable Developer options → Install via USB and USB debugging (Security settings)
  2. Watch the phone and accept the install prompt
  3. Remove MDM restrictions for test devices

Detailed fix by platform

ADB

  1. adb install -r app-debug.apk # then confirm on the phone screen

How to diagnose

  1. OEM — Xiaomi/Oppo/Vivo?
  2. Settings — Install via USB enabled?

🔧 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):

adb server version doesn't match — adb server version (41) doesn't match this client (39); killing... (Android)adb server version do…adb unauthorized — adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set (Android)adb unauthorizedINSTALL_FAILED_INSUFFICIENT_STORAGE — INSTALL_FAILED_INSUFFICIENT_STORAGE: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] (Android)INSTALL_FAILED_INSUFF…INSTALL_FAILED_NO_MATCHING_ABIS — INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries (Android)INSTALL_FAILED_NO_MAT…INSTALL_FAILED_OLDER_SDK — INSTALL_FAILED_OLDER_SDK / INSTALL_FAILED_DEPRECATED_SDK_VERSION (Android)INSTALL_FAILED_OLDER_…INSTALL_FAILED_TEST_ONLY — INSTALL_FAILED_TEST_ONLY: installPackageLI (Android)INSTALL_FAILED_TEST_O…No connected devices / device not found — flutter run: No connected devices found; check 'flutter doctor'. Expected at least one device (Flutter / Dart)No connected devices …no devices/emulators found — adb: no devices/emulators found / error: device not found (Android)no devices/emulators …INSTALL_F…

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.