yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
If i flash stock rom miui 12 via twrp and then, i must flash vbmeta?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] NafiShahriar:
what is the meaning of ' Switched to MIUI 12 blobs"?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] phabet:
running on latest 12.0.1.0 eea fw
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
sorry

if i flash stock rom via twrp, (now i have xiaomi eu beta with miui 12)...i must flash vbmeta or not?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hostek:
in last build all work normal, no reboots or any bugs. thnks
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AcmE85:
Does "ok Google" hotword (voice match) work for you on the latest build?

It stopped for me after the update.

Other than that, perfect build as usual. Luckily I never had any random reboots to date.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Cryonic90:
Tested here, but "ok Google" doesn't seem to work anymore for me either.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] shalabajza:
To everyone that's having bootloops after updating their firmware to MIUI 12 EU, try flashing Chinese firmware, or do what I did and download xiaomi.eu and flash it instead of the firmware before flashing Pixel Experience - I would assume Xiaomi.eu doesn't use EU firmware but Chinese, since I know their builds are based on the Chinese ROM, but I might be wrong. Either way, it's working as intended now, no problems whatsoever!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
Mine is ok !

Please try to redo "voice match" settings

---------- Post added at 05:27 PM ---------- Previous post was at 05:24 PM ----------

YES ! V184+V171 or V184+V170 works but new version of V181 doesn't work !
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] BigsyBiggins:
Theres 100% reboots, if they were fixed I'm sure it would have been in the changelog. If you got reboots before you'll get them on this build.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
Hi,

I have xiaomi.eu weekly MIUI 12. with unlocked booloader and TWRP.

I want try this ROM but i want install via TWRP:

Mi 9	cepheus	Stable	Recovery	Europe	[B][U]V12.0.1.0.QFAEUXM[/U][/B]	10.0

downloaded from here: https://xiaomifirmwareupdater.com/archive/miui/cepheus/ and then flash PE.

1. Can i have problems with anti-rollback flashing this stock ROM? (firmware is included in ROM)

2. I don't understand if vbmeta.img must be flashed or not in my case.

Sorry for my stupid question, but i don't want brick my phone

Thank you !
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Linez:
If you flash this rom from twrp, you will lose your twrp recovery and will have to start again from flashing vbmeta and twrp again if you want to flash PE / any custom aosp rom.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
Thank you.

yes I know. I just wanted to do things right. What would be the alternative? I just wanted to know one thing. If i flash the firmware, do I also have to flash vbmeta? I have always had xiaomi.eu and have never had aosp rom.

Another Question: if i flash stock ROM MIUI 12 EEA via twrp, there isn't anti rollback?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] maodevil:
Match voice not working since update:(
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
If you comes from MIUI, just flash it.

If you have no idea, just flash it and it doesn't have any negative impact on your phone !
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Linez:
1. The alternative would be flashing the fw zip (the 80 mb file) from twrp and continue using your phone just as usual.

2. As far as I know, there's no anti-rollback in Mi9. Several months ago, I switched from xiaomi.eu Q to LineageOS 16 (P) without a problem. Just make sure you flash vbmeta after you flash miui, either you flash from fastboot or recovery.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Larrius:
OK just let me make sure about something before I do a clean flash. I use miflash.exe to flash back stock rom (China version), and I unlock bootloader and flash TWRP. So what's the next move? Just flash PE and do a correct formatting? Or flash some other firmwares first?

Now I am using old version PE. Flash step provided by #1342. It's good enough but I faced some random reboots and FOD problems. So I want to try the new version.

Thank you!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
I think you should flash the stock miui 12 rom.

There is no fastboot rom, so you can't use miflash.

Download this: Mi 9 cepheus Stable Recovery Europe	V12.0.1.0.QFAEUXM	10.0 - format data and then flash via TWRP

from here: https://xiaomifirmwareupdater.com/archive/miui/cepheus/

and then flash vbmeta and twrp.

Format data and flash PE
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Larrius:
Thank you! I will try it!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
tell me if it works and if you have had problems
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Lonann:
Hi there. Would this ROM work for a Xiaomi Mi CC9 as well?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Linez:
It wont.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Claude_Lib:
It's been roughly 24 hours since I fully charged my Cepheus and left it to slowly discharge. Other that accepting three phone calls and unlocking it just to check the battery two times, did not touch it at all. Anyway, now it says 77 percent left. Maybe the battery drain issue was fixed in the latest build or maybe it still eats battery like there's no tomorrow, but only when used, I don't know.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Cave_diver:
Flashed the miui 12 EEA and then fresh installed the latest PE plus.

Getting the reboots that are mentioned in this thread fairly consistently. Appears to be movement related, possibly Bluetooth, I've been seeing this a lot when leaving the car.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] BigsyBiggins:
It is an odd one, I can drive across a city with it connected to my car Bluetooth and not have a single problem, yet carrying the phone upstares in my house will make it reboot about 40% of the time.

I don't appear to ever get a reboot in airplane mode with things connected to bluetooth. So maybe wifi or Cellular related.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] idopes:
For me running with tracking app and Bluetooth audio the phone is just rebooting itself every 1 min..
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AdrixStrife:
Random reboots and solution.

Well it seems like random reboots have something to do with location services.

Turning off always on location services seem to fix reboots completely, at least for me.

I'm suggesting to try this, hope it helps.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
if i wanted to use gps? or maps? i can't?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Larrius:
I have done a clean flash. Seems that China Version Mi 9 can use the universal method to flash PE.

Although MIUI still has old version (MIUI 11) on its website, I just downloaded it and use MiFlash to do a factory set.

My step (after MiFlash):

1. Unlock the phone.

2. Flash TWRP.

3. Boot to TWRP, format data - yes.

4. Reboot to TWRP, flash latest firmware from https://xiaomifirmwareupdater.com/firmware/cepheus/ . I used the Europe 12.0.1.

5. Reboot to Twrp, flash PE.

6. format data - yes.

7. Reboot system.

I had a bootloop problem here. Seems to be a problem of vbmeta. But tbh I don't know the difference between vbmeta in different rom. So I use the firmware provided by #1342, and unzip it to get a vbmeta.img. And copy it to the folder of Adb and Fastboot tools.

8. Shut down your phone, boot it to fastboot mode.

9. On your computer, use fastboot command:

fastboot flash vbmeta vbmeta.img

10. Reboot your phone, everything done.

Thanks to [MENTION=3351268]roxdragon[/MENTION] and [MENTION=4447339]AcmE85[/MENTION] .

This step can be used as a reference for Chinese users who want to try PE, and hope to help everyone.:laugh:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
can you try, GPS, BT? have you random reboots?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
Why do people say about random reboot in PE ? I don't have that problem actually and PE+ runs in my mi9 so smoothly !
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AdrixStrife:
Of course you can, by manually turning location services on and off.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
Yes. Many say they have random reboots with power on GPS, so imagining that i can use maps with difficult
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hoanvu1100:
So is the lasted version good enough for daily use?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] antpalfer:
For sure... Works Amazing

Enviado desde mi MI 9 mediante Tapatalk
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] maodevil:
I have a problem with voice match do you have the same problem?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] BigsyBiggins:
Is it really that difficult to understand that a lot of people are having a different experience to you?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] SajkoRoot:
does the al button work for you? I can't map it xponsed edge, it can't detect it
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] maodevil:
Nobody else has a problem with voice match
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Reksho:
Anyone has a Magisk module that enables dual speakers on this rom? Most are designed for MIUI and don't work on Pixel Experience in my experience.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roool:
Hello guys,

Possible update last update without miui12 ? So pain full to reinstall app and data....
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hostek:
use firmware only
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AcmE85:
I've mentioned this before and another user confirmed it,

voice match stopped working with the lastest build for us.

Another user said it works for him though, so this might be an individual issue.

I've tried everything possible (deleting and relearning voice match, uninstalling Google updates, switching from beta to stable) but still broken.

Other than that I have zero issues. No random reboots (never had any on PE+) regardless of usage and situation (GPS, Bluetooth...).

It's rock stable for me and battery life is very good.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
hi, I have a curiosity.

Did you switch from the stock rom miui 12 and then to PE, or do you have flashed only firmware and then the PE?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AcmE85:
As I was using PE+ with miui11 firmware before, all I did to update to latest PE+ was flash the latest miui12 firmware, nothing else.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] GirishSharma:
I am on miui12 global eea ota updated. Installed twrp and magisk. Kindly mention all flashing FAQ like :

1.Which partition should be backed up?

2.Which partition need to be wipe?

3.If anything goes wrong or bootloop, which partition need be restored.

4.Which gapps recommended.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] maodevil:
Thank you very much for answering I did everything the same as you and nothing works but the Rom in general is rock solid I haven had any issues I use regular pa hope they fix it in next build
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] francyesco:
As last infos i've found in the topic are from february: someone is still using google pay (nfc) on this rom? safety net is okay? magisk hide is enought or also the hide props module is needed?

and for who migrated from MIUI (actually i'm on xiaomi.eu MIUI 12), will be the appdata downloaded restoring the google backup? i guess the home screen icons disposition will be lost
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] noriver:
Can anyone share me a link to port MIUI stock camera to Pixel experience Plus ROM. I can't access camera ( Both Pixel ROM stock camera and Gcam ported) whenever I flash ANXcamera magisk module and its addons.In the Gcam that I ported, 48MP mode can't be used. So, share me a link please
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Cave_diver:
Gpay works fine with PE, probably without magisk too as the ROM passes Safetynet. Definitely works with magisk and magisk hide. No hide props or other fixes (like DB changes) needed here.

App data will be restored from the Google backup, depending on whether the app supports it or not.

You also need to format when switching over to PE.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Johnnnnnnnnnny:
+1 on that. Can't turn on voice search on Google assistant. Was this the solution for the random reboots? ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Cave_diver:
Disabling location services fixed the reboots here.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] DarkRover85:
Same here. Disabled it two days ago and haven't had a single restart.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AdrixStrife:
Turn off location services to fix Random Reboots.

Yeah just as title says. If you're facing random reboots, just turn off always on location services and the random reboots will go away. If you want to use GPS or maps, just turn on location services manually while using them. A bit inconvenience I know but still far better than facing those annoying reboots.

Ciao ciao! ;)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] GirishSharma:
There should be a simple and straight forward method of flashing.

1.Just unblock bootloader.

2.Install twrp.

3.Download and match md5 of rom zip.

4.Flash

5.Reboot

Each and every thing should be in that zip i.e. is -

1.which partition need to be backed up before moving forward.

2.Is there any firmware required, if yes, it should be in the rom zip.

3.Prior testing of bootloop. If there are any chance of bootloop and if they can be managed in rom zip, they should be incorporated and if it is not possible to incorporate them, just inform the user accordingly.

4.Start ROM flashing.

5.If anything goes wrong, just restore the backup which is first step.

All these should be incorporate in ROM zip. There should not be any chance of bootloop or bricking the device.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] roxdragon:
does anyone know when the next build will be released?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] ChrisFml:
A guide like this would be very helpful. Also including the firmware and anything else necessary in a single zip is a must. Currently it's a pain to install PE without facing a bunch of bootloops. I haven't been able to do this successfully and always end up reverting to MIUI 11...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Johnnnnnnnnnny:
'Ok Google' not working on the latest release. Voice match will automatically turn off everytime I try to enable. Probably an issue with audio devices or permissions that will result in voice match failing to save or activate the service.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] noriver:
Yeah. Me,too." OK google" voice command does not work in last update and Pixel Ambient service keep continuing FC. Being unable to access "OK Google" command is so annoying in a major AOSP ROM like Pixel Experience. Please fix .....
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hostek:
for me, all work perfectly. no reboots and hey google work too. and nearby share too.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] maodevil:
What was your method of installation ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hostek:
https://xdaforums.com/showpost.php?p=81267813&postcount=1
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] maodevil:
Strange! I did the same thing what firmware do you use?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hostek:
12.0.1.0
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] antpalfer:
Yes, ok Google working fine for me too. Only issue for me random reboots, one or two on a week...

Enviado desde mi MI 9 mediante Tapatalk
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] strnad10:
Random reboots probably caused by Smart Lock

I figgured that my random reboots were most likely caused by Smart Lock function.. After i deleted all trusted places, switched off on body locator and since yesterday, I haven't had any random reboots..

Can someone verify or test it?

Thanks in advance for replies.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hostek:
You are have Google maps?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] x0b00n:
Can anyone tell me if multitouch works ok with this ROM please?

I'm on MIUI 12 and having an issue with zoom into gallery and web pages. Lots of other people are reporting it too, has been apparent since MIUI 11 update. There are videos on YouTube showing it, search for 'multi touch problem mi 9'. (I can't post links yet, sorry)

Anyway, if it doesn't happen on PE then I'm definitely making the switch!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Cave_diver:
Never had any issues with that, not on MIUI and not with custom ROMs and certainly not with this one.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] x0b00n:
Hmm. Perhaps it's hardware related somehow, it's weird how it only happens since MIUI 11 came out though.

Think I'll try this ROM anyway and see. Thanks
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Cave_diver:
You need MIUI 12 firmware for the latest PE release so maybe that will change something. Hope it works well for you.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] yanget:
Thank you for the amazing rom , there is a little issues :

1. When I turn on the volte , the notification "SIM 1 is HD capable" can not remove

2. "OK google " can not work

3. Finger print not work on alipay
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] tomzzi:
I need working anx camera too... Please anyone link which version works?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] antpalfer:
yes, of course
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] idopes:
Maybe it will help to someone with the reboots.

I had reboots after few dirty flashes,

I removed everything from my phone, but everything, i had only fastboot when i rebooted my device.

I was using the all on 1 tool to flash V12.0.1.0.QFAEUXM fastboot image.

after that i did the regular thing of twrp and format data and install the latest PE,

No reboots since (week +).

Before that it was used to happen to me while i listen to music and used gps navigation..

now it doesn't happen anymore
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] tomzzi:
Thank you.

I will try to flash with this steps as I had one reboot today. Flashed rom yesterday.

Battery life is great. Android auto works. Only problem was reboot.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Cave_diver:
Removed my home address as a trusted place from Google maps (it was the only one). No reboot since the day of your post and I've had location services on all the time.

Looks like you might be on to something.

Update: reboots are back, had several of them this morning...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] the_trev2:
Afraid not.

I did the same, it initially seemed fine, but then I went for a walk around town and it just kept on rebooting every 15 minutes or so. It's still happening when I'm out driving too.

So realistically, it's either radio/GSM or GPS causing the problem.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] BigsyBiggins:
I've been living with the reboots long enough now to know that these fixes probably aren't. The problem is random and can go away for a little bit and it tends to trick people.

I get random reboots when I out BUT I have one nearly sure-fire way I can get it to reboot, and that is by walking the phone upstairs in my house, I'm pretty sure this is down to the fact I have a number of wifi repeaters and moving between them causes the issue.

From this only 2 things seem to completely stop this for me

1. have the screen on OR

2. Have airplane mode on.

Thats it, I've tried everything suggested in this thread, I've also flashed this phone every way possible with all firmwares etc etc.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] andresgpk:
Hey! Did u have to do a clean install? Or just dirty flashed by just upgrading firmware and installing the new build?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AcmE85:
As I said, I did an update. So I dirty flashed.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] amadeomrk:
How is your battery life with the rom?

Mine is liking blazing fast drain. Went from 80% to 20% watching a 40 minute video with mobile data on and max brightness.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] hostek:
i think quick charge=veeeeery quick and therefore capacity is low. if you are use 5v 2.1a = little more capacity in your battery.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Zahirpro2:
why i cant download pe+ from the official website
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] IAMSWAPY:
Try doing this.

I had the same issue, I tried it a few times and I was able to download it then.

If you still find it problematic, you could download the older firmware update and then download the newer incremental upgrade.

That will work too.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] shimadamegumi:
nice~~~
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VicMan91:
Hi, good afternoon.

I've been having some troubles with this rom and basically any other AOSP based rom, the problem is about stability and a bug that I have had in every rom that I have installed in my Xiaomi MI 9, maybe i'am doing something wrong during the process and i may need some help to fix this couple of problems.

First things first, the process that i am following is:

- Wipe cache/dalvik and data.

- Format data

- Flash MIUI 12.0.1 official eea rom using MI flash tool.

- Flash twrp

- Wipe data.

- Reboot to recovery

- Flash MIUI 12.0.2 stable .EU rom using TWRP

- Wipe data cache and dalvik.

- Reboot to recovery

- Flash any AOSP custom rom.

- Wipe data, cache and dalvik

- Reboot to system

- Remove sim card to avoid android configuration crashes

- Configure device using WIFI and wait to go to home screen.

- Insert sim card.

- Enjoy.

The problem im having is during use uber app, basically that crashes in every rom i have had installed, in a few words is unusable because reboots my phone every time.

Can i get some help about it? am i doing something wrong? How can i fix it

I'll apreciate any help.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] BigsyBiggins:
People in this thread have reported uber rebooting the phone so suspect it isn't anything you're doing wrong, the rom is pretty rebooty in general and that goes for an ASOP based on markakash device tree, least in my experience.

you could try lineage rom, that seems to be ok for reboots least for me.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VicMan91:
Thats very helpfull i'am new in this custom rom world and i need some directions. What do you mean with that markakash devide tree your mentioning.

Can you explain a little more?

Thanks for the help.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Kris Chen:
Base on your steps, I modified it :

*** Before following steps below, please make sure you have unlock bootloader and have TWRP recovery tool

- Wipe cache and dalvik cache

- Format data

- Reboot to TWRP

- Flash MIUI 12.0.1 official eea firmware only by TWRP

- Flash Any AOSP ROM(if ROM included of vendor files, you just need to flash step_3 firmware only. If none, please try to get firmware+vendor files in step_3)

- Reboot to system and finish setup

- Enjoy.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VicMan91:
Oh, i didn´t know this were so easy.

Follow those steps will solve the rebooting issues?

I would like to know before to proceed to reinstall any aosp rom.