Install app via usb: The device is temporarily res

2020-01-27 02:44发布

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......

30条回答
smile是对你的礼貌
2楼-- · 2020-01-27 03:08

In my case when i updated MIUI version to the new available version, resolved the issue. So check if there is any update available for your device, go to

Settings => About phone => System update => here it will shows you the new available MIUI version for your device. So update it then try again.

Note: Turn your Mobile data before enabling install via USB.

查看更多
男人必须洒脱
3楼-- · 2020-01-27 03:10

The Best what I found devices without mobile data in device is to SIGN_OUT from MI_Account in the device and Login Again -> Try to enable USB_Debugging(Security Setting)-> enable INSTALL_VIA_USB

查看更多
时光不老,我们不散
4楼-- · 2020-01-27 03:10

Try this

  1. Settings -> Additional Settings -> Developer options -> Turn off Miui Optimizations -> Restart
  2. Security -> Permissions -> Gear Icon at top right corner -> Turn On "Install via USB"
  3. Settings -> Additional Settings -> Developer options -> Turn On/Off "USB Debugging" -> Turn On "Install vis USB"
查看更多
神经病院院长
5楼-- · 2020-01-27 03:10

Solution with NO VPNing that worked for me:

  1. go to Settings->Accounts->MiAccount->AccountSecurity->Devices
  2. I had a Redmi 9 device listed there (I don't own a Redmi device)
  3. I removed that Device, so now no devices were listed
  4. go back to developer settings, enable install via USB, everything works.

I assume not everyone will have a Redmi device listed there, maybe some will have a different device, maybe some will even have the correct device(this is not something I can test by myself), but it makes sense to me that correcting any wrong devices from that list (or maybe deleting all devices like I did) might fix the problem.

查看更多
唯我独甜
6楼-- · 2020-01-27 03:11

if you have root you can force it with adb shell adb shell su setprop persist.security.adbinput 1

查看更多
Lonely孤独者°
7楼-- · 2020-01-27 03:11

I'm on MIUI Global 9.6 | Stable [9.6.1.0 (NCFMIFD)].

Problem for me was that wifi was not connected. As mentioned in some answers, apparently device tries to connect to server.

It works for without mobile data.

查看更多
登录 后发表回答