First, you need to download Mi flash tool and Mi account flash rom

Download Mi flash tool install driver drivers issue. 
extract firmware and flash tool
open mi flash tool clicks on button select and selects extracted files.
now put your mi device in Edl mode. and flash your device.
Now not disturb while on the file installing in the background
Approximate 01 minutes to update device
You have unlocked your mobile phone.
After flashing your device will Remove usb cable and reconnect battery press power button 
it will take more time to a start-up because all file will be run after installation by computer.  

Mi Flash Tool

Mi A2 jasmine_ Mi account By Softichnic

Dear Xiaomi Authority,
My self softichnic, a Xiaomi phone user. Now I am using Xiaomi Redmi 4x 32/3 GB Qualcomm Snapdragon version. I have accidentally deleted my Mi Account without log out from my device. After restart my device got stuck in a screen which is saying "This device is associated with an existing Mi account ID". But I can not able to reset password as the account is deleted.

How to change recovery phone number or email address
To change the recovery phone number or email associated with your Mi Account, sign in at and select the Security tab. Click the Change button to the right of your Recovery phone number or email address. Enter your Mi Account password and verify your new phone number or email according to the instructions on the screen.
Click "Change" ——> Verify account ——> Set new phone or email ——> Complete
Recovery phone & email
To keep your account safe and to provide an alternate way for you to verify your account, we require that you associate your account with a valid email address or phone number. You can change this information anytime in the Security tab at
Keep in mind, once this information has been changed, the previous email address or phone number will no longer be associated with your account