Error message “Screen overlay detected”: the cause
The problem: Android suddenly warns you that a screen overlay has been detected.
The reason: This message appears when you’re running a floating app, and then start a newly installed one, which requests access rights. Floating apps include the chat heads of Facebook Messenger that can appear floating above other apps.
Affected Smartphones: Users across the internet have reported experiencing this problem on Samsung and Motorola smartphones. It seems likely to affect many manufacturers. AndroidPIT managed to replicate the behavior on a Vodafone and a Samsung smartphone.
Problem apps: We replicated the problem using Drupe, but CleanMaster, Lux and Twilight have all been blamed for the problem.
The technical background: As a security measure, apps ask for permission to use certain parts of your phone (internal storage, camera, etc.). In theory, a display overlay can interfere with the dialogue requesting permission, so you need to disable the feature to interact with the dialogue.
The solution: a step-by-step fix
Step one: "Screen overlay detected" fix
Find you what apps have permission to draw over the screen. On a non-Samsung smartphone, follow these steps:
Open the Settings
Tap the magnifying glass at the top right
Enter the search term “draw”
Tap Draw over other apps
Alternative route: Apps> [gear icon]> Draw over other apps
For Samsung users:
Open the Settings
Then Applications > Application manager
Press on More > Apps that can appear on top
You will find yourself in front of a list of apps that have permission to use floating buttons or other screen overlays. Now you need to identify the problem app and temporarily deny it permission to draw over the screen. Here is are some pointers on how to identify the app that’s causing trouble:
Do you see an app bubble on your screen? If do, this app is almost certainly the cause. Either you hide the app bubble or disable the app in the list
Do you have an app installed that changes the colors on the display or adjusts the brightness?
Reportedly, Clean Master can be a trouble maker. If you see Clean Master in the list, disable it
If there’s no obvious cause, disable everything
Now you can try launching the app again, and it should request permissions without the “Display overlay detected” error getting in the way.
For Samsung users: We have also received a report that suggests the one-handed keyboard setting could be the root cause. Deactivate it by going to Settings> Advanced features > One-handed operation.
Step four: reactivate screen overlays
In order for the app(s) that you have disabled in step two to work again, you need to re-enable its overlay permissions. If you turned off all apps, it might be worth considering only reactivating those apps that you actually use.
This is a rather inelegant workaround, but it's the best we have until Google makes the necessary changes to prevent app overlays from interfering with permission dialogues.
Has this guide helped? If you are still experiencing the error after following our guide, leave a comment, so we can try and address the problem.