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"
MTP(Media Transfer Protocol) is the default mode.
Works even in MTP in some casesSet USB Configuration to Charging
In your mobile device,make sure you have enabled the following buttons.
Settings > Additional Settings > Developer options
- Install via USB
- USB Debugging (Security settings)
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.