INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device
Steps for MIUI 9 and Above:
Settings -> Additional Settings -> Developer options ->
Turn off "MIUI optimization" and Restart
Turn On "USB Debugging"
Turn On "Install via USB"
Set USB Configuration to Charging
-
Turn On "install via USB
MTP(Media Transfer Protocol) is the default mode.
Works even in MTP in some cases
The device is temporarily restricted
error appears in MIUI 8.5
. To resolve the error you need to make WIFI off and make mobile data on and then enable the option “Install via USB” under "Developer Options" in "Settings". it will work for you.
In your mobile device,make sure you have enabled the following buttons.
Settings > Additional Settings > Developer options
- Install via USB
- USB Debugging (Security settings)
For me none of the above solutions worked. Instead i do following steps that solved the issue :
- Developer Options > Mi Unlock Status > Add account and device. (A success message will appear)
- Turn on USB Debugging.
- Turn on Install via USB.
Note : This is checked on Redmi MIUI Global 8.5 version.
This solution will specifically solve the issue if you have recently logged out of Mi account & again logged in.
Hope it may help someone.