Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install app via usb: The device is temporarily restricted

When I toggle on the install via USB in developer mode:

  • it will pop the toast message said that the device is temporarily restricted
  • then toggle off the settings.

Is there any solution for this?
I searched through all the way like turning off MIUI optimization but still does not work. I cannot debug my application by Android Studio in this way......

like image 217
kyo Avatar asked Sep 03 '17 04:09

kyo


People also ask

How do I turn on USB debugging security settings?

Google, Sony, OnePlus: Go to Settings > Tap About Phone > Tap Build number 7 times to enable Developer options. Then go to System > Developer options > Turn on USB debugging, and tap OK on the Allow USB debugging pop-up dialog.


2 Answers

"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:

  1. Install PlexVPN from Playstore and login into it. You will get a 24 hr free VPN service.
  2. Select China-Shanghai server and connect.
  3. From developer option in your Xiaomi phone, Enable "Install via USB".
  4. You can then disconnect the VPN and logout from PlexVPN.

Enjoy!!

like image 116
Vineet Ravi Avatar answered Oct 15 '22 17:10

Vineet Ravi


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

like image 45
Aldo Avatar answered Oct 15 '22 17:10

Aldo