Reputation: 67
09/18 11:00:20: Launching 'app' on Xiaomi Redmi 6. Installation did not succeed. The application could not be installed: INSTALL_FAILED_USER_RESTRICTED Installation via USB is disabled.
Upvotes: 5
Views: 11512
Reputation: 1
For those who working with knox container try: AndroidStudio -> Run -> Edit Configurations -> [select] : Install for all users.
Upvotes: 0
Reputation: 565
If you changed Background process limit
in Developer Options to No background process
. The same error will also occur.
If you did, change Background process limit
back to Standard limit
Upvotes: 0
Reputation: 703
If anyone trying in MI Phones and no other option for him his there, As Turning off MIUI optimization decrease the battery performance. Then he can try cleaning data of Security app.
Note- This can once ask your pattern lock after doing it. After that it will work fine.
Upvotes: 2
Reputation: 1674
Run "adb uninstall " and it solves the problem. It occurs when you uninstall manuelly an app which is build by Android Studio.
Upvotes: 0
Reputation: 1
Go to the Developer option and turn on "Install via USB" option which is below of "USB debugging" option.
Upvotes: 0
Reputation: 388
I have Xiaomi Redmi 4, so hope it is relevant to Redmi 6. When trying to install via USB, the device will ask you to enter via your MI account and if you not have one so create it and then Installation via USB should work.
Upvotes: 0
Reputation: 36644
Try turning off MIUI optimization (see https://stackoverflow.com/a/48524656/80901). This helped me with a Redmi.
Upvotes: 3
Reputation: 200
Turn on USB debugging in Developer option and when you connect your device to PC via USB a popup will appear, please check allow "USB Debugging" Option, and your app will be installed without error.
Upvotes: 0
Reputation: 880
Please Turn on "USB debugging" in developer options. Additionally you also have to turn on "Install Apps via USB".. Hopefully it will work smoothly.
Upvotes: 1