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

**Code:** `INSTALL_FAILED_USER_RESTRICTED` · **Category:** Android · **Seen on:** Android

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/android/install-failed-user-restricted)
