Being able to run apps that draw on top of other apps is a powerful feature of Android. Apps like Twilight take advantage of that to add a filter to the display, but other apps just show a floating UI element. However, this can also be a security concern. Android O offers a handy alert when an app is showing an overlay with a link to turn it off.
Whenever you start an app with an active screen overlay, Android O generates a notification that tells you “[App] displaying on top.” This notification is collapsed into a single line, but you can expand it for more detail. There’s also a button to turn it off. Tap that, and the overlay goes away. This button actually disables the “draw over other apps” permission, which all apps are granted by default. You can turn it back on later if you want.
This is a good security feature as it’s possible for apps to fool you with overlays. They could hijack your presses or display fake buttons, or they might just prevent you from using the device correctly. One caveat here—the overlay notification can’t be dismissed. It’s produced by the Android system, so blocking it isn’t a good idea. You’ll have to put up with this extra line whenever you are using an overlay app.
It turns out you can hide the notifications for overlays on a per-app basis. The Android system uses notification channels, so just turn off the notifications for apps you use and trust.
Android O Dev Preview 2 disabled the ability to toggle the categories in Android System’s notification channels. We hope that it’s a bug and not a deliberate lockdown, but it’s possible that they decided to disable tweaking the system app’s channels for security reasons.