Why Users Want to Remove the Lock Screen and When Itβs Justified
The lock screen on Xiaomiβs MIUI-enclosed smartphones is not just protection, but a whole range of features: notifications, quick actions, weather widgets, even mini-apps. But for some users, this element becomes redundant, such as when the phone is used exclusively at home as a media player, a smart home device or a work tool in a secure environment, in which cases, constantly entering a password, fingerprint or pattern lock annoys and slows down work.
But completely disabling the screen lock is not just removing the pattern lock, it's about deactivating all levels of security, including the deactivation of the pattern lock. PIN-code, password and biometrics. MIUI It doesn't provide a direct "remove lock completely" option in standard settings. All official methods are reduced to making it easier to unlock (like a swipe), but not to completely removing it.
Before you start making changes, consider the risks:
- π Data loss from theft or loss of a device β without locking anyone can access personal files, accounts and payment systems.
- π± Violation of warranty β informal methods (e.g., through the use of ADB Or custom firmware) may deprive you of the right to service.
- π Failures β after disabling the lock, some features (such as Xiaomi Pay or banking apps) may stop working.
If you do decide to take this step, in this article we will look at all possible ways β from the safest to the most radical, as well as alternative solutions that will keep the protection, but make the unlock as fast as possible.
Method 1: Simplifying locking before swipe (official method)
The easiest and safest way to remove a lock is to swipe it, which does not require root rights or technical skills, but leaves minimal protection (for example, from accidental presses in your pocket) Suitable for Redmi Note 10/11/12, Poco X3/X4, Mi 11/12 and other models on MIUI 12/13/14.
Instructions:
- Open the Settings. β Passwords and security.
- Select Screen Lock.
- Enter the current password/pattern lock.
- In the list of blocking methods, select Swipe (may be called "No" or "No lock" on some versions).
- Confirm the action.
βοΈ Preparation for changing the lock
β οΈ Note: Some models (e.g. Xiaomi 13 Pro or Redmi) K50) The swipe option can be hidden if you have previously set a password, in which case you first set a pattern lock, and then try to swipe again.
Advantages of the method:
- β Does not require rooting or ADB.
- β All functions are functional (including Google Pay).
- β It is easy to return the previous settings.
Disadvantages:
- β Minimum protection against unauthorized access.
- β On some firmware, the swipe may be reset after an update.
Method 2: Disable the lock via ADB (without root)
If you donβt like swiping and root rights, you can use USB debugging and ADB command. This method works on most Xiaomi devices with MIUI 10 and newer, but requires a connection to a computer. Importantly, after completing the command, all biometric data (fingerprints, face) will be deleted, and some functions (for example, Xiaomi Pay) may stop working.
Step-by-step:
- Enable Developer Mode: Go to Settings β About Phone. Click 7 times on MIUI Version. Go back to Settings β Additional β Developer. Activate USB Debugging.
Connect the phone to the PC and confirm the debugging permission.
ADB Tools
adb shell settings put global device_provisioned 1
adb shell pm uninstall -k --user 0 com.android.keyguardReset the device.
What if the ADB canβt see the device?
β οΈ Warning: Once this command is executed, the lock setting will disappear from the menu. To return it, you will need to reset the settings to the factory or manually reinstall the system application com.android.keyguard via the device. ADB team:
adb shell cmd package install-existing com.android.keyguardPros of the method:
- β Complete removal of the lock (even a swipe is not required).
- β Doesn't require root rights.
Cons:
- β Risk of βbrickingβ with incorrect command input.
- β It doesnβt work on some custom firmware.
- β Could disrupt the services of Google and Xiaomi.
| Xiaomi model | Support ADB-method | Notes |
|---|---|---|
| Redmi Note 10/11 | β Yes. | Requires MIUI 12.5+ |
| Poco F3/F4 | β Yes. | Global firmware is stable |
| Xiaomi 12/13 | β οΈ Partially. | You may need to disable MIUI Optimization in the developer settings |
| Black Shark 4/5 | β No. | Uses a modified shell |
Method 3: Delete system lock files (root required)
For users with unlocked bootloaders and root rights (such as Magisk), the most radical method available is to delete the system files responsible for blocking, which is guaranteed to remove the lock screen, but has maximum risks, suitable for experienced users who are ready for possible failures.
Instructions:
- Install a file manager with root support (such as Root Explorer or Solid Explorer).
- Cross the path: /system/priv-app/MiuiKeyGuard/ or (for new versions) MIUI): /system/system_ext/priv-app/Keyguard/
- Delete or rename files: MiuiKeyGuard.apk Keyguard.apk (if any)
Reset the device.
π‘
Before deleting files, back them up to the cloud or PC, which will help restore the lock if something goes wrong.
β οΈ Note: On some devices (Xiaomi 13 Ultra, Redmi) K60) Lock files can be protected by dm-verity, and deleting them will result in a cyclic bootloop, which requires you to reflash the device via Fastboot.
An alternative option for root users is to freeze the locking app through Magisk or Titanium Backup, which is less risky than deleting, and makes it easy to get it back.
- Open Magisk. β Modules.
- Install the Disable Force Encryption module (if the device is encrypted).
- Use Titanium Backup to freeze com.android.keyguard.
Installation process:
- Unlock the bootloader through the Mi Unlock Tool (requires a wait of 7-14 days for new accounts).
- Install custom Recovery (TWRP or OrangeFox).
- Sweep through the selected firmware and GApps (if you need Google services).
- In the new firmware settings, select Security β Screen Lock β No.
β οΈ Warning: Installing custom firmware permanently removes the device from warranty and may result in loss of features specific to the device MIUI (In addition, some firmware (such as LineageOS) does not support encryption on older devices (Redmi Note 8, Mi 9), making them vulnerable to data theft.
The advantages of custom firmware:
- β Full control of the system.
- β Regular security updates (unlike older versions) MIUI).
- β Ability to fine-tune the interface.
Cons:
- β Difficulty of installation for beginners.
- β Risk of data loss in case of incorrect firmware.
- β Not all of Xiaomiβs features will work, for example, IR Blaster or Quick Apps).
Alternative solutions: how to make the unlock as fast as possible
If a complete lock-off seems too risky, consider alternative ways to speed up unlocking:
- π Smart Lock β automatically disables protection in trusted places (home, work) or when connected to trusted devices (such as Mi Band smartwatches). β Passwords and security β Smart Lock.
- π Unlocking by gesture - on some models (Xiaomi) 12T, Redmi K50 Gaming) supports double tap unlocking on the screen. β Lock screen β Additionally.
- π Quick fingerprint unlock β if your device supports fingerprint scanner, set it to instantly activate without pressing the power button (in the fingerprint settings, enable the option βUnlock when touching").
For owners of devices with AMOLED-screens (Xiaomi 13 Pro, Redmi) K60 Pro) will be useful function Always on Display (AOD). It displays time and notifications on the screen off, allowing you to avoid fully unlocking to check the information. β Screen. β Always On Display.
π‘
Smart Lock is the safest way to speed up unlocking without risking data, and works on all devices with MIUI 11 and up.
If you are annoyed by notifications on the lock screen, you can turn them off separately:
- Go to Settings β Notifications β On the lock screen.
- Choose Do Not Show Notifications or Hide Content.
Possible problems and solutions
When you turn off or modify the lock screen, the following problems may occur:
| Problem. | Reason. | Decision |
|---|---|---|
| Phone will not turn on after Keyguard.apk is deleted | Encryption is broken or a critical system file is deleted | Fastboot Fastboot with the Mi Flash Tool |
| Banking applications are not working | System integrity is broken (SafetyNet not passed) | Install Magisk + Universal SafetyNet Fix |
| Swipe is not saved after restarting | The βDevice Protectionβ function in the Mi Account is active | Disable in Settings β Xiaomi Account β Device Protection |
| Google Pay is no longer working. | No screen lock (security requirement) | Return the minimum lock (e.g. swipe) or use alternative payment systems |
If after locking the device stopped booting, try the following steps:
- Press the Power button + Volume up to log into the Fastboot.
- Connect your phone to your PC and execute the command: fastboot flash recovery twrp.img (where twrp.img is the recovery file for your model).
- In TWRP, backup the system partition and restore the original lock files.
β οΈ Note: If you sell or transfer a device to another person, be sure to return the standard lock. Without it, the new owner will not be able to link his Mi Account, and some features (for example, Find Device) will not be available.