Xiaomiβs virtual lock button is a convenient solution for those who want to quickly lock a smartphone without using a physical power button. This is especially true when the mechanical key breaks, awkward location (for example, on large models of the Redmi Note 12 Pro+), or simply to speed up access. In this article, we will discuss 5 proven ways to add a virtual lock button to the screen of Xiaomi, Redmi and POCO devices β from standard MIUI functions to third-party applications.
Importantly, not all methods are universal. For example, the built-in MIUI 14 tools may not be available on older firmware versions (before MIUI 12), and some applications require permissions for special features. We will specify the limitations for each method so that you can choose the best option for your model - whether it is Xiaomi 13 Ultra or the budget Redmi A2.
1. Built-in βFloating Buttonβ function in MIUI
The easiest way is to use the built-in Floating Button tool available in MIUI 12-14, which is originally designed to be easy to control with one hand, but can be adapted to lock the screen. It works on most modern devices, including the Xiaomi 12T, Redmi Note 11 and POCO X5 Pro.
To activate:
- Go to Settings β Special Options β Floating Button.
- Turn on the "Show the floating button" switch.
- Click on βButton Settingsβ and select Lock in the action list.
- Set the button position on the screen (left/right) and its transparency.
Limitations of the method:
- π΄ Does not work on devices with MIUI 11 and below.
- π΄ In some models (for example, POCO F4 GT) The button can disappear in full-screen applications.
- π’ Does not require root rights or third-party applications.
π‘
If the floating button interferes with games, reduce its size in the settings or move it to the corner of the screen where it least touches the interface.
2.Use of the Quick Ball (Quick Ball)
Quick Ball is another built-in MIUI feature that allows you to create a virtual dashboard with quick access to actions including locking the screen. Unlike a floating button, you can add up to 5 shortcuts (e.g. lock + homecoming + recent apps).
Instructions for setting:
- Open Settings β Additional β Quick Ball.
- Activate the function and select βConfigure shortcutsβ.
- Add the block action to the list.
- Set up the sensitivity of the operation and the transparency of the panel.
Advantages of the method:
- π’ Works on MIUI 10β14, including older models like the Redmi Note 8 Pro).
- π’ You can combine with other actions (for example, a screenshot or launching Google Assistant).
- π΄ On some firmware, the panel may conflict with navigation gestures.
How to return Quick Ball if it is missing after the update?
3. Third-party applications without root
If the built-in MIUI tools don't fit, you can use third-party apps. We tested 3 of the most reliable options that do not require root rights and work on Xiaomi with Android 11-14.
| Annex | Features | Cons | Compatibility |
|---|---|---|---|
| Power Button to Volume Button | Reassigns the volume button to lock, works through special features. | It can conflict with loudness gestures in games. | MIUI 12β14, Android 10+ |
| Lock Screen Button | Adds a floating lock button with a look setting. | Free advertising requires permission. SYSTEM_ALERT_WINDOW. | All Xiaomi models |
| Assistive Touch | Quick Ball with advanced settings (including locking). | Paid version for removing advertising. | Android 8+ |
Selection recommendations:
- πΉ If you want maximum reliability, use Power Button to Volume Button (regardless of overlays).
- πΉ For flexible configuration of the appearance of the button is suitable Lock Screen Button.
- πΉ If multitasking is required (blocking) + Other activities, choose Assistive Touch.
Power Button to Volume Button|Lock Screen Button|Assistive Touch|Embedded facilities MIUI|Other-->
4.Configure via ADB (for power users)
If standard methods do not work (for example, on custom firmware or POCO with cropped functionality), you can activate hidden MIUI settings via ADB. This method does not require root, but involves working with the command line.
Step-by-step:
- Install. ADB-PC drivers.
- Turn on USB Debugging on your smartphone (Settings β About Phone β MIUI Version β 7 times press to unlock Developer Mode, then Settings β Additional β Developers β Debugging over USB).
- Connect your phone to your PC and execute the command: adb shell settings put secure sysui_nav_bar "Space, Recent, Home, Back, Space This will add empty space to the navigation bar where you can put a virtual button.
- Install the Button Mapper app and assign the Lock action to the created area.
β οΈ Attention: Wrong ADB-commands may disrupt the system. Before experimenting, back up through Settings. β System system β Backup.
Install Platform Tools on PC| Enable USB debugging on your phone | Download Button Mapper from Google Play | Create a backup of the data-->
5. Lock widget on the main screen
Little-known life hack: on MIUI, you can add a lock widget directly to the home screen. This is not as convenient as a floating button, but it works without additional applications and is suitable for devices with MIUI 9-14.
How do I add:
- Click and hold the empty space on the home screen β select βWidgetsβ.
- Find the Control widget (or Controls in English firmware).
- Drag it to the screen and select the Lock action.
- Set the size of the widget (the options are 1Γ1 or 2Γ1).
Advantages:
- π’ It works on all Xiaomi models, including the old ones (Redmi 5 Plus, Mi). A2).
- π’ Does not require permission or root.
- π΄ The widget takes up space on the screen and is not floating.
π‘
The lock widget is the only method that is guaranteed to work on all versions of MIUI, including global and Chinese firmware.
Comparison of methods: which one to choose?
To facilitate the selection, we have compiled a comparative table on the key criteria:
| Method | Need root? | Works on old MIUIs? | Convenience | Reliability |
|---|---|---|---|---|
| Floating button | β No. | β Only MIUI 12+ | βββββ | ββββ |
| Quick Ball | β No. | β MIUI 10+ | ββββ | βββ |
| Third-party annexes | β No. | β All versions. | βββ | ββ (depending on the application) |
| ADB | β No. | β All versions. | ββ | ββββ (fine-tuning) |
| widget | β No. | β All versions. | ββ | βββββ |
For most users, the best choice is a floating button or Quick Ball, since they do not require third-party software installation and work stably on modern firmware. MIUI (9) it is better to use the widget or ADB-method.
Frequent problems and their solutions
When setting up a virtual lock button, users often encounter common errors, and here are the most common ones and how to fix them:
- π« The button does not appear after setting up: Check if the resolution of the display on top of other windows for the application is enabled (in Settings). β Annexes β Permits. MIUI 14 may also require a restart of the device.
- π« Button works, but lock doesn't work: Make sure to set up security settings (Settings) β Lock and protect) is disabled when you press the power button β it can conflict with the virtual button.
- π« Floating button disappears in games/applications: In button settings (Settings) β Special facilities β Floating button β Additionally) enable the option to Show in full-screen applications.
β οΈ Attention: On Android devices 13+ and MIUI 14 Some third-party apps (such as Assistive Touch) may require additional permission. POST_NOTIFICATIONS. Without it, the lock button will not work.