When I toggle on the install via USB in developer mode:
if you have root you can force it with adb shell
adb shell
su
setprop persist.security.adbinput 1
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 select Charging
This worked for me.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.
This worked for me:
Go to settings-> Mi Account->Account security Then verify phone and email, If not added then add and verify that
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
I will write what worked for me, these other solutions did not work out.
switch "Install via USB" to ON,
When the dialog box "Allowing" appear, quick tap your screen out of the dialog box.
Repeat it until u see that "Install via USB" is ON.
After u see "Install Via USB" is ON, you need to re-checking by pressing back button and go to developer option again.
This worked for me. Thanks.