Hello experts,
I have same problem.
My phone was rooted and bootloader unlocked.
As I saw that android pie is available by OTA, I wanted to lock my phone in order to receive update (by OTA).
So for that, I use command (fastboot oem lock). My MI A1 is now locked but i can't boot on it.
I guess the option 'OEM Unlock' is not ticked, that's why I can't install or flash any rom with Miflash.
I have message error : "failed (remote: oem unlock is not allowed)"
I tried a lot of advices found on different forums but none of them works.
If you have any idea how to solve my issue, you are welcome.
Thanks guys !