How to open Xiaomi 9T: unlock the screen, account Mi and bootloader

Xiaomi Mi 9T (also known as the Redmi K20 In some regions, a popular smartphone with AMOLED-A display and retractable front-facing camera released in 2019, and despite being reliable, users often face unlocking problems: a forgotten pattern lock, a blocked Mi Account after a reset, or the need to unlock a bootloader to install custom firmware. In this article – current ways to unlock Xiaomi 9T 2026, including official and alternative methods.

It is important to understand that the methods of unlocking depend on the type of lock:

  • πŸ”’ Screen lock (PIN, Password, pattern lock – requires resetting or bypassing Fastboot/Recovery.
  • πŸ“± Mi Account – a binding to a Xiaomi account that blocks the device after a reset.
  • πŸ”§ Bootloader – unlocking to install unofficial software (requires permission from Xiaomi).

Before you start, check:

  • βœ… Is there a backup of data (unlocking often leads to its loss).
  • βœ… Is the smartphone at least 50% charged (the process can take up to an hour).
  • βœ… Is the original cable at hand? USB Type-C and computer with Windows/Linux.

πŸ“Š What kind of blockage did you encounter?
Forgot the pattern lock/PIN
Mi Account blocked
I need to unlock the bootloader.
Other

1. unlock the screen Xiaomi 9T without data loss (if enabled debugging over USB)

If the Xiaomi 9T has previously been activated by USB debugging (Settings β†’ About Phone β†’ MIUI Version β†’ 7 times press to unlock developer mode), you can bypass the screen lock using ADB (Android Debug Bridge).

Step-by-step:

  1. Connect your smartphone to your computer via USB.
  2. Open the command line (Win + R β†’ enter cmd) and execute the commands: adb shell su rm /data/system/gesture.key rm /data/system/password.key rm /data/system/locksettings.db rm /data/system/locksettings.db-wal rm /data/system/locksettings.db-shm reboottings.db-shm
  3. After the reboot, the screen lock will be reset.

⚠️ Attention: If debugging is on USB It wasn't turned on before, it won't work, so you can move on to the full reset.

An alternative option for MIUI 12+ users is to use the Find Device function via i.mi.com.

  • 🌐 Sign in with the same Mi Account as you do on your smartphone.
  • πŸ“ Choose Xiaomi 9T device-list.
  • πŸ”“ Click "Unlock Device" (only works when you are on active internet on your phone).

πŸ’‘

USB debugging should be enabled beforehand. If not, use Recovery or Fastboot reset methods.

2. reset to factory settings via Recovery Mode (data loss)

If USB debugging is disabled and Mi is not tied, the most reliable way is hard resetting via Recovery Mode, which deletes all data, including photos, apps and settings, but is guaranteed to unlock the device.

Instructions for Xiaomi 9T:

  1. Turn off your smartphone (clip Power + Volume up for 10 seconds).
  2. Press Power + Volume up until the Mi logo appears (release buttons when vibrating).
  3. In the Recovery menu, select the language (English / Chinese), then: πŸ”§ Wipe Data β†’ Wipe All Data (complete reset). βœ… Confirm the action (Confirmation).

Reboot β†’ Reboot to System

MethodPC requiredData retainedWorks with the Mi Account
ADB (debugging included)βœ… Yes.βœ… Yes.βœ… Yes.
Recovery Mode❌ No.❌ No.❌ No (requires login after resetting)
Fastboot (Mi Flash)βœ… Yes.❌ No.βœ… Yes (if the firmware is untethered)

⚠️ Attention: If on Xiaomi 9T You've turned on your Mi Account and you've forgotten your login details, and when you reset through Recovery, your phone will need to enter your login/password.

Turn off phone |Plug Power + Volume up |Plug in Recovery |Put in the Recovery menu |Select Wipe Data |Confirm reset-->

3 Unlocking Mi Account on Xiaomi 9T after reset

If Xiaomi 9T requires you to enter Mi Account data after a reset and you don’t remember it, it’s not officially possible to bypass the lock, it’s a protection against theft.

Method 1: Recovering password via email/phone

  • πŸ“§ Go to account.xiaomi.com.
  • πŸ”‘ Click "Forgot your password?" and follow the instructions (access to the linked mail or SMS).
  • πŸ“± After password recovery, enter the data on the phone.

Method 2: Appealing for Xiaomi

  • πŸ“„ Prepare proof of possession of the device (checks, box, IMEI).
  • πŸ’¬ Write in support via the official website or chat in Mi Community.
  • ⏳ Term of consideration - from 3 to 7 days.

Method 3: Bypass the test menu (for firmware up to MIUI 12)

Bypassing your Mi Account through the engineering menu (not working on new firmware)
This method is outdated and does not work on MIUI 13/14, but for older versions: In the activation menu, click Add Wi-Fi Network. Enter any network name, then click and hold the input field text. In the menu that appears, select Share β†’ Bluetooth. Go back and click Bluetooth Settings - this will open system settings. Go to Settings β†’ About Phone β†’ MIUI version and update the firmware to the latest version (sometimes resets the account binding).

⚠️ Note: Use of informal methods of bypassing the account (for example, through the use of SP Flash Tool or modified firmware can lead to blocking IMEI Xiaomi is actively fighting against these methods, updating the protection in new versions of the device. MIUI.

4. Unlock bootloader on Xiaomi 9T for custom software installation

If you need to unlock a bootloader to install TWRP, Magisk or custom firmware (like LineageOS), follow the official procedure from Xiaomi. Since 2026, the rules have been tightened: you now need to link your account to your device and wait 72-168 hours for approval.

Step-by-step:

  1. Tie Xiaomi up. 9T Mi-account: πŸ“± Go to Settings. β†’ Mi Account β†’ Synchronization. πŸ”— Make sure the device is tied (the list should show Redmi). K20/Mi 9T).
  2. Apply for unblocking: 🌐 Go to the en.miui.com/unlock. πŸ“ Fill out the form (phone number and reason for unlocking will be required). ⏳ Wait. SMS confirmatory (usually) 3–7 days).

Mi Unlock Tool

  • πŸ–₯️ Download the Mi Unlock Tool.
  • πŸ”Œ Connect your phone in Fastboot mode (clip the power supply) + Loudness down).
  • πŸ”“ In the program, press Unlock and wait for completion.

Requirements for successful unlocking:

  • πŸ“… The Mi Account must have been created at least 30 days ago.
  • πŸ“± The device must be linked to the account for at least 7 days.
  • πŸ”‹ Battery charge - at least 60%.
  • πŸ”§ The phone should have an official firmware (not custom).

  1. The Mi Unlock Tool (should be the last version)
  2. Active Internet connection on PC.
  3. Lack of Chinese firmware (unlocking is often impossible on them).

-->

5. Alternative Unlocking Methods (for Power Users)

If the official methods don't work, you can try alternative methods, which require technical skills and carry risks, but sometimes save in desperate situations.

Method 1: Fastboot (Mi Flash)

  • πŸ–₯️ Download the official firmware for Xiaomi 9T (codename davinci from Miui Download.
  • πŸ› οΈ Install the Mi Flash Tool and Qualcomm Drivers.
  • πŸ”Œ Connect your phone in Fastboot mode and swipe the file flash_all.bat (It'll delete all the data).

Method 2: Using TWRP (if bootloader is unlocked)

  • πŸ”“ If the bootloader is already unlocked, install TWRP Fastboot: Fastboot Flash Recovery twrp.img fastboot boot twrp.img
  • πŸ“ V TWRP reset via Wipe β†’ Format Data (will remove encryption).
  • πŸ”„ Reboot to the system.

Method 3: Bypassing EDL-regime (for β€œbricks")

EDL mode for the restoration of bricks
EDL (Emergency Download Mode – service mode for firmware through Qualcomm. Used if the phone does not turn on or stuck on the logo. πŸ”Œ Connect the phone off to the PC by clamping Volume up + Volume down (needs a special cable or testpoint). πŸ–₯️ In Mi Flash Tool, select firmware and press Flash. ⚠️ Risk: Incorrect firmware can damage IMEI or modules (camera, sensors).

⚠️ Attention: Firmware through EDL Without official permission, Xiaomi can cause the device to be blocked by the IMEI. This method is recommended only for the recovery of broken phones ("bricks").

6. Frequent mistakes and how to avoid them

When unlocking the Xiaomi 9T, users often face typical problems.

Mistake.Reason.Decision
Couldn't unlock the Mi Unlock ToolAccount not tied to device or waiting is not completedWait 7 days from the moment of account linking
Phone is not defined in FastbootThere are no Qualcomm drivers or faulty cablesInstall drivers via Mi Flash Tool or use the original cable
After reset, requires an old passwordThe phone has FBE (File-Based Encryption) encryption enabled.Swipe the full firmware through Mi Flash with a clean all tick
Anti-rollback errorTrying to stitch the old version of MIUI over the newUse only firmware that is newer than the current version

How to avoid problems:

  • πŸ”„ Always check the firmware version before installing (on Xiaomi Firmware Updater).
  • πŸ”‹ Do not interrupt the firmware process (may lead to a brick").
  • πŸ“‘ Use a stable internet connection when unlocking bootloader.

7. Data recovery after unlocking

If you managed to unlock the Xiaomi 9T, but the data was lost, try to restore it:

Recovery methods:

  • πŸ“± Backup of Mi Cloud: If sync is enabled, data (contacts, photos, notes) can be returned via i.mi.com.
  • πŸ’Ύ Local backup: If you did backup through Settings β†’ Additionally. β†’ Backup, connect your phone to your PC and copy files from the folder MIUI/backup.
  • πŸ” Recovery software: Dr.Fone, EaseUS MobiSaver, or DiskDigger can find deleted files (only if the data has not been overwritten).

What is usually not regenerated:

  • πŸ“± Application settings and games (progress).
  • πŸ”‘ Saved passwords in the browser.
  • πŸ“ Files deleted more than a month ago.

πŸ’‘

If you regularly lose access to your phone, set up Smart Lock in Settings β†’ Screen Lock β†’ Smart Lock. This will unlock the device at a trusted location, device or voice.

FAQ: Answers to Frequent Questions

Can I unlock Xiaomi 9T without losing data?
Yes, but only if USB debugging was enabled before, in which case you can use ADB to delete lock files (gesture.key, password.key), if debugging is disabled, the data will be lost when reset.
How long does it take to unlock the bootloader?
Since 2026, Xiaomi has increased the waiting time to 72–168 hours (3–7 days) after filing an application, which used to take 72 hours, but due to increased fraud cases, the rules have tightened.
What if the phone asks for an old password after reset?
This is due to FBE (File-Based Encryption) encryption. Solution: Sweeve the full firmware through the Mi Flash Tool with the clean all option. Or install TWRP and execute Format Data (remove encryption).
Can I bypass my Xiaomi 9T account without official methods?
Technically, yes, but Xiaomi actively blocks such methods. Unofficial methods (via SP Flash Tool or modified firmware) can lead to: IMEI lock. Warranty loss. Brick device. We recommend using only official methods (password recovery or support).
How to check if the bootloader is unlocked on Xiaomi 9T?
Turn off your phone and press Power + Volume down to log into Fastboot. If there's an inscription at the bottom of the screen saying Unlocked or Device is unlocked, bootloader unlocked. If not, locked.