INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device
Steps for MIUI 9 and Above:
Settings -> Additional Settings -> Developer options ->
Turn off "MIUI optimization" and Restart
Turn On "USB Debugging"
Turn On "Install via USB"
MTP(Media Transfer Protocol) is the default mode.
Works even in MTP in some casesSet USB Configuration to Charging
Android Studio: Failure [INSTALL_FAILED_USER_RESTRICTED]
I had the same issue. It happens only on Flyme
due to Security
App.
To enable installation:
- Open Security Application. (it is one of preinstalled
Flyme
apps) - Go to Permission
- Usb app installation.
- Turn off USB installation monitor.
Have found the solution here: http://bbs.flyme.cn/thread-1106582-1-1.html using Google Translate.
Adb install failure: INSTALL_CANCELED_BY_USER
The same trouble with same device has been here.
So, it's Xiaomi trouble, and here is a solution for this problem:
Go to the "Security" application and tap "Options" at top right corner
Scroll down to "Feature Settings" group, and look for "Permissions"
At there switch off "Install via USB" option, which manages installation of the apps via USB and doesn't allow it.
On Latest Redmi Device
Settings > Additional Settings > Developer Options > Developer options: Check the Install via USB option.
Good luck!
Related Topics
Fragment Is Not Being Replaced But Put on Top of the Previous One
How to Post Array in Retrofit Android
How to Disable Cache in Android Webview
Architecture Components: Observer Keep Observing Even After Removing It on Ondestroy
Access Denied Finding Property "Camera.Hal1.Packagelist"
Failure Install Parse Failed Manifest Malformed
Add Text to Image in Android Programmatically
Charging Animation for Android
How to Open Fragment from Recyclerview Adapter
Android Q, Programmatically Connect to Different Wifi Ap for Internet
Showing Thumbnail for Link in Whatsapp || Og:Image Meta-Tag Doesn't Work
Install_Failed_User_Restricted:Android Studio Using Redmi 4 Device
Android - Edittext Not Showing Any Text
How to Make Buttons Align At the Middle - Android Studio
Recyclerview No Adapter Attached; Skipping Layout
How to Tell If a View Is Visible on Screen in Android
How to Install the App Twice Without Interference in Android
How to Display an Image in Full Screen on Click in the Imageview