How to fasten the application on top of all windows on Xiaomi: full instructions with and without ADB

Introduction: Why you need apps on top of all windows

Overlay or floating windows are popular with Xiaomi users for a variety of reasons: it can be a handy chatbot that doesn’t interfere with your browser, or a navigator that hangs over Google maps. However, in MIUI (Xiaomi’s shell), this option is often hidden or limited – especially after system updates. Unlike β€œpure” Android, where it is enough to issue permission in settings, Redmi, POCO or Mi will have to use workarounds.

The main problem β€” MIUI It blocks most applications from running in overlay mode by default, citing "safety" and "battery optimization." But there are legal ways around this: through the Special Options Settings, ADB-In this article, we will discuss all the current methods for MIUI 12–15, including solutions for cases where standard settings do not work.

Important: Some methods require permission to debug over USB (ADB) or root rights. If you're a beginner, start with the simplest methods, they'll work for 80 percent of tasks.

Method 1: Standard MIUI settings (without ADB)

The safest way is to use the built-in tools of the system, which is suitable for most applications (e.g. Messenger, Telegram in pipette mode, Google Maps in navigation).

  1. Open β€œSettings” β†’ Applications β†’ Application Management.
  2. Find the desired application in the list and tap it.
  3. Select Additional (or Permissions in older versions of MIUI).
  4. Activate the display switch over other windows (may be called Overlay or Floating window).

If this item is not available, then the application does not support the default overlay, or MIUI has blocked this feature for it, in which case, move on to the following methods.

⚠️ Attention: B MIUI 14+ Some system applications (e.g. Security or Theme Store) can automatically reset this resolution after rebooting.To avoid a problem, add the application to Battery Optimization Exceptions (path: Settings) β†’ Battery β†’ Optimizing the battery β†’ All applications).

Enable debugging on USB (for ADB-methodologies)

Check the version of MIUI (Settings β†’ About the phone)

Update the application to the latest version

Clear the application cache (Settings) β†’ Annexes β†’ [name] β†’ Clear the cache)-->

List of apps that support overlays by default

  • πŸ“± Telegram (Pipetka mode for video calls)
  • πŸ—ΊοΈ Google Maps (navigation in a small window)
  • πŸ’¬ Facebook Messenger (floating chats)
  • 🎡 Spotify (mini player)
  • πŸ“Š Tasker (for automation)

If your app isn’t on the list, try the method with ADB or special utilities (see the following sections).

Method 2: ADB resolution (for power users)

If the standard settings don't work, you can manually grant permission through Android Debug Bridge (ADB), which is universal and works even for applications that MIUI blocks out of the box.

  • πŸ–₯️ Computer with installed ADB-driver.
  • πŸ“± Xiaomi smartphone with enabled debugging USB (Path: Settings β†’ The phone. β†’ Version. MIUI β†’ 7 times to tap β†’ Return to Additional Settings β†’ For developers).
  • πŸ”Œ USB-cable (preferably original).

Instructions:

  1. Connect the phone to the PC and confirm the debugging permission on the smartphone screen.
  2. Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with adb.exe.
  3. Enter the command to check the connection: Adb devices must appear serial number of your device.
  4. Give permission to overlay for the desired application (replace com.example.app with its batch name): adb shell pm grant com.example.app android.permission.SYSTEM_ALERT_WINDOW
  5. Reboot the phone.

To find out the batch name of the application, use the command:

adb shell pm list packages | grep "appendix name"

For example, for Telegram it is org.telegram.messenger.

adb shell appops set com.example.app SYSTEM_ALERT_WINDOW allow

This will secure permission at the system level.-->

⚠️ Note: Some applications (e.g. banking or high security) may block overlay even after permission is issued via the Internet. ADB. This is due to their internal security policies.

AnnexPackage nameSupports ADB-method?
Telegramorg.telegram.messengerYes.
WhatsAppcom.whatsappYes (notification only)
Google Mapscom.google.android.apps.mapsYes.
SberBank Onlineru.sberbankmobileNo (safety lock)
Taskernet.dinglisch.android.taskermYes.

Standard settings of MIUI

ADB-team

Third-party utilities (e.g. Shizuku)

Ruth-right-->

Method 3: Use Shizuku and AppOps (for MIUI 13-15)

If ADB seems complicated, you can use Shizuku, which allows you to manage Android resolutions without root permissions, but using ADB for initial setup, which works on MIUI 13-15 and does not require a permanent connection to a PC.

Steps:

  1. Install Shizuku from Google Play.
  2. Connect your phone to your PC and execute the command: adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
  3. Open the Shizuku app on your phone and wait for the connection (the icon should turn green).
  4. Install AppOps (also from developer Shizuku).
  5. In AppOps, find the desired application and activate the permission. SYSTEM_ALERT_WINDOW.

The advantage of this method is that the resolution is saved after a reboot, unlike the standard ADB. However, Shizuku requires periodic updates (every few months), otherwise communication with the system will be interrupted.

What if Shizuku is not connected?
1. Check if debugging is included on USB (Settings β†’ For developers. 2. Make sure that the PC has the current ones installed. ADB-Drivers (download them from Android Studio site). 3. Try restarting your phone and repeating the adb start-server command before starting Shizuku. 4. If you use Windows, run the command prompt on behalf of the administrator.

Comparison of methods: ADB vs Shizuku

  • ⚑ ADB: One-time setting, but the resolution may reset.
  • πŸ”„ Shizuku: Requires a constant background process, but more reliable.
  • πŸ› οΈ Ruth: The most reliable way, but risky (see next section).

Method 4: Ruth-Right and Magisk (for advanced)

If none of the previous methods worked, root rights remain, giving you full control of the system, but it is not guaranteed and can disrupt some features (such as Google Pay or banking applications), and use this method only if you understand the risks.

Instructions:

  1. Unlock the bootloader on Xiaomi through the official website (it takes 7-14 days).
  2. Install custom recovery (TWRP) and swipe Magisk.
  3. In Magisk, activate the App Systemizer or AppOps module.
  4. Through Terminal or ADB grant permission: su pm grant com.example.app android.permission.SYSTEM_ALERT_WINDOW

After that, any app will be able to run on top of other windows, but beware: some apps (such as Netflix or PokΓ©mon GO) can block root-righted devices.

⚠️ Attention: MIUI 14+ Xiaomi has tightened root rights protections. Using Magisk can result in a Mi Account being blocked or service denied under warranty.Before firmware, back up your data via Settings β†’ Additionally. β†’ Backup and reset.

πŸ’‘

Ruth-right is the last resort, and before you get them, check if there are alternatives (e.g. Shizuku or app updates).

Method 5: Bypasses for specific applications

Some apps have built-in features to run on top of other windows, but MIUI blocks them. Here's how to get around the restrictions for popular services:

1. Google Maps (navigation in a small window)

  • πŸš— Start navigation in Google Maps.
  • πŸ” Cover the app with the Home button.
  • πŸ“± In the notification panel, find the navigation card and tap it – a floating window will open.

If the window doesn’t appear, check the permissions in Settings β†’ Apps β†’ Google Maps β†’ Additional β†’ Display on top of other windows.

2. Telegram (floating chats)

  • πŸ’¬ Open a chat on Telegram.
  • πŸ“Œ Click on the interlocutor's avatar β†’ Lock the chat.
  • πŸ”„ Crash the app – the chat will remain in the form of a floating mug.

3. YouTube (peep mode)

To view the video in a small window:

  • πŸŽ₯ Launch the video on YouTube.
  • πŸ” Click Home – Video should curl up in the corner of the screen.
  • βš™οΈ If it doesn’t work, check the settings: YouTube Settings β†’ General. β†’ Pip-mode.

If these methods don’t work, try alternative clients (like NewPipe for YouTube or Footej Camera for floating cameras).

Solving the Problem: Why the App Doesn't Show Up on Others

Even after all the permissions are granted, the application may not work in overlay mode, and here are the most common reasons and solutions:

Problem.Possible causeDecision
Permission resets after rebootingMIUI blocks changes through ADBUse Shizuku or Root Rights
The application is not displayed in the permission listIt doesn't support overlays.Check the application documentation or use an alternative
Overlay works but disappears after a few secondsBattery optimization kills the processAdd the app to battery exclusions (Settings β†’ Battery β†’ Battery Optimization)
Black screen instead of overlayConflict with MIUI theme or animationsTurn off animations in Settings β†’ For developers β†’ Animation scale (off)

If the problem is not solved, try:

  • πŸ”„ Clear the application cache (Settings) β†’ Annexes β†’ [name] β†’ Clear the cache).
  • πŸ“₯ Update the application to the latest version.
  • πŸ“‘ Switch to another version MIUI (for example, from the Global EEA vice versa).
How to check if the app supports overlays?
1. See the description in Google Play – often it says β€œsupport for floating windows". 2. Use Overlay Checker – the utility shows all applications with resolution SYSTEM_ALERT_WINDOW. 3. Check the application settings – sometimes the option is hidden in Experimental Features or Lab.

FAQ: Frequent questions about overlay on Xiaomi

Can you make an overlay without a computer?
Yes, but with limitations. Most applications have standard MIUI settings (Settings β†’ Applications β†’ Permissions β†’ Display on top of other windows). If this method doesn't work, try utilities like Island (for cloning apps) or App Cloner, which sometimes bypass the restrictions.
Why did the overlays stop working after the MIUI update?
Xiaomi often resets permissions for third-party apps after major updates. Solutions: Reissue permission via ADB or Shizuku. check if MIUI has added your app to the Restricted List (Settings β†’ Special Features β†’ Overlay Apps). If nothing helps, roll back to the previous version of MIUI via Fastboot (instructions are available on xiaomi.eu).
Is it safe to use ADB to issue permits?
Yes, if you download the platform-tools from the official Android Developers website, the risks are minimal, because you don't change the system files, you only give permission. ADB from unverified sources (virus risk) Do not issue permission SYSTEM_ALERT_WINDOW Unknown apps – this can lead to ads being displayed over all windows.
How to find out the batch name of the application without ADB?
There are several ways: Use the App Inspector app. See the app URL in Google Play - the batch name is listed after id= (e.g. com.whatsapp). In MIUI, go to Settings β†’ Apps β†’ [name] β†’ Additional - sometimes the packet name appears there.
Does the overlay work on POCO and Black Shark?
Yes, all of the methods in this article are applicable to POCO and Black Shark, as they are based on MIUI (or its modifications like POCO Launcher), except for HyperOS devices (the new shell of Xiaomi), where there may be additional restrictions, for which it is recommended to use Shizuku or root rights.