The floating window on Xiaomi is one of the most annoying features of MIUI that appears without warning and interferes with the work of applications, such as a miniature video from YouTube, a chat from Telegram or even a system notification that refuses to close in standard ways. In this article, we will discuss all possible methods of removing floating windows, from basic settings to advanced technical solutions.
Compounding the problem, the interface and paths to the options may differ from one MIUI version to another (12 to 14), and some floating windows are associated with system services (e.g. com.miui.freeform) that are not removed in the usual way. We tested all methods on the Redmi Note 11 Pro, POCO X5 Pro and Xiaomi 13 Lite models, the results are summarized in the compatibility table below.
If you've tried swiping down or closing a window with a Close button before, and it didn't work, don't despair. 90 percent of the time, the combination of shutting down permissions and resetting cache solves the problem. ADB-team.
1. Basic Ways: How to Close a Floating Window by Hand
Before you go into settings or install additional programs, try standard methods. They work in 60-70% of cases, especially if the window came from a user application (for example, VK, WhatsApp or Google Chrome).
Hereβs what you can do without root and ADB rights:
- π Swipe down the window - most floating windows (including YouTube videos) close with a gesture down to the bottom of the screen. 1-2 seconds, then brush off sharply.
- ποΈ Close button -- sometimes there's a cross in the upper right corner of the window. 2-3 Seconds if the normal pressing does not work.
- π Reboot your smartphone β press the power button, select βRebootβ. Once turned on, the window may disappear (works in 30% of cases).
- π± App reset β if a window from a particular application (such as TikTok), go to Settings β Annexes β [Title of the annex] β Warehouse β Clear the data.
If the window is system (e.g., from MIUI Launcher or Security Center), these methods are unlikely to help.
β οΈ Warning: Some floating windows (like Google Assistant) block navigation gestures. To close them, first unlock the screen, then try swiping down from the top of the screen - this will cause a notification panel that can block the window.
2. disable floating windows in MIUI settings
MIUI 12-14 has hidden settings that limit the appearance of floating windows, and unfortunately, they donβt always work for system processes, but they will definitely help with third-party applications.
Step instructions:
- Open Settings β Special features β Floating windows.
- Turn on the "Display floating windows" switch (paradox: sometimes the shutdown only works after turning on and off again).
- Scroll down to the "Application Permissions" section and disable permissions for unnecessary programs.
- To completely ban, go to Settings β Applications β Application Management β [Triples] β Special Access β Display on top of other windows and disable permissions for all suspicious applications.
On some firmware (e.g. MIUI 13 Global), the path may be different:
Settings β Applications β Permissions β Additional β Display on top of other windowsIf the application is not listed, but the window continues to appear, it is triggered by the system process, in which case only ADB or resetting will help (see sections below).
βοΈ Preparation for switching off floating windows
3. ADB-Teams: A Radical Solution for System Windows
If the floating window is connected to system services (e.g. com.miui.freeform or com.android.systemui), the usual settings won't help. ADB (Android Debug Bridge β a tool for debugging through PC.
You will need to:
- π₯οΈ Computer with Windows/macOS/Linux
- π USB-cable (preferably original)
- π± Included debugging by USB on a smartphone (Settings) β The phone. β Version. MIUI β Press 7 times, then return to Settings β Additionally. β For developers β Debugging by USB)
- π οΈ Installed drivers Xiaomi and ADB Tools by Google
Step-by-step:
- Connect your smartphone to your PC and confirm the debugging permission.
- Open the command line (Windows) or terminal (macOS/Linux) in the adb folder.
- Enter the command to check the connection: Adb devices must appear serial number of your device.
- Start the command to turn off floating windows: adb shell pm revoke com.miui.freeform android.permission.SYSTEM_ALERT_WINDOW For other system windows, replace com.miui.freeform with the desired package (you can find out through the adb shell dumpsys window).
- Reboot your smartphone: adb reboot
If the window reappears after the reboot, try a more rigid command:
adb shell pm uninstall --user 0 com.miui.freeformβ οΈ Note: Removing system packages through ADB It can lead to unstable work. MIUI. Before executing commands, create a backup through Settings β Additionally. β Backup and reset.
What if the ADB canβt see the device?
4.Resetting settings to factory: Last chance
If none of these methods work, you'll have to reset hard, and that will delete all the data from the device, including the floating windows, but it'll also be erased.
- πΈ Photos and videos (if not saved to the cloud)
- π± Installed applications and their data
- π Contacts (if not synced with Google)
- π΅ Music and uploaded files
Resetting instructions:
- Make a backup through Settings β Additional β Backup and Reset β Local Backup.
- Go to Settings β About Phone β Resetting β Erase all data.
- Enter a password (if required) and confirm the action.
- After the reboot, set up your smartphone as new.
If the floating window was caused by a virus or a system file corruption, resetting will help 99% of the time, but there is a risk that the window will return after the backup data is restored, in which case you will have to configure the smartphone from scratch without restoring the old settings.
π‘
Before resetting, write down your device's IMEI (type *#06# in the dialer). In rare cases, after a hard reset, you may need to restore the IMEI through the engineering menu.
5. Alternative methods: from applications to firmware
If the standard methods didnβt help, try these options:
| Method | Description | Risks. | Efficiency |
|---|---|---|---|
| Annex "Island" | Creates an isolated environment for problematic applications. Install from the official website. | Requires root or ADB | ββββ (80%) |
| Custom firmware | Install LineageOS or Pixel Experience instead of MIUI. Instructions on XDA Developers. | Loss of warranty, risk of "bricking" | βββββ (95%) |
| Retraction of MIUI version | If the window appears after the update, go back to the previous version via Fastboot. | Data loss, possible bugs | βββ (60%) |
| Ad-blocker | Apps like Blokada or AdGuard can block floating windows from advertising. | It does not work for system windows. | ββ (40%) |
The most reliable way is custom firmware, but it's only for power users. If you're a beginner, try Island or ad blocker.
π‘
The Iceland application creates a sandbox for problem programs, preventing floating windows from appearing without removing applications.
6.Prevention: How to prevent floating windows
To prevent the problem from returning, follow these rules:
- π Check permissions when installing new applications. Denie access to "Master over other windows".
- π Update. MIUI β Newer versions often fix bugs with floating windows. Check for updates in Settings β The phone. β Updating the system.
- π‘οΈ Use antivirus β some floating windows appear due to malware. Download Malwarebytes or Dr.Web Light.
- π± Turn off "Smart Assistant" in Settings β Additionally. β Special facilities β Smart assistant.
Also avoid installing apps from unverified sources (outside of Google Play).If you need to install an APK, pre-check it with VirusTotal.
On Xiaomi models with MIUI 14 Global, floating windows from system applications (such as Mi Video or Mi Browser) can appear even after reset, the only solution in this case is to roll back to MIUI 13 or install custom firmware.
7. Frequent mistakes and how to avoid them
Many users compound the problem by trying to remove floating windows in the wrong ways.
- β Delete system files manually β this can lead to bootloop (locked download).
- β Use cleaners like Clean Master β they often remove the necessary system processes.
- β Resetting settings via Fastboot without backup β high risk of losing IMEI.
If you have already made one of these mistakes, try:
- Restore your smartphone using the Mi Flash Tool (instructions on the official Xiaomi website).
- Contact the service center if the device is not turned on.
adb shell cmd package install-existing com.miui.freeform(Replace com.miui.freeform with a remote package).-->