Pages

Tuesday, January 17, 2023

Fixing “INSTALL_FAILED_USER_RESTRICTED” on Xiaomi Devices (MIUI 13 and Above)

If you’re developing an Android app on a Xiaomi device and encounter the error INSTALL_FAILED_USER_RESTRICTED, it usually means that the system isn’t allowing installations from USB for development. This most often happens if you accidentally pressed “Deny” the first time the “Install via USB” permission prompt appeared.

Here’s how to fix it.

Step-by-Step Solution

1. Enable Developer Options

  • Go to Settings → About phone.

  • Tap MIUI version repeatedly until you see a message saying “You’re now a developer!”

2. Access Developer Options

  • Open Settings → Additional settings → Developer options.

3. Turn OFF MIUI Optimization (for MIUI Global 13+)

In newer MIUI versions, the option to disable MIUI optimization is hidden.
To reveal it:

  • Scroll to the bottom where you’ll see “Reset to default values.”

  • Tap it five times (or more).

  • The “Turn off MIUI optimization” toggle should now appear.

  • Turn it off.

4. Turn ON USB Debugging

While still inside Developer options, enable:

  • USB debugging

5. Enable Install via USB

Also in Developer options, turn on:

  • Install via USB

That’s It!

Once these settings are applied, reconnect your device and try reinstalling the app from Android Studio (or your preferred IDE). The installation should now proceed without the INSTALL_FAILED_USER_RESTRICTED error.

No comments:

Post a Comment

Featured post

How to Manage App Versions Like a Pro (Android + iOS Guide)