[android] INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device

  1. Just Disable Mock SD card optimization in the developer options
  2. Turn off "Turn on MIUI optimization"
  3. Mark force-closed apps

These Settings worked for me.Cheers!