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......
This worked for me:
Go to settings-> Mi Account->Account security Then verify phone and email, If not added then add and verify that
These steps worked for me after struggling 1 hour, Not needed to connect to Chinese server.
(1) Turn Off your Wi-Fi
(2) Turn Off your Mobile Data
(3) Turn On "Install via USB" from Developer Option of your device.
4) It will show the Error "No network found"
5) Now Turn On your Mobile Data
6) Again Turn on "Install via USB"
7) it will work, now Happy!
Redmi Note 4 (Nougat 7.0, MIUI 9)
For me, options like Turning WiFi off & on, trying on Data Network, or Turning off MIUI Optimization din't work. Also, the
Install via USB
never got enabled.Following steps helped me to install apps via USB
Additional Settings
>Developer Options
USB Debugging (Security Settings)
. This will take you through some warning screens. Allow (click on Next/Accept) for all. At the end, it will be enabled.Install via USB
and it gets enabled.Select USB Configuration
and selectCharging
This worked for me.In my case,I was using my phone that is Redmi 4 and the usb debugging was not working.It was always giving the message "the device is temporarily restricted" .I have tried all this steps but the result was same.Then I found the foolish thing that I have put the device in charging mode only.When I switch to MTP(Transfer files) and then it started working correctly.I know its a foolish thing but it may help to someone.
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
:China server from https://www.vpngate.net/en/
vpn
vpn
vpn
I got this problem in my Xiaomi Mi5 from India. All the mentioned solutions didn't work in my case. Then I tried to figure out the Core reason behind it and solve it. In MIUI, in order to change "Install via USB" option, you must be connected to the internet and signed in your Mi account. Due to some reason, requests from out of the China servers are getting rejected, so I connected to one open China VPN and tried again to enable 'Install via USB' and I got success. For detailed solution and VPN details, see this useful Youtube video: https://youtu.be/MeKUJlD-Ke4