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!”
Go to Settings → About phone.
Tap MIUI version repeatedly until you see a message saying “You’re now a developer!”