4

When I ran my app in Android studio, with my personal device, a notification was shown, and I accidentally pressed "remember action", and then pressed "don't allow". Now each time I try to run the app, I obtain an Android error, which says:

19:35 Session 'app': Installation did not succeed. The application could not be installed: INSTALL_FAILED_USER_RESTRICTED Retry

I've tried reconnecting the USB cable, however it didn't work.

Does someone know how to undo this?

SDJ
  • 4,083
  • 1
  • 17
  • 35

5 Answers5

3
  1. Go to developer configuration
  2. Turn Off Allow debug
  3. Turn On Allow debug
  4. Connect again

It'll show you the alert again :D

akshay bhange
  • 2,320
  • 2
  • 28
  • 46
HeinerTheBest
  • 201
  • 2
  • 3
2

If you are using Mi device then normally disable miui optimization under developers options, then try to reinstall the app and after the app get installed again turn on the miui optimization.

Pankaj Kumar
  • 27
  • 1
  • 6
  • Thanks, that just saved me a significant amount of time! On my (relatively old) device this option was at the very bottom of the Developer options – dakami Feb 09 '23 at 00:32
2

Go to *Settings* => Permissions => Install via USB. For me it worked

Procrastinator
  • 2,526
  • 30
  • 27
  • 36
baobab159
  • 51
  • 6
1

In MIUI 13 settings page search for "Install via USB" and select the security category option in results. It contains rejected installs, simply deselect your app from there.

Apoorv pandey
  • 509
  • 8
  • 21
0

Try again, and the notification informing you about the blocked installation will pop up. Click it and uncheck the application you want to install. You will be asked for permission to install again the next time you try to install the app. (Android 11)

Daruda
  • 167
  • 3