How to allow apps to appear on top of other windows on Xiaomi: full instruction

The Over Other Windows feature (or Display over other apps) allows applications to create overlayed interface elements, such as chat bubbles in instant messengers, mini-players in music services, or overlays in games. On Xiaomi smartphones with a MIUI shell, this mode is often blocked by default due to security policies, leading to errors like “failed to overlay over other windows.” In this article, we will discuss all the ways to enable the feature, from standard settings to hidden developer parameters.

It is important to understand that MIUI actively restricts the background activity of applications to save battery power.So even after activation of the overlay, the system can automatically close overlays after 5-10 minutes of inactivity. We will show how to bypass these restrictions and fix applications in memory. The instructions are relevant for MIUI 12-15 (including HyperOS), but some points may differ on older versions (up to MIUI 11).

Why do you need a “Over Other Windows” function?

The overlay mode is used in dozens of scenarios:

  • 🎵 Music players: a miniature player on top of other apps (e.g. Spotify or YouTube Music).
  • 💬 Messengers: Floating notifications about new messages (WhatsApp, Telegram, Viber).

Without this permission, apps will either not work properly (for example, Twitch will not show chat on top of the stream), or they will not run at all, especially critical for game assistants like Octopus or PPSSPP, where the overlay controls the emulation settings.

⚠️ Note: Some banking applications (e.g. SberBank Online or Tinkoff) block work if they detect active overlays. This is a security measure against keyloggers. Before using the feature, check if it conflicts with your financial services.

Method 1: Standard MIUI settings (without developer rights)

On most Xiaomi devices (e.g. Redmi Note 12 Pro+, POCO X5 Pro, Xiaomi 13T) the function is enabled via the “Special Permissions” menu**:

  1. Open Settings → Applications → Application Management.
  2. Select the application you want (such as Telegram or Spotify).
  3. Tap on Other Permissions (or Application Permissions in older versions of MIUI).
  4. Find the option on top of other windows and switch the slider to the "Allow" position**.

If the item "Above other windows" is not in the list, it means:

  • 🔹 The app did not request this permission (check its settings).
  • 🔹 The function is blocked at the system level (developer rights are required).
  • 🔹 You have an outdated version. MIUI (firmware update).

☑️ Preparation for the inclusion of the overlay

Done: 0 / 4

MIUI 14+ may hide this item for some applications (especially system ones), in which case only the developer mode will help (see next section).

Method 2: Through the Developer Menu (for hidden options)

If the standard method didn’t work, turn on Developer Mode** and manually activate the overlay:

  1. Tap 7 times on the MIUI version until the notification “You became a developer!” appears.

In MIUI 15 (and HyperOS), the path may be different:

Settings → Memory and performance → Special permissions → On top of other windows →

⚠️ Note: Some devices (e.g. Xiaomi Mi 11 Ultra) require a reboot after the developer mode is activated.

What to do if there is no “Developers” item?
If after 7 taps according to MIUI section did not appear, try: 1. Check if the settings are reset (sometimes helps reset to factory). 2. Update the firmware through Settings → System Update. 3. Install the global version of MIUI (Chinese firmware may be limited).

On devices with HyperOS (for example, Xiaomi 14 or Redmi K70), the path to the developer’s settings has changed: now it is in Settings → About Phone → HyperOS version (you need to tap on this item).

Method 3: Through ADB (for power users)

If the system persists in blocking overlay, you can use the command ADB (Android Debug Bridge), which works even on blocked firmware:

  1. Install. ADB-PC drivers.
  2. Enable “USB Debugging”** in the developer settings (see previous section).
  3. Connect your smartphone to your computer and start the command line (cmd in Windows).
  4. Enter the command to check the connection: Adb devices must appear serial number of your device.
  5. Give permission to the application (replace com.example.app with your application package, for example com.whatsapp): adb shell pm grant com.example.app android.permission.SYSTEM_ALERT_WINDOW

To find out the application package, use the command:

adb shell pm list packages | grep "keyword"

Example:

adb shell pm list packages | grep "telegram"

💡

If ADB does not recognize the device, try switching USB connectivity mode to File Transfer (MTP) in the notification curtain.

After you execute the command, restart your smartphone. The resolution will be valid until the settings are reset.

Why Overlays Don’t Work: Typical Problems and Solutions

Even after the overlay function is turned on, we may not see the main reasons and ways to eliminate them:

Problem.Reason.Decision
Overlay disappears in 5-10 minutes.MIUI kills background processes to save batteryAdd the app to No restrictions in battery settings
The "Allow" button is inactiveApp does not request permission in manifestoUpdate the app or use ADB
Overlay appears but does not interact with the screenConflict with navigational gesturesTurn off full-screen gestures in display settings
Permission resets after rebootingFirmware restrictions (especially on Chinese versions of MIUI)Install global firmware or use Magisk modules

If the problem persists, check:

  • 🔋 Battery Optimization: Go to Settings → Battery → Battery Optimization and Select for the Application Without Limitations.
📊 What is your Xiaomi model?
Redmi Note 12/13
POCO X5/X6
Xiaomi 13/14
Redmi K60/K70
Another model

How to fix the application in memory (so that the overlay does not disappear)

MIUI aggressively closes the background processes, causing the overlays to disappear after a few minutes.

  1. Open Settings → Battery and Performance → Battery Management
  2. Select the application and install it without restrictions.
  3. Return to the main settings menu and go to Applications → Application Management.
  4. Slip on the application → Permissions → Autostart (enable).
  5. Activate Attachment (if any) – this will prevent the application from closing when the memory is cleared.

For MIUI 15/HyperOS, add the app to Priority**:

Settings → Memory → Priority applications

⚠️ Warning: Sticking too many applications in memory will slow down the system and increase battery consumption.

Features on different models Xiaomi

The manufacturer makes changes to the interface depending on the series of devices, and here are the key differences:

Series of devicesFeatures of inclusion of overlayAdditional nuances
Redmi Note 10–13Item Above other windows hidden in Other permissionsChinese firmware requires ADB
POCO X3–X6Developer menu is included in taps on the MIUI versionIn POCO Launcher, overlays can conflict with gestures
Xiaomi 12–14On the HyperOS path: Settings → Applications → Special permissionsSupports dynamic overlays (for example, for AR-applications)
Black Shark 5/6Gaming overlays are managed via Shark SpaceRequired to disable Game Turbo Mode for Third-Party Overlays

On devices with pure Android (such as Xiaomi A3 or POCO F1 on Android One), customization is done in the standard way through Settings → Applications → Special Access → On top of other windows.

💡

On Xiaomi with MediaTek processors (such as Redmi 10C or POCO M5), you may need to reboot after overlaying – otherwise overlays will be displayed with artifacts.

Safety: Risks of using overlays

The “Over Other Windows” feature* opens up potential vulnerabilities:

  • 🕵️ Keyloggers: Attackers can create transparent overlays to steal passwords.
  • 🎭 Phishing: Fake data entry windows (e.g. fake bank forms).
  • 🔄 Conflicts: Overlays can intercept gestures and block interaction with the system.

To minimize the risks:

  1. Allow overlays only to trusted apps (from Google Play or Mi App Store).
  2. Check the list of applications with permission in Settings → Apps → Special permissions regularly.
  3. Use Mi Security to scan for malicious overlays.

If you notice suspicious windows after installing the app (such as ads on top of all screens), immediately:

1. revoke the "Above Other Windows" permission for this application.


2. Remove it through Settings → Apps.




3. Perform a full virus scan.

FAQ: Frequent questions about overlaying over windows

Can I include an overlay without developer rights?
Yes, most applications have standard settings in Settings → Applications → Application Management → Other permissions, but some system utilities (like Game Turbo) require developer mode activation.
Why did the MIUI update stop working?
Xiaomi often resets special permissions on major updates. After the update: Check if the settings in Developer For Reset. Re-issue permission through ADB (if you used this method). Clear the app cache in Settings → Apps → Storage.
How do I know which apps are currently using overlays?
Go to Settings → Applications → Special Permissions → On top of other windows, you can see the full list of active resolution apps, and on MIUI 15 you can sort the list by your last use date.
Will the overlay work in games?
Depends on the game and firmware: 🎮 In most games (for example, PUBG Mobile, Genshin Impact overlays blocked due to cheat protection. 🔧 On Black Shark or in Game Turbo, you can enable Transparent Mode for some utilities (for example, Discord). ⚙️ On rooted devices, overlays work in games through Magisk modules (e.g., Game Overlay Enabler).
Can I enable an overlay for system applications (e.g., Screen Recording)?
Yes, but only through ADB Or Magisk. Standard way. MIUI It blocks changes in permissions for system utilities. ADB: adb shell pm grant com.miui.screenrecorder android.permission.SYSTEM_ALERT_WINDOW adb shell pm grant com.miui.screenrecorder android.permission.BIND_NOTIFICATION_LISTENER_SERVICE After performing, restart the device.