Are you trying to turn on a permission, and Android just says "Screen overlay detected"?

Short answer: on Android 6.0 Marshmallow, turn off the overlay app or use safe mode. On newer phones, this error is mostly gone.

I faced this error myself on Android Marshmallow, and I couldn't find a fix anywhere. That's why I wrote this guide in 2016.

A lot has changed since then. In this guide, I'll show you why this error happens, how to fix it on an old phone, and how the "Display over other apps" permission works on Android today.

Also Read: Worst Apps for Android: 6 Types of Apps You Should Avoid

TL;DR

  • Android 6.0 Marshmallow: turn off the overlay app under "Draw over other apps", or start your phone in safe mode.
  • Android 7.0 Nougat and newer: the permission screen hides other apps' overlays while it's open, so the error is mostly gone.
  • Still need the permission? "Display over other apps" is still there, just under a new path.
  • Be careful: only give this permission to apps you trust.

What Is the "Screen Overlay Detected" Error?

Some apps can draw on top of other apps. Think of chat bubbles, screen dimmers, floating buttons or a screen recorder's controls.

That's called a screen overlay.

On Android 6.0 Marshmallow, if an overlay was on screen while you tried to allow a permission, Android blocked the switch and showed this message:

Android dialog saying Screen overlay detected, to change this permission setting you first have to turn off the screen overlay
The error as it looked on Android Marshmallow.

Why?

It was a safety check. A sneaky overlay could cover the permission pop-up and trick you into tapping "Allow".

The problem was that it also blocked harmless apps, and it didn't tell you which app was causing it.

Do You Still Need This Fix?

Probably not. Google changed this in the very next version.

Starting with Android 7.0 Nougat, the permission screen hides other apps' overlays while it's open, so you can just tap "Allow". Android still works this way today.

So if you see this exact error now, you're most likely using an old phone with Android 6.0. The fix below is for you.

On newer phones, overlays cause different problems. I cover those further down.

How to Fix "Screen Overlay Detected" on Android 6.0 Marshmallow

You have two options. The table below compares them, and the steps follow.

MethodBest forWatch out for
Turn off the overlay appAndroid 6.0 MarshmallowAndroid doesn't say which app is causing the overlay
Use safe modeAndroid 6.0 MarshmallowSome home screen widgets can be removed, so screenshot your home screen first
Check "Display over other apps"Newer Android phonesOnly give the permission to apps you trust

Option 1: Turn Off the Overlay App

  1. Go to "Settings" → "Apps".
  2. Tap the gear icon or menu, then "Draw over other apps".
  3. Turn it off for apps that show bubbles, filters or floating buttons, like screen dimmers or chat heads.
  4. Go back and allow the permission you wanted.

You can turn the overlay apps back on afterwards.

The Draw over other apps setting on Android Marshmallow
Back in 2016, the setting was called "Draw over other apps".

Option 2: Use Safe Mode

This is the method I used in 2016, and it still works on these phones.

Safe mode starts your phone with all downloaded apps turned off. No downloaded apps means no overlays.

  1. Press and hold the power button until you see "Power off".
The Power off option in the Android power menu
  1. Touch and hold "Power off" for a couple of seconds.
  2. When "Reboot to safe mode" pops up, tap "OK".
The Reboot to safe mode dialog on Android
  1. Your phone restarts with "Safe mode" in the bottom-left corner. Don't panic if your apps look missing. That's normal.
  2. Go to "Settings" → "Apps", tap the app, then "Permissions", and turn on the permission you need.
App info screen in safe mode with Permissions highlighted
  1. Restart your phone normally to leave safe mode.

Once you restart, the permission stays on.

Safe mode can remove some home screen widgets, so take a screenshot of your home screen first.

How "Display Over Other Apps" Works Now

The permission is still here. It just has a new name.

To see which apps can draw over others on Pixel and close-to-stock Android:

  1. Open "Settings" → "Apps" → "Special app access".
  2. Tap "Display over other apps".
  3. Tap an app and use the "Allow display over other apps" switch.

Samsung and some other brands use a different name. If you can't find it, type "over other apps" or "on top" in the Settings search bar.

Android's own description of this permission says it all: the app "will be able to see where you tap or change what's displayed on the screen."

So only give it to apps you trust. Malware loves this permission.

Common Overlay Problems on New Phones

Taps Don't Work in Some Apps

Since Android 12, Android blocks touches that pass through certain overlays on top of another app. It's there to stop tapjacking.

If a screen dimmer or filter app is running, some buttons in other apps may stop responding. Turn the overlay app off and try again.

Do You Need an Overlay App to Dim the Screen?

You don't need one anymore.

Android has "Night Light" under "Settings" → "Display" for warmer colors at night, and "Extra dim" to go below the normal minimum brightness. Search Settings for either one.

That's one less app drawing over everything.

The Switch Is Greyed Out With "Restricted Setting"

This can happen with apps you installed from outside Google Play. Android restricts some sensitive settings for them.

If you trust the app, go to "Settings" → "Apps", tap the app, tap the three-dot menu, then "Allow restricted settings". Google itself says not to do this unless you trust the developer.

An App Asks for It and You Don't Know Why

Ask yourself: does this app really need to float over other apps?

A chat app with bubbles, yes. A flashlight or a "phone cleaner", no.

Also Read: How to Get Chat Heads for WhatsApp, Telegram, X & SMS

If the answer is no, deny it and uninstall the app.

Also Read: 9 Cool Android Hacks You Can Try (No Root Needed)

Which Fix Should You Use?

  • Android 6.0 Marshmallow: I'd try turning off the overlay app first, since safe mode can remove some home screen widgets. Use safe mode if the overlay app is hard to find.
  • Newer Android phones: you probably won't see this error at all. Check "Display over other apps" now and then instead.

Final Thoughts

The "Screen overlay detected" error was a Marshmallow headache. On Android 6.0, turning off the overlay app or using safe mode still fixes it.

On new phones, it's mostly gone, but the "Display over other apps" permission is still worth checking now and then.

Share this with a friend who's still fighting this error on an old phone.

FAQs

Why does Android say "Screen overlay detected"?

On Android 6.0 Marshmallow, it's a safety check. An overlay could cover the permission pop-up and trick you into tapping "Allow", so Android blocks the change while an overlay is on screen.

How do I fix "Screen overlay detected" on Android 6.0?

Turn off the overlay app under "Draw over other apps", then allow the permission. Or start your phone in safe mode, turn on the permission under the app's Permissions screen, and restart normally.

Do newer Android phones still show this error?

Usually not. Starting with Android 7.0 Nougat, the permission screen hides other apps' overlays while it's open, so you can just tap "Allow".

Where is "Display over other apps" on my phone?

On Pixel and close-to-stock Android, go to Settings, then Apps, then Special app access, then "Display over other apps". Samsung and other brands may use a different name, so search Settings for "over other apps" or "on top".

Still stuck? Tell me through the contact page.

Xaif (Huzaifa Dhapai) started TechVerge in 2015. He's a web developer and long-time Android enthusiast who writes about Android tricks, apps, Windows and the tech he uses every day.

Topics

Comments (35)

  1. Maurice

    Hi there, im using LG G4. my phone does not have safe mode at all. How do i go about fixing the screen overlay detected error issues? Please help

    1. XaifAuthor

      Try to hold reboot button in that device

  2. Era

    Hi,so everytime I install a new android app I have to go into safe mode and give permissions? I own a Oneplus X

    1. XaifAuthor

      Yes, this is the bug in Android 6.0 and 6.0.1 you can't do anythinf

  3. Jose

    Dude!! Thank you so much for this incredible tip. I was about to smash the phone with the wall...annoying stupid thing. Thanks again friend!!

    1. XaifAuthor

      Your welcome. Stay tuned for more tips and tricks ;)

  4. Sharwari

    Hi
    I did what's mentioned there, but even after rebooting and going to the settings... Then aaps... Then application.. and then to the permission, it's not working.... It still ask me for screen overly settings. I am not able to fixed the problem. What should i do now. Please give me any suggestions by that i can get ride of it.

    1. XaifAuthor

      You need to boot your phone to safe mode to correct this error. I have seen many people's solving this error and this is the only method which is working on any device.

  5. Aniket Jha

    I did all the steps as stated but still that 'screen overlay detected' message is being shown . Please help me

    1. XaifAuthor

      You need to change all settings in safeboot mode

  6. RanelG

    Wow amazing it really solve my problem

  7. Abhishek

    In safe mode , same problem arise while changing permission.

    1. XaifAuthor

      Please send me screenshot if possible

  8. Ramesh

    I have tried to reboot to safe mode and I go to setting, apps ,permission and turn it off/on there is no change and still shows screen overlay detected error message.

    1. XaifAuthor

      In safe mode did you try enabling the app permission?

  9. Anudeep

    I am getting angry because of this screen over lay problem

    1. XaifAuthor

      Why don't you try above method? This may solve your issue :)

  10. sebastian

    Dude I don't have a reboot button nor safemode what should i do

    1. XaifAuthor

      Tell me your mobile name I will tell you how to boot into safe mode :)

Show 12 more comments
  1. sonu

    i have lecco letv 1s x509 nd i don't have any safemode button...

    1. XaifAuthor

      try searching on Google for the way you can boot your phone into safe mode.

  2. Nitesh Mishra

    My Lenovo K3 note started suffering from ghost touch. Please tell me how to fix it.

  3. prince

    My phone xolo era 1x is suffering from screen overlay problem and it is not having reboot option. ? Pls solve my problem

    1. XaifAuthor

      Press and hold the power button, and you will see the option to boot your phone into safe mode.

  4. Gopal Sharma

    it really works
    thanks a lot for this post

  5. Anjali

    Will all of my data be lost if i boot my phone?

  6. double joy

    Pls am using android 6.0 and I have a problem with screen outlay detected. Please help me out

  7. double joy

    I have problem with screen outlay detected it's really annoying please help me out. Am using android 6.0 version

    1. XaifAuthor

      Did you read abovve article? It fixed the issue?

Comments are closed. Have a question about this article? Ask through the contact page.