offici5l / MiUnlockTool

MiUnlockTool developed to retrieve encryptData(token) for Xiaomi devices for unlocking bootloader, It is compatible with all platforms.
Apache License 2.0
291 stars 18 forks source link

(remote: 'Token Verify Failed, Reboot the device') #13

Closed offici5l closed 5 months ago

offici5l commented 7 months ago

(remote: 'Token Verify Failed, Reboot the device')

The solution is (if the data has not been automatically refreshed by the device to Xiaomi servers... synchronization):

Explanation of the reason behind "Token Verify Failed," according to my analysis:

When a request is sent to the Xiaomi server through the "Mi Unlock status" in developer settings, multiple pieces of data, including SIM card data, are sent.

The "Token Verify Failed" issue occurs due to removing the SIM card from the device or replacing it with another card after linking the account in developer options. Consequently, upon restarting the device, the device's data will be updated, meaning it won't contain the SIM card data initially sent to the Xiaomi server. As a result, when attempting to unlock the bootloader via the tool, the server will send an unlock token based on the initial data, leading to conflicting information and resulting in the "Token Verify Failed" error.

notice : 

To avoid this error in the future, please refrain from removing the SIM card from the device until the bootloader is successfully unlocked.