Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

INSTALL_FAILED_USER_RESTRICTED Installation via USB is disabled

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.

like image 703
Farhan Siddique Avatar asked Sep 18 '19 06:09

Farhan Siddique


People also ask

How do you fix installation did not succeed the application could not be installed Install_failed_user_restricted?

Installation failed with message Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Install canceled by user. It is possible that this issue is resolved by uninstalling an existing version of the `apk` if it is present, and then re-installing.


2 Answers

Try turning off MIUI optimization (see https://stackoverflow.com/a/48524656/80901). This helped me with a Redmi.

like image 115
mjn Avatar answered Oct 25 '22 22:10

mjn


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.

like image 2
Anuj Raghuvanshi Avatar answered Oct 25 '22 23:10

Anuj Raghuvanshi