Accidentally pressed don't allow install app and remember - Android Studio
Asked Answered
T

8

6

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?

Tedi answered 6/9, 2019 at 17:47 Comment(1)
I got answer here #48839490Menke
B
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

Barbicel answered 6/9, 2019 at 17:53 Comment(1)
where is allow debug?Amethist
E
3

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.

Efficacy answered 4/7, 2021 at 1:56 Comment(1)
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 optionsAlberik
P
2

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

Portugal answered 24/11, 2021 at 10:50 Comment(0)
A
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.

Amethist answered 28/2, 2023 at 13:57 Comment(0)
T
1

On miui 13 or 14, if you did so then clear the security app data and you are good to go.

Torpedo answered 3/3 at 20:30 Comment(2)
Please do not yell or use unnecessarily noisy other formatting.Abed
Also please explain what you mean by "you" and by "did so". All in all I think you need to do some editing and explaining to get this to be according to How to Answer. Consider taking the tour.Abed
P
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)

Pendergast answered 27/12, 2021 at 15:23 Comment(0)
B
0

if you have redmi phone go to security application and remove your app from blocked list

Bra answered 19/4 at 21:32 Comment(1)
Since you have a sub-case as a prerequisite, this is more of a comment.Eisenstein
F
0

If you can't find Turn on MIUI optimization in the Developer options do the following:

  1. Scroll to the bottom (area) of Developer options til you see AUTOFILL section
  2. Find the Reset to default values
  3. Tap on it several times, until you will see a Toast message
  4. Scroll a bit more down, and here it is the Turn on MIUI optimization
Furtado answered 30/6 at 20:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.