How to completely disable the lock screen on Xiaomi Mi8: 5 proven ways

Lock screen on Xiaomi Mi8 β€” It's not just data protection, it's also a constant inconvenience for those who use a smartphone in a safe home environment, some want to save seconds when unlocking, some want to automatically turn on the screen in their pocket, and some just prefer minimalism. However, the manufacturer did not provide an obvious option to β€œdisable completely” – instead, users are asked to choose between the two. PIN-code, pattern lock or fingerprint.

In this article, we’ll break down all the working methods to remove the lock screen on the Xiaomi Mi8 completely – from standard MIUI settings to hidden commands via ADB. It’s important to understand that some methods require superuser rights (root), others work only on certain versions of the firmware, and still others can reset security settings. We’ll describe each option in detail, its pros, cons and potential risks – so you can choose the best path without unpleasant surprises.

Why can’t you just turn off the lock in the MIUI settings?

Unlike many Android smartphones, where you can choose the β€œNo” option in the lock menu, the Xiaomi Mi8 imposes strict restrictions.

  • πŸ”’ Security policy MIUI: Xiaomi requires at least minimal protection (even if it’s just a swipe).
  • πŸ“± Android Requirements: Starting with version 5.0, Google obliges implement manufacturers to have at least a basic lock for data encryption.

However, circumventing these restrictions is possible, and we will look at legal and semi-legal methods below, from the simplest to the most radical.

⚠️ Warning: Disabling the lock screen removes all privacy protections, and if your phone is stolen or lost, anyone can access photos, correspondence, and payment apps!

Method 1: Install Swipe as the only method of unlocking

The safest and most reversible way is to set up the unlock with a simple swipe, which doesn't remove the lock screen completely, but makes it instantly unlockable, suitable for those who want minimalism without risking security.

Instructions:

  1. Open Settings β†’ Screen lock and password.
  2. Select the screen lock type.
  3. Enter the current password/pattern lock (if installed).
  4. Select the Swipe option (may be called "Swipe" or "No Password").
  5. Confirm your choice.

Now, to unlock, just swipe your finger up the screen. Minus the method: when rebooting the phone, you will need to enter the password from Mi Account (if it is tied).

Make sure you have a backup of the data.|Check if the Mi Account is linked to the device|Remember the password from the Xiaomi account in case of resetting|Turn off the β€œSmart Lock” option in the security settings-->

Method 2: Disable the lock via ADB (without root)

If you are not satisfied with the swipe, you can go further - disable the lock via Android Debug Bridge (ADB). This method does not require superuser rights, but requires a computer and a computer. USB-It works on most versions of the cable. MIUI Xiaomi Mi8 (including MIUI 12/13/14).

Step-by-step:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone. Click 7 times on MIUI until the notification "You're a developer" appears.

USB debugging

  • Back to Settings β†’ Additionally. β†’ For developers.
  • Turn on the debugging switch over USB.
  • Connect the phone to the PC and confirm the debugging permission.
  • Download ADB Tools and unpack the archive.
  • Open the command prompt (cmd) in the ADB folder and type: adb devices Make sure the device is identified (serial number should appear).
  • Execute the command to disable lock: adb shell settings put global lockscreen.disabled 1
  • Reboot your phone: adb reboot

Once you reboot, the lock screen will disappear. To return it back, execute the same command by replacing 1 with 0.

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 from Xiaomi) Include the option "Allow debugging by USB (Safe Mode)" Restart your PC and phone.

⚠️ Note: On some versions MIUI After using this method, you may have problems with notifications or the watch widget on the locked screen. If it is critical, return the settings back through the lock. ADB.

Method 3: Editing settings.db (requires root)

For advanced users who are ready to get root rights, there is a more radical method – direct editing of the system database, which will completely remove the lock screen, including swipe, but will require caution: wrong actions can lead to a bootloop.

What you need:

  • πŸ“± Smartphone with unlocked bootloader and installed Magisk (or other root solution).
  • πŸ’» PC fitted ADB and the SQLite editor (for example, DB Browser for SQLite).
  • πŸ”„ Backup copy of data (required!).

Instructions:

  1. Connect your phone to your PC and open ADB Shell with root: adb shell su Allow root access on your phone.
  2. Back up your database: cp /data/data/com.android.providers.settings/databases/settings.db /sdcard/settings.db.bak
  3. Copy the file to PC: adb pull /data/data/com.android.providers.settings/databases/settings.db
  4. Open settings.db in SQLite Browser and query: UPDATE secure SET value=0 WHERE name='lockscreen.disabled'; If no record, add it: INSERT INTO secure (name, value) VALUES ('lockscreen.disabled', '0');
  5. Save the changes and return the file back: adb push settings.db /data/data/com.android.providers.settings/databases/adb shell chmod 660 /data/data/com.android.providers.settings/databases/settings.db adb shell chown system:system /data/data/com.android.providers.settings/databases/settings.db
  6. Reboot the phone.

If done correctly, the lock screen will disappear completely. To return the standard settings, restore the backup of the settings.db file.

πŸ’‘

Before editing settings.db, export the secure table to a separate file, which will help you quickly restore the settings if something goes wrong.

Method 4: Using the Magisk Disable Lockscreen module

The easiest way for root owners to install a finished module through Magisk, which eliminates manual editing of system files and minimizes the risks.

How to determine:

  1. Make sure that the phone has Magisk installed (check in the Settings menu β†’ About Phone β†’ Magisk version).
  2. Download Disable Lockscreen (available on XDA Developers)
  3. Open Magisk Manager and go to the Modules section.
  4. Click Install from Storage and select the downloaded.zip file.
  5. Reboot the phone after installation.

The module will automatically disable the lock screen, while maintaining the performance of the fingerprint and facial scanner (if they are configured), the main plus is the ability to quickly return the lock by simply removing the module through Magisk.

MethodRoot is required.Risks.ReversibilityCompatibility with MIUI
swipe❌ No.MinimumYes.All versions.
ADB-team❌ No.Medium (notification glitch is possible)Yes.MIUI 10–14
Editing by settings.dbβœ… Yes.High (bootloop risk)Yeah (backup)All versions.
Magisk moduleβœ… Yes.Low.Yes.MIUI 11–14

Method 5: Reset to factory settings (extreme case)

If all previous methods failed (for example, due to custom firmware or bootloader locking), the radical solution remains: a complete reset, which will remove all data from the phone, including passwords and lock settings, but return the device to the state out of the box.

How to reset:

  1. Create a backup of important data (photos, contacts, messages).
  2. Go to Settings β†’ About the phone β†’ Reset settings.
  3. Choose to erase all data.
  4. Confirm the action and wait for the process to be completed.

After resetting the first time you turn on, the Xiaomi Mi8 will offer you to set up the lock, at which point you can choose the option to skip or swipe to avoid entering the password.

  • πŸ”„ After the reset, you will need to re-enter all accounts (Google, Mi Account, etc.).
  • πŸ“± Some system applications (such as Mi Pay) may stop working without being blocked.
  • πŸ”’ If the phone was linked to Mi Account, after reset, you may need to enter a login / password to activate.

⚠️ Warning: On devices with a locked bootloader, resetting will not remove the binding to Mi Account. If you forget your account data, your phone may turn into a brick"!

Swipe as the main way to unlock |ADB-command without root|Edit settings.db (from root)|Magisk Module |Reset to factory settings-->

Frequent problems and their solutions

Even after successfully disabling the lock, Xiaomi Mi8 users face side effects. Let’s look at typical situations and ways to fix them.

Problem 1: After disabling the lock, notifications on the screen do not work

This is a common bug when used. ADB-method:

  • Return the lock with the command adb shell settings put global lockscreen.disabled 0.
  • Reboot the phone.
  • If notifications do not appear, check the settings in Settings β†’ Notifications β†’ On the lock screen.

Problem 2: Phone asks for password after reboot

This is the standard MIUI behavior associated with Mi Account, and you can only circumvent it:

  • Untie your Xiaomi account in the settings (before disabling the lock).
  • Using root methods to remove the anchor (risky!).

Problem 3: Face Unlock or Fingerprint is not working

The biometrics are tied to the locking system, and if you shut it down completely, these functions will become unavailable.

  • Return the swipe unlock.
  • Reconfigure the fingerprint/face in Settings β†’ Screen Lock β†’ Biometrics.

πŸ’‘

Before experimenting with a lock, always check to see if it has any critical features: banking apps, Mi Pay, corporate email, which can be blocked after changes!

Can I turn off the lock on Xiaomi Mi8 without a computer?
Yes, but with limitations. Without a PC, only: Swipe instead of password (see Method 1). Magisk module (requires root). Computer is required to completely disable via ADB or edit settings.db.
Will Google Pay work after blocking?
No. Google Pay and other payment services require screen protection (PIN, pattern lock or password) after the lock is completely disabled: the application will stop accepting payments. notifications may appear about an "unsafe device". Solution: use a swipe (see Method 1) - this retains minimal protection for payment systems.
How to return the lock if after experiments the phone does not turn on?
If after editing system files or installing modules Xiaomi Mi8 hovers on the logo (bootloop): Press Power + Volume up to log in to Recovery. Select Wipe Data β†’ Format Data (this will delete all data!). Reboot your phone. If it does not help, swipe your phone through Fastboot with official firmware (instructions on xiaomiflash.com).
Why did the MIUI update return to lockdown?
Xiaomi regularly closes the "skies" in the firmware. After updating: The method with ADB may stop working (repeat the command). Magisk modules may need updating. editing settings.db is sometimes reset. Solution: before updating, create a backup of the current settings (for example, through TWRP) and be ready to repeat the procedure.
Can I disable the lock on the Mi8 with the bootloader locked?
Yes, but only partially: Swipe (see Method 1) - always works. ADB-Method (see Method 2) – works on most versions MIUI, but may require unlocking OEM Unlock in developer settings. Methods with root (Methods 3-4) on a locked bootloader are not available.