Let me tell my story,
My friend gave me an old xiaomi note 4g
which was stuck at the MI icon on boot,
Luckily the phone did not lock boot-loader
So I use xiaomi flash rom to flash global room , it worked after i tried sometimes.
Then I booted to the phone, and other problem came, the phone was linked with an Mi Account , and my friend forgot everything about it
not email, no phone number
I did a search and they said the only way to bypass the MiAccount is using a Resurrection ROM or balallala
so I ended up with using
1. fastboot to install twrp
2. open twrp --> open adb sideload mode.
3. Open window command line and install Resurrection ROM though adb sideload
While installing rom though adb slideload , i got the same issue with topic
SO i cleared data and tried again,
IT WORKED , NO MORE ****ING MiAccount
THANK a lot