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.
Install canceled by userInstall via USB 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
- Enable Developer options → Install via USB and USB debugging (Security settings)
- Watch the phone and accept the install prompt
- Remove MDM restrictions for test devices
Detailed fix by platform
ADB
adb install -r app-debug.apk # then confirm on the phone screen
How to diagnose
- OEM — Xiaomi/Oppo/Vivo?
- 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:
Similar errors
- adb server version doesn't match adb server version (41) doesn't match this client (39); killing...
- adb unauthorized adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set
- INSTALL_FAILED_INSUFFICIENT_STORAGE INSTALL_FAILED_INSUFFICIENT_STORAGE: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
- Gradle Java heap space Gradle: Expiring Daemon because JVM heap space is exhausted / java.lang.OutOfMemoryError: Java heap space during build
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 13 Oct 2026