{% include alerts/warning.html content="Make sure to download exact firmware for your model. You can discern your model from Settings > About phone > MIUI version (Eg: In MIUI version V13.0.6.0 SKHMIXM 'MI' represents your phone region, which is Global). You can also verify your Xiaomi phone at [official site](https://www.mi.com/global/verify)." %}
{% include alerts/tip.html content="Some devices might have buggy USB support while in bootloader mode, if you see `fastboot` hanging with no output when using commands such as `fastboot getvar ...`, `fastboot flash ...` you may have to try a different USB port (preferably a USB Type-A 2.0 one) or use a USB hub." %}
1. Extract firmware files from zip using [payload-dumper-go](https://github.com/ssut/payload-dumper-go)
```
payload-dumper-go -o . miui_*.zip
```
2. Power off the device, and boot it into bootloader mode
{% include alerts/tip.html content="It is highly recommended to have the latest official MIUI dev package installed on the device, before proceeding with unlock." %}
1. Create a Mi account on [Xiaomi’s website](https://global.account.xiaomi.com/pass/register).
1. Add a phone number to your Mi account.
1. Insert a SIM into your phone.
1. Enable developer options in `Settings` > `About Phone` by repeatedly tapping `MIUI Version`.
1. Link the device to your Mi account in `Settings` > `Additional settings` > `Developer options` > `Mi Unlock status`.
1. Download the [Mi Unlock app](https://en.miui.com/unlock/download_en.html)(Windows is required to run the app).
1. Run the Mi Unlock app and follow the instructions provided by the app. **It may tell you that you have to wait up to 30 days.** If it does so, please wait the quoted amount of time before continuing to the next step!
1. After device and Mi account are successfully verified, the bootloader should be unlocked.
1. Since the device resets completely, you will need to re-enable USB debugging to continue.
> A Mi account is required to apply for permissions. You don’t need to re-apply for permissions to unlock new devices, but beware that one account is only allowed to unlock one unique device every 30 days.