So this morning I woke up and the screen on my phone wouldn't want to light up. I held down the power button, the phone powered on but the screen turned off immediately. I flashed another kernel, reflashed the rom and wiped the cache and dalvik a couple of times before that. Now the baseband version is unknown and I have no IMEI nor MAC address. I flashed miui but it wants me to put in my MI account password but I can't since I have no way to connect to the internet. And to connect to the internet I need to fix the EFS partition. But to do that I need to boot miui properly. So I find myself in this vicious circle. I've deleted setupwizard from system but it still says the device is locked. So my question is: can I flash and old version of miui oreo on top of miui pie because I remember deleting setupwizard worked back in the day? I think it should work because both roms are on ARB4 but I'm afraid I'll brick the phone. I've found this method to fix the IMEI https://www.youtube.com/watch?v=2HAXhL7BGD8 but any help for that too will be greatly appreciated! Thanks in advance 
edit: I've successfully downgraded from pie to oreo but that's as far as I got. I followed this guide https://romprovider.com/2018/05/repair-imei-baseband-redmi-note-5-qcn/ but unfortunately I can't read or write any IMEI data. I can't try it on miui for the aforementioned reasons. I'm stuck, someone please help me! My situation is pretty much the same as this https://forum.xda-developers.com/redmi-note-3/help/stuck-connect-to-network-to-activate-t3708685 but my phone doesn't recognize anything and so I can't get into the phone to try and flash the xqcn file.
edit: I've successfully downgraded from pie to oreo but that's as far as I got. I followed this guide https://romprovider.com/2018/05/repair-imei-baseband-redmi-note-5-qcn/ but unfortunately I can't read or write any IMEI data. I can't try it on miui for the aforementioned reasons. I'm stuck, someone please help me! My situation is pretty much the same as this https://forum.xda-developers.com/redmi-note-3/help/stuck-connect-to-network-to-activate-t3708685 but my phone doesn't recognize anything and so I can't get into the phone to try and flash the xqcn file.
Last edited: