I messed up android partition with TWRP
Find a rom made specifically for your device here
https://forum.xda-developers.com/mi-a2-lite

Then use this to unlock your bootloader &amp; flash a new boot.img recovery &amp; rom  https://forum.xda-developers.com/mi-a2-lite/development/tool-tool-one-driversunlocktwrpfactory-t3866191

Warning unlocking bootloader will wipe all your files.
Also make sure to flash g-apps. You can search "opengapps" and your os to find the ones you need.