How to completely disable the lock screen on Xiaomi: all the ways and consequences

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:

  1. Open the Settings. β†’ Passwords and security.
  2. Select Screen Lock.
  3. Enter the current password/pattern lock.
  4. In the list of blocking methods, select Swipe (may be called "No" or "No lock" on some versions).
  5. Confirm the action.

β˜‘οΈ Preparation for changing the lock

Done: 0 / 4

⚠️ 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.

πŸ“Š What kind of locking method are you using now?
Password.
pattern lock
Fingerprint.
Face.
swipe
Other

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:

  1. 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.keyguard

Reset the device.

What if the ADB can’t see the device?
Make sure you have Xiaomi drivers installed (you can download it on the official website). USB-Cable (original) Include the option "Allow debugging by USB (safe-haven)".

⚠️ 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.keyguard

Pros 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 modelSupport ADB-methodNotes
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:

  1. Install a file manager with root support (such as Root Explorer or Solid Explorer).
  2. Cross the path: /system/priv-app/MiuiKeyGuard/ or (for new versions) MIUI): /system/system_ext/priv-app/Keyguard/
  3. 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.

  1. Open Magisk. β†’ Modules.
  2. Install the Disable Force Encryption module (if the device is encrypted).
  3. Use Titanium Backup to freeze com.android.keyguard.

Installation process:

  1. Unlock the bootloader through the Mi Unlock Tool (requires a wait of 7-14 days for new accounts).
  2. Install custom Recovery (TWRP or OrangeFox).
  3. Sweep through the selected firmware and GApps (if you need Google services).
  4. 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:

  1. Go to Settings β†’ Notifications β†’ On the lock screen.
  2. 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 deletedEncryption is broken or a critical system file is deletedFastboot Fastboot with the Mi Flash Tool
Banking applications are not workingSystem integrity is broken (SafetyNet not passed)Install Magisk + Universal SafetyNet Fix
Swipe is not saved after restartingThe β€œDevice Protection” function in the Mi Account is activeDisable 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:

  1. Press the Power button + Volume up to log into the Fastboot.
  2. 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).
  3. 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.

FAQ: Frequent questions about screen locking on Xiaomi

Can I turn off the lock on Xiaomi without a computer?
Yes, but only up to the swipe level. Complete shutdown requires either ADB (you need a PC) or root rights. Without a computer, you can: Set the swipe in lock settings. Use Smart Lock to automatically unlock in trusted places. For models with MIUI 14 and later, there is sometimes a workaround through Settings β†’ Special Features β†’ Gesture Management β†’ Skip lock, but this method is unstable.
Why did the fingerprint and facial recognition stop working after the lock was turned off?
Biometrics are linked to the Keyguard system application. When it is deleted or disabled: All stored fingerprints and facial data are erased. The scanner functions become unavailable until the lock is restored. To return the biometrics, you need to: Restore Keyguard.apk (if deleted). Reset the lock settings in Settings β†’ Passwords and security. Add fingerprints / face again.
Will Xiaomi Pay work without locking the screen?
No. Xiaomi Pay (like Google Pay) requires at least minimal protection (swipe, PIN or password) to meet PCI DSS security standards. If the lock is completely disabled: Xiaomi Pay will show the error "Device not secure." Adding new cards will become impossible. Already added cards can be blocked by the bank. Solution: return at least the swipe or install a simple pattern lock.
How to return the screen lock after it is turned off via ADB?
If you use the command adb shell pm uninstall -k --user 0 com.android.keyguard, you can return the lock in two ways: ADB: adb shell cmd package install-existing com.android.keyguard Then restart the device and set the lock again. Through Settings Reset: Go to Settings β†’ The phone. β†’ Settings reset. Select Reset all settings (does not delete data, but returns lock). If none of the methods work, you will need a full reset to factory settings (Settings) β†’ Additionally. β†’ Recovery and discharge).
Can you disable the lock on Xiaomi with Corporate Policy (MDM)?
No, if the device has a profile. MDM (Mobile Device Management, the administrator can block the ability to change the security settings. In this case: The option Lock the screen will not be available for editing. ADB The only way out is to delete the corporate profile (if you have administrator rights) or contact the IT-Company service, trying to get around MDM-Restrictions may result in device locking or corporate data deletion.