[Tuto] [Mi 9] Install xiaomi.eu + Magisk


Gboz_ak

Members
Mar 23, 2019
3
5
Hello Everyone,

This short tutorial to summurize today's working method/files to install xiaomi.eu rom + Magisk. (on Mi 9)

Files :
- Mi Unlock (
and the USB driver included)
- xiaomi.eu rom (v.9.3.21 for mi 9)
- TWRP 3.2.3 for mi 9 (UPDATE @raskolnikov link, this version seems to be better)
- ADB flash tool
- Magisk 18.2 + Manager
(@Laserek_Poland link, this version works fine for me)

Pre-requiered :
- Unlocked Bootloader
- Enable USB debugging (developper mode)

Process rom :
- Boot on fastboot
- Flash twrp (fastboot flash recovery twrp_cepheus.img)
- Boot on twrp
- FORMAT DATA (your mi 9 should disconnect from USB et auto-connect again. All files should be unencrypted)
- Now you can copy xiaomi.eu rom to internal storage.
- Install it
If you get a red ERROR 7 follow this :
In the ROM ZIP Edit update-script file located in META-INF/com/google/android and delete the whole first line
Inject the edited file to the ROM ZIP and copy on the phone

A huge thanks to @Laserek_Poland to find that
- Reboot and activate your phone.

Process magisk (no problem here) :
- Enable USB debugging
- Flash recovery
- Install magisk 18.2
- Reboot
- Check if ctsProfile and basicintegrity are true. (mine are ok)

I hope it can help :)
 
Last edited:

ckarv

Members
May 25, 2016
22
15
What is the 9.3.21 ROM based on for Mi9, as I'm not able to find a developer ROM released for it at all? (It's delayed?)

Thanks
 

Louischartoire

Members
Feb 11, 2018
10
15
Thanks a lot for this topic.

I tried everything, TWRP is well instaled, but I can't install the xiaomi.eu ROM, say ERROR 7. After updated the script and put it back in the folder, then ZIP again the whole ROM, TWRP says the ZIP is not good, and stop immediatly...
I will wait few days :)
 

marcel112

Members
Jun 2, 2011
292
52
how to check what the device ID is on genuine software?


On DRM info the fingerprint is: xiaomi/cepheus so i dont have to edit update script etc.
I can just flash the maronofio img?
 
Last edited:

marcel112

Members
Jun 2, 2011
292
52
I unlocked my device.

So fastboot is working
When i flashed twrp it seems to work, i flashes...
But when i reboot to recovery its still stock.

I tried several times, after i tried fastboot boot recovery , i tried volume up and power

when typing fastboot devices its connected

Anybody got an idea how to let TWRP stick instead off stock?
 
Last edited:

raskolnikov

Members
Mar 23, 2019
11
3
I unlocked my device.

So fastboot is working
When i flashed twrp it seems to work, i flashes...
But when i reboot to recovery its still stock.

I tried several times, after i tried fastboot boot recovery , i tried volume up and power

when typing fastboot devices its connected

Anybody got an idea how to let TWRP stick instead off stock?
fastboot flash recovery xxxx.img
> reboot directly to twrp
or

fastboot flash recovery xxxx.img
fastboot boot xxxxxx.img
in twrp flash recocery to recovery partition
 

marcel112

Members
Jun 2, 2011
292
52
fastboot flash recovery xxxx.img
> reboot directly to twrp
or

fastboot flash recovery xxxx.img
fastboot boot xxxxxx.img
in twrp flash recocery to recovery partition
Tried Both yesterday.

Both boot to system.

When i power down and use power and vol up, i get stock recovery


Verstuurd vanaf mijn MI 9 met Tapatalk
 

marcel112

Members
Jun 2, 2011
292
52
Do you booting after recovery flash to recovery with buttons combo? flash rec > unplug phone > hold on/off + vol up
Flash recovery, hold power and vol up till mi logo unlocked in screen, then i released power button and hold vol up
 

Nataliusgab

Members
Mar 17, 2019
8
5
Hello Everyone,

This short tutorial to summurize today's working method/files to install xiaomi.eu rom + Magisk. (on Mi 9)

Files :
- Mi Unlock (
and the USB driver included)
- xiaomi.eu rom (v.9.3.21 for mi 9)
- TWRP 3.2.3 for mi 9 (UPDATE @raskolnikov link, this version seems to be better)
- ADB flash tool
- Magisk 18.2 + Manager
(@Laserek_Poland link, this version works fine for me)

Pre-requiered :
- Unlocked Bootloader
- Enable USB debugging (developper mode)

Process rom :
- Boot on fastboot
- Flash twrp (fastboot flash recovery twrp_cepheus.img)
- Boot on twrp
- FORMAT DATA (your mi 9 should disconnect from USB et auto-connect again. All files should be unencrypted)
- Now you can copy xiaomi.eu rom to internal storage.
- Install it

- Reboot and activate your phone.

Process magisk (no problem here) :
- Enable USB debugging
- Flash recovery
- Install magisk 18.2
- Reboot
- Check if ctsProfile and basicintegrity are true. (mine are ok)

I hope it can help :)




It works with mi 9 se to?
 
Last edited:

djbosanac

Members
Jan 24, 2014
287
42
The step after format data is unclear to me.
How can i copy data when i need to restart my phone. I cannot find it via OTG or something.
Can you tell me how to install.
 

NeoMod

Members
Aug 1, 2016
58
20
Using the TWRP provided in this thread I was able to successfully switch from Global ROM to Xiaomi EU on a Global device.

However, I'm unable to install updates due to an "encrypted device" warning, even though I did not activate any encryption and I also formatted data prior to installing the new ROM.

I tried the old DMVerity and Encryption remover package but it seems is not working on this device.

Has anyone experienced this issue?

Update:

It appears the problem is only ostensible: all installed apps along with TWRP have access to internal storage, without problems. Once downloaded the update, even with the updater app, the usual reboot in TWRP is enough to apply it.
 
Last edited: