"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)

    IMG: And it takes me here, but I can't actually slide the bar into the 'on' position. So I go to the Instagram settings and then permissions and it won't let me change those either IMG: This just shows up again

    It seems that you are using a Screen Filtering app(the brownish overlay on the screen). Turn off and it won't bug you.

    So CF.Lumen or Twlight need to be disabled here.

    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.

    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.

    @Lucky you have the correct answer, why are the other answers even here.

    **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:

    1. Open settings (the nut / gear).
    2. Scroll down to Apps.
    3. From within the Apps portion of settings, again choose the settings gear / nut.
    4. Choose Draw over other apps.
    5. (Optional) Click on the additional menu (the 3 dots), then choose Show system to get at all of the apps that are asking to draw over others, including system apps like Phone Services.

    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.)

    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.

    I turned off ALL the overlays but it still complained in my Outlook app's settings for contact permission on a P8 Lite, however restarting the phone and then trying again worked.

  • 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!

    Alas, I can't do that yet, as my reputation score is too low for this site.

    I also suspect Lux.

    I just found the `drupe` contacts dailer app is causing the issue for me.

    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.

    Completely ridiculous...but it worked.

    most of the time I have this issue is because I have facebook's messenger floating ballons on the screen

  • There are three places to check. Not just one.

    Non-system Apps

    Settings -> Application Manager -> Apps with Overlay Permissions -> Apps with Permissions

    System Apps

    Same as above, but with Show System Apps turned on

    Accessibility Apps

    Settings -> Acessibility -> Scroll to the bottom. It lists app names. Just turn them all off for now.


    The third ítem was the problem for me. Assistive Touch had to be disabled there. Great!

  • There are some apps that are handled as Accessibility Services, for instance, Assistive Touch.

    You can find them under Settings -> Accessibility -> Services.

License under CC-BY-SA with attribution

Content dated before 6/26/2020 9:53 AM