I have installed Twrp recovery on my Mi4i.
When I flash a new ROM and restart the device, it completes the Android is upgrading process.
But once the finishing boot screen appears, the phone automatically freezes and shuts down.
After restarting the phone I get the Language selector screen of initial setup process,but that also freezes in some seconds.
In short the custom ROM is flashed properly but i could not go with the setup process.
When I flash the official Miui ROM it does not give me any trouble and the phone works perfectly fine.
When I flash a new ROM and restart the device, it completes the Android is upgrading process.
But once the finishing boot screen appears, the phone automatically freezes and shuts down.
After restarting the phone I get the Language selector screen of initial setup process,but that also freezes in some seconds.
In short the custom ROM is flashed properly but i could not go with the setup process.
When I flash the official Miui ROM it does not give me any trouble and the phone works perfectly fine.