How to disable overlay over other windows on Xiaomi: the complete guide

The feature of displaying over other windows (Picture-in-Picture or Overlay) on Xiaomi smartphones often interferes with users: pop-up notifications, chats or videos are superimposed on games, banking applications and even system menus. In some cases, this leads to malfunctions, accidental pressing or just annoying constant flickering. MIUI 12โ€“15, where the function is activated by default for a number of applications.

In this article, we will discuss all possible ways to disable overlay - from standard settings to hidden developer parameters and ADB-We describe the nuances for different versions of firmware and models (Redmi Note 11, POCO X5, Mi 11 et al., and why some apps ignore system limitations: If you're tired of intrusive pop-ups, read on.

Why are apps displayed on top of other windows?

Overlay in MIUI is implemented on the basis of two Android mechanisms:

  • ๐Ÿ“ฑ Systemic API TYPE_APPLICATION_OVERLAY โ€” allows applications to draw on top of other windows (using messengers, launchers, games).
  • ๐Ÿ”„ Special permits MIUI โ€” firmware adds its own control layers that may conflict with standard Android settings.
  • ๐Ÿ› ๏ธ Optimization for Multitasking โ€“ in New Versions MIUI 14+ The function is activated automatically for โ€œpopularโ€ applications (YouTube, Telegram, Viber).

The main culprits of the overlays:

  • ๐Ÿ’ฌ Messengers: Telegram, WhatsApp, Viber (pop-up notifications about messages).
  • ๐ŸŽฎ Gaming services: Google Play Games, Xiaomi Game Turbo (overlays for recording screen or chat).
  • ๐Ÿ“บ Video players: YouTube, MX Player (Picture-in-Picture mode).
  • ๐Ÿ”’ Banking applications: some of them block work if overlays are detected (for example, Sberbank Online).

โš ๏ธ Attention: On devices with MIUI 13+ Android 12+ Some of the settings are hidden. If the standard methods don't work, you'll need to activate the developer mode or use it. ADB.

Method 1: Disabling the Overlay in the Application Settings

The easiest method is to block the overlays for a particular application through a special permissions menu, suitable for most instant messengers and players.

Instructions:

  1. Open Settings โ†’ Applications โ†’ Application Management.
  2. Select a problem app (such as Telegram).
  3. Go to the permissions section โ†’ additional โ†’ Display on top of other windows.
  4. Switch the slider to the off position.

If there is no point to display on top of other windows:

  • ๐Ÿ” Check if the application is updated (older versions may have called the permission differently).
  • ๐Ÿ› ๏ธ Try to clear the app cache (Settings) โ†’ Annexes โ†’ Warehouse โ†’ Clear the cache).

Turn off the application from multitasking|Update the app on Google Play|Check for the "Show on top" item in the permissions|Reboot your smartphone after the changes-->

On some models (POCO F4, Redmi K50) the path may be different:

Settings โ†’ Privacy โ†’ Permits โ†’ Additional โ†’ Overlay

โš ๏ธ Note: After disabling the overlay, some features of the apps may not work properly, for example, Picture-in-Picture mode will stop working on YouTube, and pop-up notifications about new messages will stop on Telegram.

Method 2: Global overlay shutdown through special permissions

If overlays interfere with many applications, you can block the function globally for all programs (except system ones), which works on MIUI 12-14, but requires caution.

Steps:

  1. Open the Settings. โ†’ Annexes โ†’ Application management โ†’ Threefold (โ‹ฎ) โ†’ Special access.
  2. Choose to display over other windows.
  3. In the list, disable permission for all unnecessary applications (or for all at once, except system ones).
AnnexCan we turn off the overlay?Effects of consequences
Telegramโœ… Yes.Pop-up notifications will disappear, but the chat will open in a separate window.
YouTubeโœ… Yes.Picture-in-Picture will not work when you fold video.
Xiaomi Game TurboโŒ No (systemic)Disabling will cause disruptions to the games.
Google Play ServicesโŒ No (critical)Push notifications may stop working.

On MIUI 15 and Android 13+, a global shutdown may result in a โ€œDetected overlayโ€ error in banking applications, in which case you will need to use ADB (see Method 4).

MIUI 12|MIUI 13|MIUI 14|MIUI 15|I don't know.-->

Method 3: Using the Developer Mode

If standard settings don't work, you can block overlays through the developer menu, which is suitable for power users and requires activation of hidden settings.

How to turn on the developer mode:

  1. Go to Settings. โ†’ The phone.
  2. Click 7 times on the MIUI version (you are a developer!).
  3. Return to the main settings menu and open Additional โ†’ for developers.

Next:

  • ๐Ÿ” Find Inactive Apps or Limit Background Activity.
  • ๐Ÿ“ต Turn off background activity for apps that create overlays (like Facebook, VK).
  • ๐Ÿ”„ Reset the device.

For MIUI 14+, an additional step may be required:

Settings โ†’ For developers โ†’ Debugging โ†’ Disable HW- Overlays (Use GPU for 2D rendering)

โš ๏ธ Warning: Disabling HW-ovlerays can cause more CPU load and quick battery discharge. Use this method only if other methods have failed.

๐Ÿ’ก

If after disabling overlays, the application stopped opening, clean its data (Settings โ†’ Apps โ†’ Storage โ†’ Clear data) and restart the smartphone.

Method 4: Disconnect via ADB (for advanced users)

If system settings prevent you from disabling overlays for a particular application (for example, due to the limitations of MIUI), you can use ADB, the Android debugging tool, which is 100% effective, but requires a connection to a PC.

What you need:

  • ๐Ÿ’ป Computer with installed ADB Tools.
  • ๐Ÿ“ฑ Included debugging by USB on a smartphone (Settings) โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ Cable USB (preferably original).

Instructions:

  1. Connect your smartphone to your PC and confirm the debugging permission.
  2. Open the command prompt (cmd) in the folder with ADB.
  3. Enter the command to check the connection: adb devices must appear serial number of the device.
  4. Disable overlays for the desired application (e.g. Telegram): adb shell pm revoke org.telegram.messenger android.permission.SYSTEM_ALERT_WINDOW
  5. Reboot your smartphone.

List of popular application packages for ADB:

  • ๐Ÿ“ฑ Telegram: org.telegram.messenger
  • ๐Ÿ“บ YouTube: com.google.android.youtube
  • ๐Ÿ’ฌ WhatsApp: com.whatsapp
  • ๐ŸŽฎ Xiaomi Game Turbo: com.mi.gamecenter.sdk.service

To return permission, use the command:

adb shell pm grant org.telegram.messenger android.permission.SYSTEM_ALERT_WINDOW
What if the ADB canโ€™t see the device?
1. Check if Xiaomi drivers are installed USB Drivers (you can download it on the official website). 2. Try another one. USB-cable (some charging cables do not transmit data). 3. Enable the Debugging by Debugging option in the developer settings USB (security parameters) and Allow debugging (factory unlocking) OEM). 4.Reboot your PC and smartphone.

Method 5: Using third-party applications (without root)

If you don't want to mess with ADB, you can use third-party utilities that block overlays without superuser rights.

AnnexReferenceFeatures
App OpsGoogle PlayIt allows you to manage permissions, including overlays, without root. It runs on Android 10-13.
Island (Sandbox)Google PlayCreates a sandbox for applications where overlays are blocked automatically.
Shizuku + App OpsOfficial websiteThe ADB alternative for permission management. It requires customization.

How to use App Ops:

  1. Install the app and give it access to special permissions (you need to enable ADB or Shizuku).
  2. Find a problem app (such as Viber) in the list.
  3. Turn off the permission. SYSTEM_ALERT_WINDOW.
  4. Restart the app.

โš ๏ธ Note: Apps like App Ops may stop working after update MIUI. In this case, you will need to re-configure access through ADB.

๐Ÿ’ก

Third-party utilities are a good option for users without ADB experience, but they require regular updates and may conflict with system services.

Frequent problems and solutions

Even after overlays are turned off, users are faced with errors.

1. "Detected overlay" error in banking applications

Reason: Applications (SberBank, Tinkoff) block work if detect active overlay (even system).

Decision:

  • ๐Ÿ›ก๏ธ Disable overlays for all applications (see Method 2).
  • ๐Ÿ”„ Reboot your smartphone.
  • ๐Ÿ“ฑ If the error is still there, use it. ADB Disable permissions from Google Play Services (temporary solution).

2 Overlays reappear after reboot

Reason: Some apps (Facebook, Mi Video) automatically request permission when they launch.

Decision:

  • ๐Ÿšซ Disable Auto-Run Application (Settings) โ†’ Annexes โ†’ Auto-start).
  • ๐Ÿ”• Turn off notifications from the app.

3.Picture-in-Picture is not working after overlays are turned off

The reason: The PiP mode uses the same mechanism as the overlays.

Decision:

  • ๐ŸŽฅ Enable overlays for YouTube or Google Chrome only (via Google Chrome) ADB or App Ops).
  • ๐Ÿ”„ Use alternative players (like NewPipe) where the PiP works without overlays.
Can I turn off overlays without ADB?
Yes, most of the time, standard settings (Settings โ†’ Special Access โ†’ Display on top of other windows) are enough, but on MIUI 14+, some applications ignore these limitations, and then you have to use ADB or third-party utilities.
Why did the overlays stop coming after the overlays were turned off?
Some messengers (Viber, WhatsApp) use overlays to show pop-up notifications. Once disabled, notifications will only come in the status bar. To return pop-ups, allow overlays only for these applications.
Is it safe to use ADB to turn off overlays?
Yes, as long as you follow the instructions and don't change other system permissions. SYSTEM_ALERT_WINDOW, However, it is not recommended to disable overlays for system applications (Google Play Services, Miui System).
How to turn off overlays on POCO Launcher?
POCO Launcher does not create overlays by itself, but it can conflict with other applications. Try: Disable overlays for POCO Launcher in permission settings. Reset launcher settings (Settings โ†’ Applications โ†’ POCO Launcher โ†’ Storage โ†’ Clear data). Set an alternative launcher (e.g., Nova Launcher).
Does this work on the Redmi Note 10 Pro with MIUI 13?
Yes, all of the methods described are compatible with the Redmi Note 10 Pro on MIUI 13. Exception is if the device has custom firmware (for example, LineageOS), where the path to settings may differ.