How to bring the lock button to the screen Xiaomi: all working methods

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:

  1. Go to Settings β†’ Special Options β†’ Floating Button.
  2. Turn on the "Show the floating button" switch.
  3. Click on β€œButton Settings” and select Lock in the action list.
  4. 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:

  1. Open Settings β†’ Additional β†’ Quick Ball.
  2. Activate the function and select β€œConfigure shortcuts”.
  3. Add the block action to the list.
  4. 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?
After the update MIUI Quick Ball is gone, try it out: 1. Reset the settings in Settings β†’ Annexes β†’ Application management β†’ Settings (βš™) β†’ Reset the settings. 2. Install the official Quick Ball app from Google Play (not available in all regions). 3. Use it. ADB-The command for forced inclusion: adb shell settings put secure sysui_qs_tile "quickball"

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.

AnnexFeaturesConsCompatibility
Power Button to Volume ButtonReassigns the volume button to lock, works through special features.It can conflict with loudness gestures in games.MIUI 12–14, Android 10+
Lock Screen ButtonAdds a floating lock button with a look setting.Free advertising requires permission. SYSTEM_ALERT_WINDOW.All Xiaomi models
Assistive TouchQuick 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:

  1. Install. ADB-PC drivers.
  2. 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).
  3. 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.
  4. 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:

  1. Click and hold the empty space on the home screen β†’ select β€œWidgets”.
  2. Find the Control widget (or Controls in English firmware).
  3. Drag it to the screen and select the Lock action.
  4. 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:

MethodNeed root?Works on old MIUIs?ConvenienceReliability
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.

Can I add a lock button to the POCO F5 screen without root?
Yes, the POCO F5 (and other POCO models on MIUI 14) run all of the methods described, except for ADB (requires bootloader unlocking).
Why did the floating button disappear after the MIUI 14 update?
In MIUI 14, the way to adjust the floating button has changed: it is now in Settings β†’ System β†’ Floating Button. If it is not, try resetting special features or installing a firmware update through Settings β†’ About Phone β†’ System Update.
Will a virtual lock button drain the battery?
No, the power consumption is minimal (about 0.1-0.3% per hour), since the button is implemented at the overlay level. For comparison, background synchronization of mail consumes 10 times more, except for applications with constant animation (for example, Assistive Touch in the pulsating button mode).
Can I set a lock to double touch the screen?
Yes, but not through the standard settings. Install the Tap, Tap app (requires Android 7+) and set up the Double-Tap Lock action on the back or bottom of the screen. Xiaomi also has a built-in Double-Tap to Wake (Settings β†’ Display β†’ Double-Tap to wake up), but it only unlocks the screen, not locks it.
How to remove the virtual lock button if you no longer need it?
The method depends on the method of addition: For floating button/Quick Ball: Settings β†’ Special facilities β†’ Floating button/Quick Ball β†’ For third-party applications: delete the app or disable permission SYSTEM_ALERT_WINDOW. For widget: Press and hold the widget on the home screen β†’ drag in the basket.