How to Unlock a Xiaomi Phone: Step-by-Step
This guide covers the different ways to unlock a Xiaomi phone, from removing a forgotten PIN, pattern, or password to bypassing a Google FRP (Factory Reset Protection) lock after a reset. You will learn the exact steps for each method, what you need before starting, and how to avoid common pitfalls. The steps apply to current MIUI and HyperOS versions on most Xiaomi, Redmi, and POCO devices.
What You’ll Need
- The Xiaomi phone that is locked.
- A computer with an internet connection (for methods that use Mi Unlock or ADB).
- A USB cable that supports data transfer (not just charging).
- Your Google account credentials (for FRP bypass).
- Your Mi account credentials (for Mi Unlock).
- Backup of your data if possible – unlocking often erases everything.
Step-by-Step
Method 1: Unlock with Your Google Account (forgot PIN/Pattern/Password)
- On the lock screen, enter any wrong PIN, pattern, or password five times.
- After the fifth attempt, a “Forgot password” or “Forgot pattern” option should appear at the bottom of the screen. Tap it.
- You will be asked to sign in with the Google account that was previously synced on the phone.
- Enter your Google account email and password, then tap “Sign in”.
- Once signed in, you will be prompted to set a new PIN, pattern, or password. Choose one and confirm.
- Your phone will unlock, and you can use it normally. Note: this method only works if the phone has an active internet connection (Wi-Fi or mobile data) and the Google account was added before the lock.
Method 2: Factory Reset from Recovery (when you don’t know the password)
- Power off the phone completely.
- Press and hold the Volume Up button and the Power button simultaneously until the Mi/Redmi logo appears, then release both. This enters Recovery Mode.
- Use the volume buttons to navigate and the power button to select. Choose “English” if prompted.
- Select “Wipe data” (or “Wipe data and cache”).
- Confirm by selecting “Wipe all data” – this will erase all data and remove the screen lock.
- After the wipe, go back and select “Reboot” to restart the phone.
- The phone will restart as a fresh device. You will need to set it up again, and if FRP is enabled, you must enter the Google account that was previously on the phone.
Method 3: Unlock Bootloader with Mi Unlock (for unlocking the bootloader, not screen lock)
- Note: This method is for unlocking the bootloader, which allows flashing custom ROMs. It does not remove a screen lock, but it is often confused with unlocking. Use it only if that’s your goal.
- On your phone, go to Settings > About phone and tap “MIUI version” or “HyperOS version” 7 times to enable Developer options.
- Go to Settings > Additional settings > Developer options.
- Enable “OEM unlocking” and “USB debugging”.
- Sign in to your Mi account on the phone (Settings > Mi Account).
- On your computer, download the Mi Unlock tool from Xiaomi’s official site (search “Mi Unlock” on Xiaomi’s official site).
- Install and run the Mi Unlock tool. Sign in with the same Mi account.
- Power off the phone, then press and hold Volume Down + Power to enter Fastboot mode.
- Connect the phone to the computer via USB.
- In the Mi Unlock tool, click “Unlock”. The tool will check for permissions – you may need to wait up to 7 days (or longer) if your account is new or hasn’t been approved.
- Once the unlock is successful, the phone will reboot and the bootloader will be unlocked. This wipes all data.
Method 4: Bypass FRP (after factory reset, when asked for Google account)
- This method is for bypassing the Google FRP lock that appears after a factory reset. It requires that the phone can connect to Wi-Fi.
- On the “Verify your account” screen, tap “Skip” if available – sometimes it works.
- If not, connect to a Wi-Fi network. When the network selection appears, tap the network and then tap the “Settings” icon (gear) next to it.
- In the settings, tap on “Proxy” and set it to “Manual”. In the “Server” field, type
www.google.com(or a similar trick) and in “Port” type80. Save. - Go back and tap “Connect”. The phone may try to load a page – if it fails, you can sometimes get to a browser or settings menu.
- Alternatively, use a USB keyboard (via OTG) to enter the Google account credentials if you know them. The most reliable way is to enter the correct Google account that was previously on the phone – that will unlock it immediately.
- If you don’t know the credentials, you may need to use a third-party FRP bypass tool (not covered here) – but these are not guaranteed and may violate Google’s terms.
Common Mistakes
- Entering the wrong recovery combination: On some Xiaomi devices, the recovery key is Volume Up + Power, but on others it may be Volume Down + Power. Check your specific model.
- Not backing up data: Factory reset and bootloader unlock erase everything. Always back up if possible.
- Using a charging-only USB cable: Many cables don’t support data transfer, so the computer won’t detect the phone.
- Attempting FRP bypass without the correct Google account: Most bypass methods are unreliable and may not work on newer versions. The only sure way is to use the original Google account.
- Unlocking bootloader when you only want to remove screen lock: Bootloader unlock doesn’t remove the screen lock and can void warranty.
Tips
- Always try the “Forgot password” option first – it’s the least destructive.
- If you plan to unlock the bootloader, do it early – Xiaomi requires a 7-day wait for new Mi accounts.
- Keep your Mi account and Google account credentials in a safe place – they are the keys to your device.
- After a factory reset, set up a new screen lock but also enable “Find My Device” so you can unlock remotely if you forget again.
- If you’re selling a phone, always remove your Google and Mi accounts before resetting to avoid FRP lock.
Troubleshooting
- “Forgot password” doesn’t appear: This option only appears after multiple wrong attempts. Try entering wrong PINs until it shows. If it still doesn’t, you may need to factory reset.
- Phone is not entering recovery mode: Try different button combinations (Volume Up + Power, Volume Down + Power, or just Power for some models). Also ensure the phone is fully powered off, not just screen off.
- Mi Unlock tool says “Account not authorized”: You must wait for Xiaomi’s approval – this can take up to 7 days. Ensure you’ve used the same Mi account on the phone for at least 30 days.
- FRP bypass fails: The proxy trick often doesn’t work on newer Android versions. Try using a different Wi-Fi network or a different device to sign in to your Google account and verify it’s correct.
- Phone stuck in bootloop after unlocking bootloader: Re-flash the stock ROM using Mi Flash Tool. This will restore the phone to working state.
- Forgot Mi account password: Reset it via the Mi account website using the email or phone number associated with the account.
Frequently Asked Questions
Will unlocking the bootloader delete my data?
Yes, unlocking the bootloader via Mi Unlock wipes all data on the phone. Back up everything important before proceeding.
Can I unlock a Xiaomi phone if I bought it second-hand and the previous owner’s Google account is still linked?
You will need the previous owner’s Google account password to bypass FRP after a reset. If you don’t have it, contact the seller to remove the account remotely via Google’s Find My Device, or ask for the credentials.
Is it illegal to unlock a Xiaomi phone?
Unlocking your own phone is generally legal in most countries, but it may void the warranty. Unlocking a phone that is not yours (e.g., stolen) is illegal.
How long does it take to unlock the bootloader?
After applying for permission, Xiaomi usually requires a 7-day waiting period. The actual unlock process takes only a few minutes once approved.
What is the difference between screen lock unlock and bootloader unlock?
Screen lock unlock removes the PIN/pattern/password so you can access the phone. Bootloader unlock allows you to install custom firmware and is a deeper system-level unlock. They are separate processes.
Can I unlock a Xiaomi phone without a computer?
Yes, for screen lock removal you can use the “Forgot password” option or factory reset from recovery – both are done on the phone itself. Bootloader unlock requires a computer.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.