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 cases Set USB Configuration to Charging