The window overlay feature (Overlay or Draw Over Other Apps) allows applications to display content on top of other apps - for example, chat bubbles Messenger, music control panel or system notifications. However, sometimes this feature gets in the way: windows block important interface elements, slow down performance, or are used by malware to display ads. In this article we will look at all working methods for disabling window overlay on smartphones Samsung, Xiaomi, Realme, Google Pixel and other devices with Android 10โ14.
Before proceeding with the settings, please note: some system applications (for example, Google Assistant or Game Launcher on Samsung) require overlay rights to work correctly. Disabling them may lead to loss of functionality. Also on devices with MIUI or ColorOS some of the settings may be hidden - in this case ADB or third-party utilities will help.
If you encounter intrusive advertising on top of the screen, which does not disappear after disabling overlay rights, the problem may lie in a virus. In this case, after following the instructions from the article, it is recommended to check the device with an antivirus (for example, Malwarebytes) or reset the settings to factory settings.
1. Disabling overlay through Android settings
The easiest way is to use the built-in system tools. The interface may differ slightly depending on the version Android and shell (One UI, MIUI, OxygenOS etc.), but the general algorithm is the same.
Open Settings โ Applications (or Apps and notifications). Next: Settings โ Applications data-i="63">๐ฑ On
- ๐ฑ On Samsung: select
Accessibility โ Overlay with other applications. - ๐ฑ On Xiaomi/Redmi/Poco: go to
Permissions โ Special permissions โ Display on top of other windows. - ๐ฑ On Google Pixel or clean Android:
Advanced โ Special access โ Overlay on other applications. - ๐ฑ On Realme/Oppo:
Permissions โ Additional permissions โ Display on top of other applications.
In the list that opens, you will see all apps that are allowed to overlay. Disable switches opposite unnecessary applications. Please note: some system utilities (for example Android System or Settings) cannot be deactivated - this may lead to crashes.
โ ๏ธ Attention: On devices Huawei s EMUI the path to the settings may differ. If you donโt find the section, try entering โoverlayโ or โoverlayโ in the search settings.
2. Using ADB to force shutdown
If the desired application is not displayed in the list or cannot be disabled through the interface (for example, due to manufacturer restrictions), it will help ADB command. This method requires connecting the smartphone to the computer and enabling debugging mode.
First prepare the device:
- Activate
Developer mode: go toSettings โ About phoneand press 7 times onBuild number. - Go back to
Settings โ System โ For developersand enableUSB debugging. - Connect your smartphone to the PC, confirm permission for debugging on the device screen.
Now run the commands in ADB (for example, via Platform Tools from Google):
adb shell pm list packages -f | grep "package_name"
To find the application package, use the command above (replace package_name with part of the app name:
adb shell appops set SYSTEM_ALERT_WINDOW deny
Example for disabling overlay Facebook Messenger:
adb shell appops set com.facebook.orca SYSTEM_ALERT_WINDOW deny
โ ๏ธ Attention: Some manufacturers (for example, Xiaomi) block commands at the kernel level. In this case, only root access or third-party utilities like appops at the kernel level. In this case, only root access or third-party utilities like App Ops.
Install Platform Tools on the PC will help. phone
Enable developer mode on your phone
Allow USB debugging
Connect the phone to the computer with the original cable
Check the connection with the command `adb devices`-->
3. Third-party applications for overlay control
If you need to flexibly manage rights Overlay without ADB, you can use specialized utilities. They are especially useful on devices with heavily modified shells (for example, MIUI or Flyme), where standard settings are limited.
Top 3 applications for working with overlay:
| Application | Functions | Root required? | Link (Play Market) |
|---|---|---|---|
| App Ops | Full control over permissions, including SYSTEM_ALERT_WINDOW |
No (but some functions are limited) | โ Available |
| Shizuku + AppOps | Advanced management via Shizuku (ADB alternative) | No | โ Available |
| Island (Sandbox) | Isolation of applications with overlay in a separate profile | No | โ Available |
For example, in App Ops enough to find what you need application, select the resolution Draw over other apps and set the status Deny. At the same time, some apps (for example, Google Play Servicescan automatically restore rights after a reboot.
If the application stops working after disabling the overlay, try adding it to exceptions in the battery settings On Xiaomi this is done in the section Settings โ Battery โ Battery optimization
4. Disable overlay for system applications
System utilities (for example, Android System Intelligence or Device Health Services) often use an overlay to display tooltips or notifications. It is impossible to disable them through standard settings, but there are workarounds.
Method 1: Disable via ADB
Use the command:
adb shell pm disable-user --user 0
Example for disabling Google Assistant:
adb shell pm disable-user --user 0 com.google.android.as
Method 2: Using Tasker or MacroDroid
Create a task that will automatically disable the overlay for selected applications when they launch:
- B Tasker add condition
App Launched. - Add an action
Run Shellwith the command:
appops set com.example.app SYSTEM_ALERT_WINDOW deny
โ ๏ธ Attention: Disabling system applications can lead to unstable operation of the device. For example, deactivation Android System WebView will disrupt the display of web content in others. apps.
5. What to do if the overlay returns after a reboot
Some applications (especially advertising or system ones) restore overlay rights after a reboot. This is due to the mechanism WorkManager or background services. Solutions:
- ๐ Freezing the application: Use Titanium Backup (Root required) or Shelter (without Root) to isolate the app.
- ๐ Limit background activity: In the battery settings (
Settings โ Applications โ [Name] โ Battery) selectLimit background activity. - ๐ Uninstall updates: For system applications (for example Google Play Services) return to the factory version in
Settings โ Applications โ โฎ โ Uninstall updates.
If the problem is caused by a virus, do the following steps:
- Go to
Safe Mode(press the power button โ "Safe Mode"). - Delete suspicious applications.
- Clear the cache in
Settings โ Storage โ Cache data.
How to distinguish a legitimate overlay from a virus?
Legitimate windows (for example, from Messenger or Spotify) have an application icon in the notification panel and disappear when the app is closed. Virus overlays:
- Appear randomly, even when the phone is locked.
- Do not have an icon in the notification panel.
- Redirect to suspicious sites when clicked.
- In the list of applications they can masquerade as system ones utilities (for example, Android System Update).
6. Features on different versions of Android
The window overlay control mechanism has evolved with the release of new versions. Android. Below are the key differences:
| Android version | Overlay features | How to disable |
|---|---|---|
| Android 10โ11 | Overlay rights can be disabled for most applications through the settings. | Standard path: Settings โ Applications โ Special access. |
| Android 12โ13 | Added restrictions for background applications. Some windows are automatically hidden when the app is minimized. | The same, but may be required ADB for system applications. |
| Android 14 | Tightened rules for applications in the background. Overlay is allowed only for active apps. | Through settings or ADB. On Pixel extended control is available in Settings โ Privacy โ Permissions. |
On Android 14 also appeared function Partial Overlaythat allows you to limit the overlay area. For example, chat bubbles Messenger can be made smaller and attached to the edge of the screen. This option is available in the special access settings.
On Android 12+ system applications automatically restore overlay rights after updating. disable auto-update for them in Google Play
7. Alternative solutions: isolation and virtualization
If it is not possible to disable the overlay (for example, due to manufacturer policy), consider alternative approaches:
- ๐ก๏ธ Using a second user: Create a separate profile in
Settings โ System โ Multiple Usersand install the problematic applications there. - ๐ก๏ธ Virtual machine: Install UserLAnd or Waydroid to run applications in an isolated environment.
- ๐ก๏ธ Ad blocker: Applications like Blokada or AdGuard can filter intrusive windows at the DNS level.
For devices With Root access more radical methods are available:
- ๐ง Removing the package via
Titanium Backup. - ๐ง Editing the file
/system/appops.xml(requires knowledge). - ๐ง Using Xposed Framework with the module AppOpsX.
โ ๏ธ Attention: On devices with Samsung Knox (for example, Galaxy S23 or Note 20) obtaining Root will lead to triggering of the flag Knox 0x1 and loss of warranty. It can also block operation Samsung Pay And Secure Folder.
FAQ: Frequently asked questions about window overlay
Is it possible to disable overlay? for Google Play Services?
Technically yes, but this will disrupt the operation of many functions: notifications, auto-updates, geolocation. If the overlay interferes, try limiting background activity in the battery settings or use ADB to temporarily disable:
adb shell appops set com.google.android.gms SYSTEM_ALERT_WINDOW deny
After a reboot, the rights will be restored.
Why after? disabling the overlay, did the widgets stop working?
Widgets (for example, weather or music) also use the overlay mechanism. If they disappear, return the rights to the application responsible for the widgets (for example, Google App for search widgets or Samsung Weather).
How to disable the overlay on Huawei s EMUI?
On Huawei the path to the settings may differ. Try:
Settings โ Applications โ Applications(select the one you need).Permissions โ Additional permissions โ Display on top of other applications.
If there is no section, use ADB or application App Ops.
Will it work Facebook Messenger without overlay rights?
Yes, but chat bubbles and floating notifications will not be displayed. Messages will only appear in the notification panel. An alternative is to use the web version Messenger in the browser.
Is it possible to disable the overlay for all applications at once?
No, There is no such function. You will have to disable rights for each application separately. To speed up the process, you can use a script. This will disable the overlay, including system ones, which can lead to crashes! Android there is no such function. You will have to disable rights for each application separately. You can use a script to speed up the process ADB:
for package in $(adb shell pm list packages -f | awk '{print $2}'); doadb shell appops set $package SYSTEM_ALERT_WINDOW deny
done
โ ๏ธ This will disable the overlay for all applications. data-i="274">1. Disabling the overlay through Android settings, including system ones, which can lead to failures!