Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.
Likely causes
- Find Device was on and the Mi Account was not signed out before the reset
- The Mi Account password is forgotten
- The phone number or email linked to the account is no longer in use
Steps you can try
Did that fix it?
Great! If the code comes back, repeat the same steps from the start.
If the steps didn't help, don't push further. See the help section below.
When to get help
If you cannot recover the account, only Xiaomi service can help, and only with proof of purchase; the final decision belongs to the service centre. Avoid shops or online tools that offer to “remove” the Mi Account lock; they are unofficial and may be illegal or damage the phone.
Differences between versions
To avoid this, sign out of the Mi Account and Google account before selling, giving away or resetting a phone. Options on Xiaomi's account sites can differ by region, and if your country is not in the unlock application list, go straight to Xiaomi service.
Sources
This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.