INSTALL_FAILED_USER_RESTRICTED 🤖 Android

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.

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:

🧠 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.