How to remove a PIN code on Xiaomi: from simple to radical

Forgot the PIN on Xiaomi or just want to disable it? This problem is familiar to many owners of Redmi, POCO or Mi smartphones - especially after a long break in use of the device. Fortunately, there are several ways to unlock, and not all of them require a factory reset.

In this article, we will discuss 5 working methods, from standard disabling through settings to radical solutions like Hard Reset or using ADB. Each method is illustrated with screenshots (for current versions of MIUI 12-14) and accompanied by warnings about possible risks. Importantly, some methods lead to data loss, so first check if your Mi Account is connected - this can save photos and contacts.

If you're reading this article on a locked phone, don't despair. Even without access to the screen, there are unlock options (see the Mi Account Restore section). And if the phone is dead and doesn't turn on, charge it to at least 20% first, otherwise the system may not allow you to reset.

1. Standard PIN deactivation through settings

The easiest way is if you know the current PIN and have access to the phone menu, which works on all Xiaomi models, including the Redmi Note 10/11/12, POCO X3/X4/X5 and the flagship Mi 11/12/13.

Instructions:

  • πŸ“± Open Settings (cog icon on the main screen).
  • πŸ”’ Go to Passwords and Security β†’ Screen locking.
  • πŸ“ Enter the current PIN code when the system requests confirmation.
  • ❌ Click Remove PIN (or Disable in older versions) MIUI).
  • βœ… Confirm the action - the blockage will be removed.

If you don't have a PIN Remove, you've got a pattern lock or fingerprint on your phone as your primary unlock method, in which case you'll first delete the alternatives (in the same menu) and then try again.

β˜‘οΈ Preparation for PIN deactivation

Done: 0 / 4

⚠️ Attention: On some firmware MIUI After disabling the PIN, the system may require you to install a new locking method (e.g., a pattern lock).To remove the protection completely, select No in the confirmation window.

2. reset the PIN code through Mi Account (if you forgot the code)

If you don't remember a PIN, but your phone is linked to a Mi Account, you can use the Find Device feature, which only works under the following conditions:

  • 🌐 The phone is connected to the Internet (Wi-Fi or mobile network).
  • πŸ“± Find the device has been activated in the settings.
  • πŸ”‘ Remember the username and password from Mi Account.

Step-by-step:

  1. From your computer or other phone, go to i.mi.com and log in.
  2. Select the locked device in the list (if there are several).
  3. Press Find the device. β†’ Unlock.
  4. Confirm the action via SMS or email (confirmation code will come).
  5. Wait for notification of successful reset – the PIN code will be deleted.

If the site produces an error "Device is offline" - check the phone's connection to the Internet. Sometimes it helps to restart the router or turn on data transfer to the Internet. SIM-map.

What to do if your Mi Account is not tied?
If you haven’t added an account to your phone, this method won’t work, so you’ll only have options with Hard Reset (see section 4) or contacting Xiaomi’s service center with proof of purchase.

3.Use of Recovery Mode for PIN Reset (without data loss)

This is a good way to do it if you don't remember a PIN, but Mi Account isn't tied or working. It uses Recovery Mode, a special recovery mode built into MIUI firmware. Importantly, it doesn't erase data, but it requires confirmation through a Mi Account (if it was added earlier).

How to log in to Recovery Mode:

  1. Turn off the phone (press the power button and select Turn off).
  2. Press Volume Up + Power at the same time and hold for 10-15 seconds until the Mi logo appears.
  3. Release the buttons and you will see the menu in English or Chinese.

Further action:

  • πŸ”§ Choose Wipe & Reset β†’ Wipe All Data (this will NOT delete files, but will only reset the lock settings).
  • πŸ”‘ If you have a request to enter a password from Mi Account – enter it.
  • βœ… After the reboot, the PIN code will be removed.

⚠️ Note: On some models (Redmi) 9A/9C, POCO M3) This method may not work because of the stripped down version of Recovery.

πŸ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
POCO X3/X4/X5
Mi 11/12/13
Another model

4.Full reset (Hard Reset) - a radical method

Hard Reset is an extreme measure that removes all data from your phone, including photos, messages and apps. Use it only if other methods have not worked. The method works on all Xiaomi models, but requires confirmation through Mi Account (if an account was linked).

Instructions for Hard Reset:

  1. Turn off the phone.
  2. Press Volume Up + Power to enter Recovery Mode.
  3. Select Wipe Data β†’ Wipe All Data (use volume buttons for navigation, power buttons for confirmation).
  4. Confirm the reset - the phone will restart and return to factory settings.

After discharge:

  • πŸ“± The phone will offer to configure it as new.
  • πŸ”‘ The PIN will be deleted, but all data (photos, contacts, messages) will disappear forever.
  • πŸ”„ If you were tied Mi Account, after reset, you will need to enter its data to activate the phone.
Xiaomi modelSupports Hard ResetRequires Mi Account after reset
Redmi Note 10/11/12βœ… Yes.βœ… Yes, if he was tied up)
POCO X3/X4/X5βœ… Yes.βœ… Yes.
Mi 11/12/13βœ… Yes.βœ… Yes (required)
Redmi 9A/9C⚠️ Partially (may not work)❌ No (on some firmware)

πŸ’‘

Before Hard Reset, extract SIM-card and memory card – this will speed up the process and reduce the risk of data damage on them.

5. Unlock through ADB (for advanced users)

method ADB (Android Debug Bridge is suitable for those familiar with the command line.It allows you to delete the PIN code without losing data, but requires pre-activation of Debugging by USB If this function wasn't enabled in advance, it won't work.

What you need:

  • πŸ–₯️ A computer with installed Xiaomi drivers and ADB.
  • πŸ”Œ USB-cable (preferably original).
  • πŸ“± Included debugging by USB (Settings β†’ The phone. β†’ Version. MIUI β€” Press 7 times, then return to Additional β†’ For developers).

PIN discharge 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




reboot

If the PIN code remains after the reboot, repeat the procedure or try an alternative command:

adb shell am start -n com.android.settings/.ChooseLockGeneric

⚠️ Attention: Misuse of the right ADB If you're not sure what you're doing, you better use other methods.

πŸ’‘

ADB is the safest way to reset a PIN without losing data, but it only works if USB debugging has been enabled.

6. Contact the Xiaomi Service Center

If none of the methods worked, the official service remains. Xiaomi can unlock the phone if you have:

  • πŸ“„ Check or warranty card (proof of purchase).
  • πŸ†” Passport holder (to confirm identity).
  • πŸ“± Phone with a charge of at least 30%.

Cost of service:

  • βœ… Free – if the phone is guaranteed.
  • πŸ’° 500 to 2000 rubles – if the warranty is over (depending on the model and region).

Where to find a service center:

  • 🌍 Official website: mi.com/global/service
  • πŸ“ Maps. Google/Yandex on request "Xiaomi Service Center [your city]".

Unlock time: usually 1-3 days, but during peak periods (after the holidays) can take up to a week.

Frequently asked questions

❓ Can I remove the PIN code without losing data?
Yes, if you know your current PIN (through settings) or if you have USB debugging enabled (ADB method), Mi Account recovery also helps if your phone is connected to the Internet.
❓ What to do if after Hard Reset phone requires an old PIN?
This means that the phone has activated the function of Protection of Xiaomi account (FRP). Enter the data from the attached Mi Account. If you do not remember the password, restore it to account.xiaomi.com.
❓ Are these methods working on POCO?
Yes, POCO uses the same MIUI firmware, so all of the options are relevant, except for some budget models (POCO C31, POCO M2), where a full Recovery Mode may not be available.
❓ Can you unlock Xiaomi through your Google Account?
No, Xiaomi does not support unblocking through Google (unlike Samsung or Nokia).The only official way is Mi Account.
❓ What to do if the phone is locked after unsuccessful attempts to enter a PIN?
Wait 30 minutes, the system unlocks automatically. If you don't have time, use Hard Reset or Recovery Mode (see sections 3 and 4).