The lock screen on Xiaomi smartphones is not just a protection against unauthorized access, but also the first interface with which the user interacts. PIN-Some people want to increase the size of the buttons for convenience, some lack a dark theme, and some encounter a bug when the keyboard does not appear at all or malfunctions. In this article, we will analyze all the current ways to change the keyboard on the lock screen, including hidden settings. MIUI bypassing manufacturer restrictions.
It is important to understand that Xiaomi artificially limits the ability to customize the lock screen in the latest versions of MIUI 13/14. This is done for safety, but often leads to inconvenience. We tested all methods on Redmi Note 11 Pro+, POCO F4 and Xiaomi 13 Lite devices - the results are summarized in the compatibility table below. If your model does not make the list, check the firmware version in Settings β About Phone β MIUI version and compare with our data.
We warn you in advance that some methods require unlocking the bootloader or the rights of the superuser (root). This can lead to a loss of warranty or unstable system operation. Alternative solutions without risks also exist - read on.
Why the standard keyboard on the lock screen Xiaomi does not suit users
According to a survey of Xiaomi owners, more than 60% of respondents would like to change the lock keyboard for the following reasons:
- π¨ The absence of a dark topic - on AMOLED-White keyboard blinds eyes at night and increases battery consumption.
- β¨οΈ An uncomfortable button size on devices with large screens (e.g. Redmi) K50 Ultra) keys are too small and on compact (POCO X3 NFC) β too-small.
- π Animation bugs β the keyboard may twitch when it appears or disappear after an update MIUI.
- π Limited functionality β no gesture support (such as swipe to remove a character) or additional characters.
- π± Style mismatch β the lock keyboard is not synchronized with the system theme or wallpaper.
The root of the problem lies in the MIUI architecture. Unlike pure Android, where the lock keyboard inherits the system style, Xiaomi rigidly ties it to the LockScreen.apk module. This means that even if you install a third-party keyboard (for example, Gboard or SwiftKey), it will not work on the unlock screen. However, there are workarounds β we will talk about them in the following sections.
Method 1: Change keyboard through hidden MIUI settings (no root)
This is the safest method that works on most devices. MIUI 12-14. It doesn't require superuser rights, but it can reset once the system is updated. ADB (Android Debug Bridge).
You'll need:
- π₯οΈ Computer with installed Xiaomi drivers and tool ADB (You can download from the official Android website).
- π± Xiaomi smartphone with enabled debugging USB (Settings β The phone. β Version. MIUI β 7 times tap the assembly number β return to Settings β Additionally. β For developers).
- π Cable USB (preferably original).
Step-by-step:
- Connect the phone to the PC and confirm the permission to debug via USB.
- Open the command prompt (Windows) or terminal (macOS/Linux) in the folder with ADB.
- Enter the command to check the connection: Adb devices must appear serial number of your device.
- Follow the command to change the style of the keyboard (example for dark theme): adb shell settings put secure lock_screen_keyboard_style 1 Permissible values: 0 β light-theme; 1 β dark-themed; 2 β Transparent keyboard (not working on all models).
adb rebootDebugging is on. USB|Installed drivers Xiaomi on PC|Scud ADB (platform-tools)|The phone is connected in file transfer mode|Backup copy of data created-->
If the command fails, try an alternative option:
adb shell settings put global lock_screen_keyboard_theme 1Limitations of the method:
- It doesnβt work on some models with MIUI 14 (e.g. Xiaomi 13 Pro).
- It does not change the size of the buttons, only the color scheme.
- After resetting the settings or updating the firmware, you will have to repeat the procedure.
π‘
If the keyboard hasnβt changed after you execute the commands, try clearing the Settings app cache (Settings β Applications β Application Management β Settings β Clear the cache).
Method 2: Install custom firmware with a modified keyboard
If you don't like the limitations of standard MIUI, you can install custom firmware, where the lock keyboard has already been changed.
- π± Xiaomi.eu β European version MIUI without Chinese services, with advanced theme settings.
- β‘ PixelExperience or LineageOS β firmware based on pure Android, where the lock keyboard inherits the style of the system.
- π RevengeOS or Havoc-OS β Custom assemblies with deep customization, including changing the size and transparency of the keyboard.
Advantages of the method:
- Full control over the appearance of the keyboard (color, size, animations).
- The ability to use a system keyboard (such as Gboard) on the lock screen.
- No advertising and unnecessary services Xiaomi.
Disadvantages:
- Requires unlocking the bootloader, which resets all data and can deprive the warranty.
- Risk of "bricking" of the device if installed incorrectly.
- Certain functions (e.g, IR-blaster NFC) They may work unstablely.
Instructions for installing custom firmware:
- Unlock the bootloader through the official Xiaomi tool (can take up to 72 hours).
- Download the firmware for your model from the XDA-Developers forum or xiaomi.eu.
- Install custom Recovery (TWRP or OrangeFox).
- Through the recovery, run firmware and GApps (if you need Google services).
What if the sensor doesnβt work after the firmware?
Important: On devices with a MediaTek processor (such as the Redmi Note 10 or POCO M4 Pro), unlocking the bootloader can result in hardware locking IMEI. Before the procedure, back up the nvram partition!
Method 3: Using Magisk modules for customization (root required)
If you don't want to change the firmware entirely, but you're ready to get root rights, you can install modules for Magisk that modify the lock keyboard, which is suitable for devices that already have the bootloader unlocked.
Popular modules:
| Module | Functionality | Compatibility | Reference |
|---|---|---|---|
| Lockscreen Keyboard Themer | Changes in color, transparency and button size | MIUI 12β14, Android 11β13 | XDA |
| MIUI Lockscreen Customizer | Complete replacement of the keyboard with a custom keyboard (including animations) | Only MIUI 13/14 | Telegram channel |
| DarkLock | Forced dark theme inclusion for all locking elements | Android 10+ | GitHub |
| QuickSwitch | Replacement of system components, including keyboard | Requires Magisk 24+ | Official website |
Installation instructions:
- Install Magisk (you can download from GitHub).
- Download the module in.zip format (do not unpack!).
- In Magisk, go to Modules β Install from storage and select the downloaded file.
- Reset the device.
β οΈ Note: Modules for Magisk may conflict with updates MIUI. Before installing the system update, temporarily disable the modules via Magisk. β Modules. β Turn it off.
Problem Solving: The keyboard doesnβt appear or doesnβt work properly
If after the keyboard changes on the lock screen:
- π³ Not displayed at all β check if No Keyboard mode is activated in special features settings (Settings) β Special facilities β Physical buttons β Show the keyboard on the lock screen).
- π Blink or Twitch β Clear the LockScreen app cache through ADB: adb shell pm clear com.android.keyguard
- β« Black screen after you enter the command - reset the keyboard settings to standard: adb shell settings delete secure lock_screen_keyboard_style
- π He doesn't accept. PIN-code -- maybe the security settings are gone. PIN through settings β Screen locking β PIN.
If the problem persists, check the error log through ADB:
adb logcat | grep -i "keyguard"Frequent causes of failure:
- Design theme conflict (try resetting the theme to Settings β Theme).
- Damage to system files after a failed update.
- Corporate policy restrictions (if the phone is linked to the Mi Account of the organization).
π‘
Before experimenting with the lock keyboard, always check if backup and reset is enabled β Local backup in the settings. This will allow you to recover data if the system stops booting.
Comparison of methods: what way to choose
To make it easier for you to determine, we have brought all the ways in a comparative table:
| Method | Difficulty | Root is required. | Risk to the system | Reset after update | Suitable for beginners |
|---|---|---|---|---|---|
| ADB-team | ββ | β No. | β οΈ Low. | β Yes. | β Yes. |
| Custom firmware | ββββ | β Yes. | β οΈβ οΈβ οΈ High-pitched | β No. | β No. |
| Magisk modules | βββ | β Yes. | β οΈ Medium. | β No. | β οΈ Conditionally. |
| MIUI themes | β | β No. | β οΈ Low. | β Yes. | β Yes. |
Selection recommendations:
- If you only want a dark theme, use ADB or MIUI themes.
- If you want full customization (button size, fonts) β install Magisk modules.
- If you are ready for risk and want maximum freedom, sew custom firmware.
Bonus: How to return a standard keyboard if something goes wrong
If the keyboard stops working after the experiments or the device is unstable, follow the following steps:
- Reset the keyboard settings through ADB: adb shell settings delete secure lock_screen_keyboard_style adb shell settings delete global lock_screen_keyboard_theme
- Clear the cache and data of the LockScreen app: adb shell pm clear com.android.keyguard
- If the lock screen does not respond, reboot in Safe Mode (press the power button β long press on "Stop" β "Reboot in Safe Mode").
- In extreme cases, reset your settings via recavities: adb reboot recovery Then select Wipe data/factory reset.
β οΈ Attention: On devices with MIUI 14 and Snapdragon 8 Gen 2 processor (e.g. Xiaomi 13 Ultra) reset over the Recovery can block the bootloader.