- Once the Stock ROM is flashed check if it is working for e.g receiving and making calls, audio, FMRadio ..
- Next enable developer options on the phone
- Ensure the device bootloader is unlocked. Flashing stock ROM can lock the bootloader on some devices.
> Follow the device unlock guidelines as prescibed by your vendor. For e.g. on Xiaomi devices it would require running the Mi Unlock tool. Since the device was already unlocked the process should take a couple of minutes only.