[GUIDES & FAQ][Merlin] Bootloader, Magisk, EdXposed, SafetyNet, GSI/Treble ROMs

Akitake

Senior Member
Jan 20, 2018
98
32
28
This guide worked for me. My both Redmi Note 9 are rooted with magisk v20.4
I've used the original vbmeta.img from Stock ROM.
But, I can't install Riru-Core and Riru-Edxposed using MagiskManager-v8.0.3.
It says to install any magisk version 19+. I've tried to bypass this verification, but it fails.
So, I've installed MagiskManager-v7.5.1 and I can install Riru-Core and Riru-Edxposed perfectly.
Magisk shows modules list perfectly.
Edxposed shows its installed and working perfectly.
I've tried to install XPrivacyLua and now it is working perfectly too.

Thank you very much ❤❤❤
Very glad you enjoyed my guide, and happy it could help someone.
And congrats on following instructions properly, apparently most people can't.

And thanks for the heads-up with Magisk Manager!
I've added it to the guide as a temporary fix, crediting you.
 
Last edited:
  • Like
Reactions: VD171

DavitidzeSh

Member
Dec 3, 2020
41
1
23
My bad, I meant there's barely Xiaomi devices that shipped with Android 10, which have official TWRP.

Anyways, Both PBRP and TWRP I gave run fine, There's no specific reason that you would need an official build only.
I once nearly hard bricked my phone by flashing TWRP, it didn't boot into fastboot nor recovery so I'm trying to be careful
 

VD171

Senior Member
Jun 21, 2012
180
30
58
127.0.0.1
Very glad you enjoyed my guide, and happy it could help someone.
And congrats on following instructions properly, apparently most people can't.

And thanks for the heads-up with Magisk Manager!
I've added it to the guide as a temporary fix, crediting you.
After I've installed modules using magisk manager v7.5.1, I've updated magisk manager to v8.0.3 and everything keep working perfectly. Root, Magisk, Riru, Edxposed and Xprivacylua.

SOLUTION:

At first run of magisk you need to have your phone CONNECTED to internet (wifi or mobile) ! Once it detects the Redmi Note 9 as version, it installs a custom patch for magisk manager can works perfectly. IT IS EXTREMELY IMPORTANT.

I can flash TWRP too, using this: http://unofficialtwrp.com/twrp-3-4-1-root-redmi-note-9
As you can see in attached image.
 

Attachments

Last edited:

VD171

Senior Member
Jun 21, 2012
180
30
58
127.0.0.1
You'll have issues modifying system partition, wiping, etc.. but that's just due to the nature of the phone having Dynamic partitions.
Other than that, yes.

I love customizations. But, I have to agree, there is no need to modify system.
if you need really to modify your system, probably you may need a pre-modified system.
I can live together all those unwanted applications from vendors.
They can be totally unaccessible with root.


Is the recovery functional? Can it install images, zips, and etc?
I am making alot tries and experiences with my new phone.
I will give a try for flashing zips.
There is any customized logo.bin for testing?

EDIT:

TWRP unnoficial is working fine on V11.0.5.0, but not on V12.0.5.0. I will give a try for v12.0.4.0.
 
Last edited:

Communos

Member
Oct 28, 2019
27
3
3
Karnal
V11.0.5.0:

MAGISK: Working.
MAGISK MANAGER: Working.
TWRP: Working.
RIRU-CORE: Working.
RIRU-EDXPOSED: Working.
EDXPOSED-MANAGER: Working.
XPRIVACYLUA: Working.
MINMINGUARD: Not tested yet.
TITANIUMBACKUP: Not tested yet.

V12.0.4.0:

MAGISK: Not tested yet.
MAGISK MANAGER: Not tested yet.
TWRP: Not tested yet.
RIRU-CORE: Not tested yet.
RIRU-EDXPOSED: Not tested yet.
EDXPOSED-MANAGER: Not tested yet.
XPRIVACYLUA: Not tested yet.
MINMINGUARD: Not tested yet.
TITANIUMBACKUP: Not tested yet.

V12.0.5.0:

MAGISK: Working.
MAGISK MANAGER: Working.
TWRP: NOT working.
RIRU-CORE: Working.
RIRU-EDXPOSED: Working.
EDXPOSED-MANAGER: Working.
XPRIVACYLUA: Working.
MINMINGUARD: Not tested yet.
TITANIUMBACKUP: Not tested yet.
Legit good work! Also TWRP, Magisk, Magisk Manager work on 12.0.4 .
Titanium backup works on all of them.
 
  • Like
Reactions: VD171

VD171

Senior Member
Jun 21, 2012
180
30
58
127.0.0.1
Legit good work! Also TWRP, Magisk, Magisk Manager work on 12.0.4 .
Titanium backup works on all of them.
Very good to know, my friend !
I've just finished all my tests on V12.0.5.0.
Then, I will make some tests on V12.0.4.0 for last, because probably I will keep in this firmware version.
 

hyibin

Member
Apr 18, 2011
44
6
28
Never mind. I missed the fist command:
.\fastboot.exe reboot fastboot

after this step, I needed to update the fastboot driver.

Got the following error:

target reported max download size of 134217728 bytes
sending sparse 'system' 1/18 (131068 KB)...
OKAY [ 3.141s]
writing 'system' 1/18...
FAILED (remote: This partition doesn't exist)
finished. total time: 3.141s

Phone: Redmi Note 9
Rom: MIUI Global EU 12.0.4 (original, unrooted)
Bootloader: unlocked
GSI: caos-v224-201029-arm64-bgN.img
 
Last edited:

VD171

Senior Member
Jun 21, 2012
180
30
58
127.0.0.1
Never mind. I missed the fist command:
.\fastboot.exe reboot fastboot

after this step, I needed to update the fastboot driver.

Got the following error:

target reported max download size of 134217728 bytes
sending sparse 'system' 1/18 (131068 KB)...
OKAY [ 3.141s]
writing 'system' 1/18...
FAILED (remote: This partition doesn't exist)
finished. total time: 3.141s

Phone: Redmi Note 9
Rom: MIUI Global EU 12.0.4 (original, unrooted)
Bootloader: unlocked
GSI: caos-v224-201029-arm64-bgN.img
You are doing wrong. If you are not sure for what you are doing, you have to use oficial flash scripts inside stock rom firmwares. This command "fastboot.exe reboot fastboot", makes no changes. Redmi Note 9 doesn't have system partition. You need to be sure for what you are doing before to do flash.
 

hyibin

Member
Apr 18, 2011
44
6
28
There is a stock MIUI camera mod for custom roms called ANX camera, Give it a try.
I got 'can't connect to camera' error. Can you advise? Thanks.

CAOS on redmi note 9. Have tried ANXCameraUnity_190.BountifulDistantHapuka and ANXCameraUnity_181.SophisticatedTruthfulCob without luck.
 

historys

Senior Member
Dec 2, 2020
65
8
18
My bad, I meant there's barely Xiaomi devices that shipped with Android 10, which have official TWRP.

Anyways, Both PBRP and TWRP I gave run fine, There's no specific reason that you would need an official build only.
isn't it because of the mediatek chip? because it's closed source