Install app via usb: The device is temporarily restricted
Solution 1:
"Install via USB" wont work if your Xiaomi phone is running MIUI 8 or above. Looks like when you try to Enable this option, your phone trys to connect to some chinese server and fails.
I got a work around and it worked for me. Idea is to connect to Chinese-Shanghai server through VPN. Try the following:
- Install PlexVPN from Playstore and login into it. You will get a 24 hr free VPN service.
- Select China-Shanghai server and connect.
- From developer option in your Xiaomi phone, Enable "Install via USB".
- You can then disconnect the VPN and logout from PlexVPN.
Enjoy!!
Solution 2:
All you have to do is Turn your Wi-Fi off, turn on mobile data, and then enable the setting for "Install via USB". It'll go through.
Source: http://en.miui.com/thread-544718-1-1.html
Solution 3:
For me on a rooted MIUI v.8.5.1 I just need to:
- turn off wifi
- turn on mobile connection In development options
after doing that both Install via USB and USB debugging started to work.
Solution 4:
Turning off Wi-Fi and enabling Mobile Data (thank you Xiaomi for wasting my money to enabling mobile data which the last one I didn't have) on Xiaomi 4A did not work for me. Every time I tried to enable Install App Via USB
it displayed me "the device is temporarily restricted". So, I found this solution:
Turn on VPN onto your device with these parameters and try again toggle Install from USB
:
- Server Address:
China server from https://www.vpngate.net/en/
- IPSec Key:
vpn
- Username:
vpn
- Password:
vpn
Solution 5:
Try this
- Settings -> Additional Settings -> Developer options -> Turn off Miui Optimizations -> Restart
- Security -> Permissions -> Gear Icon at top right corner -> Turn On "Install via USB"
- Settings -> Additional Settings -> Developer options -> Turn On/Off "USB Debugging" -> Turn On "Install vis USB"