"Screen overlay detected" dialog?
I have a Nexus 5 phone and ever since I allowed a system update, it won't let me post pictures to Instagram. It keeps talking about turning off a "screen overlay", but then when I try to follow the steps to get to that setting, it just sends me in a loop and doesn't actually let me change anything.
(Click image to enlarge)
It seems that you are using a Screen Filtering app(the brownish overlay on the screen). Turn off and it won't bug you.
My guess is that this is a security measure to prevent apps from "pressing buttons" on your behalf. It works for me when I temporarily deactivate Lux (brightness control app). By the looks of your screenshots, you're probably using something similar to reduce blue light. Try turning it off until you've edited the permissions
Note that the overlay app is only preventing access to the *app permissions settings menu*, not the app itself. Once you've disabled the overlay and set the appropriate permissions, you can turn the overlay (e.g. Twilight) back on without disabling the other app.
Just to add to issues already noted here (to try keeping it complete), in TouchWiz (Samsung Galaxy, mine is Note 4) turning side key panel off solved this problem for me.
I found a list of places to check: http://android.stackexchange.com/questions/154274/screen-overlay-detected-dialog-turned-off-everything-doesnt-work/157029#157029
Some apps that require extra security prevent overlays. I've seen this happen in banking apps. Popular apps that use screen overlays: Facebook Messenger, Twilight, TextExpander, Screen Filter, f.lux, etc.
**PIE Controls turned out to be the problem for me.** Long story short, after trying every suggested thing I could find (even disabled permissions of some system apps, I will hopefully remember which ones and will be able to set it back...) I started thinking to myself, _"what application could draw over the screen other than those on this list?"_ and realized that I had GravityBox installed through Xposed, and pie controls enabled! As soon as I disabled that (didn't have to turn off the entire module, just setting "enable pie control" to "never" was enough) I was able to set permissions!
Simple Resolution / Answer
I had this same problem with my Nexus 5X, using Android M. I also went ahead & turned all the permissions off, except for Twilight, the suspected culprit. I still had the problem. So I went ahead and also turned over the overlay for Twilight, and I did not have the problem.
So, Twilight is the "problem", in my case and in the case shown above. (I put problem in quotes because it seems to me like Twilight should not be to blame in this case. Instead, multiple overlays should be possible.)
Where is This Setting??
For those who had this problem, or want to understand what we're talking about, here are the steps to get to this "hidden" setting, within Android M:
settings(the nut / gear).
- Scroll down to
- From within the
settings, again choose the
settingsgear / nut.
Draw over other apps.
- (Optional) Click on the
additional menu(the 3 dots), then choose
Show systemto get at all of the apps that are asking to draw over others, including system apps like
What's Really Going On?
Last little tidbit: I am not 100% certain about this, but from what I know of Android, it seems things work as follows in Mashmallow:
Permissions are not asked / required upon app installation, but rather upon when the app needs that permission. Similarly, some permissions can be granted or rejected... the app will work to the best of its capability, if the permission is rejected.
Since this is the case, any time an app asks for permission to a particular thing, such as drawing over other apps, the user's yes or no response is recorded.
- As the user, you can change your response later, which is the essence of what that pop-up window is asking: the window is saying, "I cannot do what I need to do, unless you change your answer to that earlier problem". (However, without highlighting which app is the actual problem, the error seems fairly useless, IMHO.)
There are more places to check. See: http://android.stackexchange.com/questions/154274/screen-overlay-detected-dialog-turned-off-everything-doesnt-work/157029#157029
I found I had to use another approach that I blogged about: https://techotom.wordpress.com/2017/03/17/alternative-way-to-fix-the-screen-overlay-detected-error-on-android/. I think my way addresses the "I don't know which app is causing it" problem too.
This is a kludge and probably only a partial solution. I followed the messages to the permission screen, selected the option "apps with this permission" then proceeded to turn off the overlay permission on all apps that had it set on. I was then able to enable the permission that the app I was running required. Because I turned off the permission on all apps, I do not know which app was causing the problem. Will see if any apps stop functioning as I expect.
"*I do not know which app was causing the problem*" -- my answer here may perhaps help you in that regard.
From my research, it appears the most likely culprits are ones that affect screen brightness, like Lux or Twilight.
@howcheng Thanks for your comment a lot! Finally I know how to make things work! Please consider making it a separate answer to both: receive appreciation + increase visibility of resolution with (hopefully) benefit to other readers!
I have the same problem, and I don't have Lux. I just turned off overlay permission for a bunch of apps, and that seems to have fixed it so far.
There are three places to check. Not just one.
Apps with Overlay Permissions->
Apps with Permissions
Same as above, but with
Show System Appsturned on
Acessibility-> Scroll to the bottom. It lists app names. Just turn them all off for now.