Unlock MI Pattern Lock Without Losing Data
In this article
Forgot your MI (Xiaomi, Redmi, POCO) pattern lock? The standard fix—factory reset—wipes everything. But there are several methods that can unlock your phone while keeping your photos, contacts, apps, and files intact. This guide walks through each option, from Google account recovery to using Mi Cloud, ADB commands, and third-party tools. You'll need your Google credentials, a PC (for some methods), and patience. Follow the steps in order—the least destructive first.
What You'll Need
- Your Google account email and password (the one synced on the phone)
- Mi account credentials if you have Find My Device enabled
- A PC with internet access (for ADB and third-party tools)
- USB debugging previously enabled on the phone (for ADB method)
- USB cable
Step-by-Step
Method 1: Google Account Recovery (Android 4.4 and older)
- On the lock screen, enter any wrong pattern 5 times.
- Tap Forgot pattern that appears.
- Enter your Google account email and password.
- Follow the on-screen prompts to reset the pattern.
Note: This method only works on older Android versions. On MIUI 12 and newer, it's usually unavailable.
Method 2: Mi Account / Find Device
- Go to i.mi.com on a computer or another phone.
- Log in with the Mi account that was synced on the locked phone.
- Select your device from the list.
- Click Find Device → Lock.
- Set a temporary numeric PIN (e.g., 1234).
- On the phone, enter that PIN instead of the pattern.
- Go to Settings → Lock screen & password → Change password, and set a new pattern.
This works only if the phone is connected to the internet and Find My Device is enabled.
Method 3: ADB Command (USB Debugging must be ON)
- Install ADB tools on your PC (search for "platform-tools" from Android developer site).
- Enable USB debugging on the phone (if not already). If you can't unlock, this won't work.
- Connect the phone to PC via USB.
- Open a command prompt in the ADB folder and type:
adb devices - If your device shows as unauthorized, you'll need to confirm the RSA prompt on the phone—unlikely if locked.
- If authorized, type:
adb shell rm /data/system/gesture.key(orlocksettings clear --old 0on newer Android). - Reboot the phone. The pattern should be gone.
This is rare because USB debugging is usually off by default.
Method 4: Third-Party Unlock Tools (e.g., Dr.Fone, iMyFone LockWiper)
- Download a reputable Android unlock tool on your PC.
- Install and launch it.
- Select Unlock Screen Lock (not data eraser).
- Connect your MI phone via USB.
- Follow the on-screen instructions—it may put the phone in Download mode.
- Wait for the tool to remove the pattern. Data is preserved in most cases.
Method 5: Safe Mode (if a third-party app is causing the lock)
- Press and hold the power button.
- Tap and hold Power off until the Reboot to safe mode prompt appears.
- Tap OK. The phone restarts with third-party apps disabled.
- If the pattern disappears, uninstall the problematic app.
Common Mistakes
- Using the wrong Google account: The account must be the one that was previously synced on the phone.
- Entering too many wrong patterns: After 5 attempts, the phone locks you out for 30 seconds; after more, it may force a factory reset.
- Assuming USB debugging is on: Most users never enabled it, so ADB won't work.
- Downloading sketchy tools: Many "free" tools are malware or actually wipe data.
- Disabling Find My Device: If it's off, Mi Cloud method fails.
Tips
- Always keep Find My Device enabled—it's your best safety net.
- Regularly back up your phone to Mi Cloud or Google Drive.
- Write down your pattern and store it securely.
- If you use a third-party tool, choose one with a free trial and good reviews.
- Try the least invasive method first (Mi Cloud) before resorting to tools.
Troubleshooting
- "Forgot pattern" doesn't appear: Your Android version is too new. Skip to Mi Cloud or third-party tools.
- Mi Cloud says "Device offline": The phone has no internet. Wait for it to connect, or use a tool that works via USB.
- ADB says "device unauthorized": You didn't accept the RSA prompt before locking. Only solution is a tool that bypasses this.
- Third-party tool fails: Ensure you have the latest version and proper drivers installed. Try a different USB port.
- Phone reboots to recovery: Some tools put it in a special mode. If it gets stuck, hold power for 10 seconds to restart.
- Data loss after using a tool: Some tools do erase data despite claiming not to. Always back up first if possible.
Frequently Asked Questions
Will these methods work on any MI phone?
Most work on Xiaomi, Redmi, and POCO devices running MIUI. However, newer models may block some methods (like Google recovery).
Do I need to root my phone?
No. All methods above work without root.
Can I unlock without a PC?
Yes, if you have internet and Mi Cloud enabled. Otherwise, a PC is required for ADB or third-party tools.
What if I never synced a Google or Mi account?
Then the only option is a factory reset (data loss) or a professional service.
Is it legal to use third-party unlock tools?
Yes, for your own device. Using them on someone else's phone without permission is illegal.
How long does the process take?
Mi Cloud takes 5-10 minutes. Third-party tools can take 10-30 minutes. ADB is instant if it works.