[Guide] ROOT REDMI NOTE 9 LATEST VERSION MIUI 12.0.2.0 - Redmi Note 9 Guides, News, & Discussion

I saw a lot of outdated methods of rooting this phone that will cause a lot of bugs to the device, because of the outdate magisk_patched boot image
HERE'S AN UPDATED VERSION
REQUIREMENTS
Unlocked bootloader
Minimal ADB + Fastboot ( I use 1.4.3 PORTABLE) https://forum.xda-developers.com/showthread.php?t=2317790
Pack with required images, including the new magisk_patched.img (required_files.zip, at the bottom of the post)
INSTRUCTIONS
Extract both the minimal adb + fastboot and required_files.zip to a folder
Boot your device in fastboot mode (power if off, then press power button + volume down until you see a bunny working on a Android robot)
Connect the device to the PC via a USB cable (I suggest the one you use of the charger too)
Copy the images from required_files.zip to the folder where you extracted minimal adb + fastboot
Open a cmd/powershell window in minimal adb + fastboot folder (make sure once again that you copied the files from required_files here)
Type these commands:
fastboot devices
* Make sure that your phone it is recognized by the PC using this command
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase cache
fastboot flash boot magisk_patched.img
fastboot reboot
Click to expand...
Click to collapse
Enjoy! Your phone will reboot (it shouldn't take more than usual btw)
WARNING!
I'm not responsable for any damaaged device, you take the risk
What I basically did is gave you guys an updated magisk_patched image because the the one seen on the internet for now is an old one that caused several problems on some devices, if you're running any other version that the one in the title you should make your own magisk_patched image

Does this method erase user data and do a factory reset, as other guides say?
I know there is always a risk and it's important to make a backup, but my question is if everything goes as expected, is the phone data erased?
Other guides do the command "fastboot erase userdata" before "fastboot erase cache".

alpersoft said:
Does this method erase user data and do a factory reset, as other guides say?
I know there is always a risk and it's important to make a backup, but my question is if everything goes as expected, is the phone data erased?
Other guides do the command "fastboot erase userdata" before "fastboot erase cache".
Click to expand...
Click to collapse
I removed the erase data line cuz I didn't saw why it would be required since it was working great without it

@Bogdi_P
Can you please share how you did modifications?
I am on MIUI Global 12.0.2 Stable 12.0.2.0(QJOINXM) which is an Indian ROM. Model is M2003J15SI.
I downloaded my firmware zip from Updater -> Download latest package.
I can take boot.img, vbmeta.img from it.
After I can patch the boot.img with Magisk.
But what I have to do with vbmeta.img?

HemanthJabalpuri said:
@Bogdi_P
Can you please share how you did modifications?
I am on MIUI Global 12.0.2 Stable 12.0.2.0(QJOINXM) which is an Indian ROM. Model is M2003J15SI.
I downloaded my firmware zip from Updater -> Download latest package.
I can take boot.img, vbmeta.img from it.
After I can patch the boot.img with Magisk.
But what I have to do with vbmeta.img?
Click to expand...
Click to collapse
You can manually patch vbmeta file using an Hex Editor or you can download any already patched vbmeta file for any MIUI version for this device and flash it.

Successfully rooted + edXposed on STOCK rom and GSI roms.
Patched my own boot image (magisk_patched.img) with magisk manager.
To make Netflix & some other apps work, get the liboemcrypto disabler module in Magisk Manager
Also, to pass SafetyNet:
- Enable Magisk Hide
- Install and activate the Riru - Core and Riru - EdXposed (YAHFA or SANDHOOK, both work) modules in magisk manager
- Get EdXposed manager
- Get the HiddenCore Module and activate it
- In EdXposed Manager: Compat List, and tick HiddenCore Module
To avoid issues (Chrome crashes, potential SIM issues, etc..) with HiddenCore:
- In EdXposed Manager, go to Settings > Framework > Enable "App List mode"
- Still in EdXposed Manager, go to Applications(Black List) and tick: Android Services Library, Chrome, Google Play services, Play Store, Google Services Framework
- Reboot and enjoy, you're all set and SafetyNet should pass just fine, and you can do whatever you want.

i have question: vbmeta.img above can be used for all versions of miui or only ver 12.0.2
i am using ver 12.0.3 eea

Pls help not working 12.0.3
tanks
I have patched the image with magisk manager

ma259 said:
You can manually patch vbmeta file using an Hex Editor or you can download any already patched vbmeta file for any MIUI version for this device and flash it.
Click to expand...
Click to collapse
can i download your vbmeta and work for 12.0.4? maybe? yes? no?

New member here! Will this work also on miui 12.0.5 global?

I have not installed root and the phone is not restored

What is working for MERLIN ?
Take a look: https://forum.xda-developers.com/t/...aomi-redmi-note-9-xiaomi-redmi-10x-4g.4204873
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.

Hi,
I was in 12.0.2 following your method :
fastboot devices
* Make sure that your phone it is recognized by the PC using this command
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase cache
fastboot flash boot magisk_patched.img
fastboot reboot
my phone can only boot in fastboot no longer in system.
I am able to go to stock recovery using power + up but I would like to avoid to reset my phone.
Please help what's wrong, can someone help ?

accnetdev said:
Hi,
I was in 12.0.2 following your method :
fastboot devices
* Make sure that your phone it is recognized by the PC using this command
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase cache
fastboot flash boot magisk_patched.img
fastboot reboot
my phone can only boot in fastboot no longer in system.
I am able to go to stock recovery using power + up but I would like to avoid to reset my phone.
Please help what's wrong, can someone help ?
Click to expand...
Click to collapse
same here

Related

[ROOT] [MAGISK] How to root

Just wanted to inform you, that rooting with Magisk works like a charm. Even without TWRP.
What you need:
Magisk Manager: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
boot.img from your ROM (prepatched boot.img for CN_V10.0.11.0 ROM here: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=19)
Unlocked Bootloader
ADB and Fastboot on your PC (Simple ADB & Fastboot Installer: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=5)
Installation:
Install MagiskManager.apk on your Smartphone
---SKIP IF YOU USE THE PREPATCHED BOOT.IMG---
Put the unpatched boot.img on your phone
Open MagiskManager and Click "Install"
Select "Patch boot.img" and choose the boot.img with your file manager
Copy the "patched_boot.img" file on your PC
---CONTINUE HERE---
Now connect your Mix 3 to the PC and boot in fastboot mode (over the command line: adb reboot bootloader)
Navigate with the command line to your folder, where you saved the patched_boot.img
Now flash the patched_boot.img file with fastboot: fastboot flash boot patched_boot.img
If the flash is successfull you can reboot the phone with fastboot reboot
Open the MagiskManager and verify that Magisk is installed and your phone is rooted.
Thanks so much! Will try this out! Nice work!
Thanks, after i root my mix 3 can i flash the xiaomi.eu rom on it too without problems ?
Normally you don't need root to flash Xiaomi.eu ROM, just TWRP. But there is no TWRP yet. You could try "Flash Fire", but I don't know if it would work. Never did that before. If you try it make sure, that you have USB Debugging enabled and know how to use common tools like MiFlash etc.
If you are unexperienced wait for TWRP.
PJF16 said:
Normally you don't need root to flash Xiaomi.eu ROM, just TWRP. But there is no TWRP yet. You could try "Flash Fire", but I don't know if it would work. Never did that before. If you try it make sure, that you have USB Debugging enabled and know how to use common tools like MiFlash etc.
If you are unexperienced wait for TWRP.
Click to expand...
Click to collapse
I used TWRP before and Rooted before too but i never used Flash Fire or Flashify. I don't know how hard it would be to use them.
Please report back your success and how it goes for you!
SacredSovL said:
I used TWRP before and Rooted before too but i never used Flash Fire or Flashify. I don't know how hard it would be to use them.
Click to expand...
Click to collapse
It's risky and something I won't be trying, I would wait for TWRP
Hi PJF16
How did you get the boot.img from your device without root? I'd love to make a unmodified copy before trying this out
I got it from the fastboot ROM which I also uploaded to the forum. See here: https://forum.xda-developers.com/mi-mix-3/development/xiaomi-mi-mix-3-fastboot-roms-t3869532
Tested and 100% working! Recommended
smiba said:
Tested and 100% working! Recommended
Click to expand...
Click to collapse
Did u flash xiaomi.eu rom or something else ?
PJF16 said:
Just wanted to inform you, that rooting with Magisk works like a charm. Even without TWRP.
What you need:
Magisk Manager: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
boot.img from your ROM (prepatched boot.img for CN_V10.0.11.0 ROM here: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=19)
Unlocked Bootloader
ADB and Fastboot on your PC (Simple ADB & Fastboot Installer: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=5)
Installation:
Install MagiskManager.apk on your Smartphone
---SKIP IF YOU USE THE PREPATCHED BOOT.IMG---
Put the unpatched boot.img on your phone
Open MagiskManager and Click "Install"
Select "Patch boot.img" and choose the boot.img with your file manager
Copy the "patched_boot.img" file on your PC
---CONTINUE HERE---
Now connect your Mix 3 to the PC and boot in fastboot mode (over the command line: adb reboot bootloader)
Navigate with the command line to your folder, where you saved the patched_boot.img
Now flash the patched_boot.img file with fastboot: fastboot flash boot patched_boot.img
If the flash is successfull you can reboot the phone with fastboot reboot
Open the MagiskManager and verify that Magisk is installed and your phone is rooted.
Click to expand...
Click to collapse
I feel like I'm missing something. I fastboot flash but it gets hung up in cmd. Should not take as long as it is trying to
souless poet said:
I feel like I'm missing something. I fastboot flash but it gets hung up in cmd. Should not take as long as it is trying to
Click to expand...
Click to collapse
Nevermind figured it out...duh.
Not working on 8.11.15 dev china rom...
Patched boot is much smaller than it should be and after flashing and fastboot reboot command, phone goes back to fastboot mode
It's normal that the patched boot.img is smaller.
PJF16 said:
It's normal that the patched boot.img is smaller.
Click to expand...
Click to collapse
I know that.
But this is quite smaller than usual and, anyway, it doesn't boot after flashing
Anyone have any issues with v4A magisk module? After I flashed it I lost the ability to turn on wifi. Wondering if anyone else has had that issue.
where can i find the pre patched boot img of 10.0.12.0?
Just use the one for 10.0.11.0.
nosidefcp said:
where can i find the pre patched boot img of 10.0.12.0?
Click to expand...
Click to collapse
Hi, here You can find patched boot for 10.0.12.0:
https://yadi.sk/d/aVlSEC_r7xj0VA

[GUIDE]*How to install a Generic System Image (GSI) on your HTC U12+

Hi!
I've had trouble installing a GSI on my HTC U12+, but AOSP GSI maintainer phhusson helped me, so I'm sharing a quick tutorial.
1. Download and extract Android SDK Platform Tools
2. Download the GSI of your choice (ARM64, AB variant), and move it inside platform tools folder (I've only tested AOSP 10.0)
3. Download and extract the HTC RUU Decryption and Extraction Tool
4. Download the RUU for your device and move it inside HTC-RUU_Decrypt_Tool_XXX folder
5. Follow instructions from the RUU Decryption Tool thread to decrypt and extract the RUU, with all default settings
6. Move the vbmeta.img file you've just extracted (it's inside HTC-RUU_Decrypt_Tool_XXX/OUT_XXX/firmware) to the platform tools folder
6. Unlock bootloader
7. Restore stock firmware with microSD method or factory reset if you already have stock firmware
8. Reboot in bootloader
9. From a computer, launch a terminal, change directory to the platform tools folder, then execute "fastboot erase system"
10. Then execute "fastboot flash system <your_gsi.img>"
11. Execute "fastboot reboot bootloader"
12. Execute "fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification" (WARNING : According to 5m4r7ph0n36uru, you can't flash vbmeta via fastboot if your device isn't S-OFF, you have to use TWRP, but I don't know how, so ask someone who knows! I will update my tutorial once I see instructions.)
13. Execute "fastboot reboot"
It should boot the GSI!
On first boot it may ask for a previous decryption password and complain about a corrupt data partition. You can erase it (you will lose what was inside).
If you have bugs or issues with the GSI, there may be workarounds here: https://github.com/phhusson/treble_experimentations/wiki/HTC-U12-Plus
Enjoy your GSI on your HTC U12+!
Romano2K said:
Hi!
I've had trouble installing a GSI on my HTC U12+, but AOSP GSI maintainer phhusson helped me, so I'm sharing a quick tutorial.
1. Download and extract Android SDK Platform Tools
2. Download the GSI of your choice (ARM64, AB variant), and move it inside platform tools folder (I've only tested AOSP 10.0)
3. Download and extract the HTC RUU Decryption and Extraction Tool
4. Download the RUU for your device and move it inside HTC-RUU_Decrypt_Tool_XXX folder
5. Follow instructions from the RUU Decryption Tool thread to decrypt and extract the RUU, with all default settings
6. Move the vbmeta.img file you've just extracted (it's inside HTC-RUU_Decrypt_Tool_XXX/OUT_XXX/firmware) to the platform tools folder
6. Unlock bootloader
7. Restore stock firmware with microSD method or factory reset if you already have stock firmware
8. Reboot in bootloader
9. From a computer, launch a terminal, change directory to the platform tools folder, then execute "fastboot erase system"
10. Then execute "fastboot flash system <your_gsi.img>"
11. Execute "fastboot reboot bootloader"
12. Execute "fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification"
13. Execute "fastboot reboot"
It should boot the GSI!
On first boot it may ask for a previous decryption password and complain about a corrupt data partition. You can erase it (you will lose what was inside).
If you have bugs or issues with the GSI, there may be workarounds here: https://github.com/phhusson/treble_experimentations/wiki/HTC-U12-Plus
Enjoy your GSI on your HTC U12+!
Click to expand...
Click to collapse
Hello, which GSI did you tried from the list? If you tried more then one, which is the one that runs better?
Thank you
Hi!
I have tried AOSP 10.0 v206 system-quack-arm64-ab-gapps.img. v208 is out now.
I still have to try others.
Let us know if you find one working better than others!
i have problem with this line fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification
My fastboot say C:\adb\fastboot.exe: unknown option -- disable-verity How to fix this?
Edit: My htc is dead, power button dont work, does not respond to the charger and PC.
mientus25 said:
i have problem with this line fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification
My fastboot say C:\adb\fastboot.exe: unknown option -- disable-verity How to fix this?
Edit: My htc is dead, power button dont work, does not respond to the charger and PC.
Click to expand...
Click to collapse
Hi mientus25! I'm sorry if you bricked your smartphone trying to flash it. I think the --disable-verity option not working was a matter of platform tools (adb) version.
My htc have actually hard brick. I will try to send it to the service(warranty). Will tell you what comes of it.
fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification doesn't working
it says: not allowed in production device
bootloader:unlocked
xreeman said:
fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification doesn't working
it says: not allowed in production device
bootloader:unlocked
Click to expand...
Click to collapse
If on 2.55.401.1 try flashing this vbmeta. It already has verity and verification disabled, pulled from an S-OFF device allowing the above flashing commands. It flashed fine on my U12+ and I've been able to boot PE 10 GSI afterwards without any problems.
@Romano2K feel free to add it to the OP.
5m4r7ph0n36uru said:
If on 2.55.401.1 try flashing this vbmeta. It already has verity and verification disabled, pulled from an S-OFF device allowing the above flashing commands. It flashed fine on my U12+ and I've been able to boot PE 10 GSI afterwards without any problems.
@Romano2K feel free to add it to the OP.
Click to expand...
Click to collapse
Hello, can I may ask you if I can send you a PM? I have an HTC u12+ and I would like to install and Android 10 GSI and I would like a step by step help to do it. Can you please also tell me which bugs are you facing with it? Thank you very much
GaetanoS.89 said:
Hello, can I may ask you if I can send you a PM? I have an HTC u12+ and I would like to install and Android 10 GSI and I would like a step by step help to do it. Can you please also tell me which bugs are you facing with it? Thank you very much
Click to expand...
Click to collapse
No help by PM. I cannot do this for professional reasons. And also for personal reasons not to give individual support.
5m4r7ph0n36uru said:
No help by PM. I cannot do this for professional reasons. And also for personal reasons not to give individual support.
Click to expand...
Click to collapse
All right, would you please write a message over with all the steps here? Thank you
GaetanoS.89 said:
All right, would you please write a message over with all the steps here? Thank you
Click to expand...
Click to collapse
Starting from a Stock ROM, Bootloader Unlocked, I took the following steps to flash and boot an Android 10 GSI to my HTC U12+:
Go to Settings > System and perform a factory reset
Reboot in the Bootloader by
Code:
adb reboot bootloader
Delete the system and data partition by
Code:
fastboot erase data
and
Code:
fastboot erase system
Flash the nonverity vbmeta image via
Code:
fastboot flash vbmeta nameofvbmeta.img
(the vbmeta image must be in the fastboot folder on your computer)
Flash the GSI via
Code:
fastboot flasch system nameofgsi.img
(the GSI must be in the fastboot folder on your computer)
Reboots the HTC U12+ into Download Mode and perform another Factory Reset
Reboot and enjoy
If /data still can't be read, do another Factory Reset from settings menu
https://www.xda-developers.com/goog...al&utm_source=twitter.com&utm_campaign=buffer
Wiil this work with the U12+???
It may work for GSIs with a fixed verity status. Thus it doesn't work for some Android 10 GSIs without flashing a noverity vbmeta as. Thus I decided long ago, to never recommend such tools, and not to help people who used one, as those using such tools most of the time didn't even care learn the basics of adb and fastboot. I can't remember anyone, who used a tool, who's ever been fully capable to identify potential problems and errors, let alone how to solve them. And the latter is the baseline to start modding a device.
Sent from my Pixel 4 XL using XDA Labs
5m4r7ph0n36uru said:
Starting from a Stock ROM, Bootloader Unlocked, I took the following steps to flash and boot an Android 10 GSI to my HTC U12+:
Go to Settings > System and perform a factory reset
Reboot in the Bootloader by
Delete the system and data partition by and
Flash the nonverity vbmeta image via (the vbmeta image must be in the fastboot folder on your computer)
Flash the GSI via (the GSI must be in the fastboot folder on your computer)
Reboots the HTC U12+ into Download Mode and perform another Factory Reset
Reboot and enjoy
If /data still can't be read, do another Factory Reset from settings menu
Click to expand...
Click to collapse
Hello,
I have unlocked the bootloader yesterday, and I was having a look to your steps, and I noticed you are not using TWRP. Are you doing everything by CMD right?
Romano2K said:
Hi!
I've had trouble installing a GSI on my HTC U12+, but AOSP GSI maintainer phhusson helped me, so I'm sharing a quick tutorial.
1. Download and extract Android SDK Platform Tools
2. Download the GSI of your choice (ARM64, AB variant), and move it inside platform tools folder (I've only tested AOSP 10.0)
3. Download and extract the HTC RUU Decryption and Extraction Tool
4. Download the RUU for your device and move it inside HTC-RUU_Decrypt_Tool_XXX folder
5. Follow instructions from the RUU Decryption Tool thread to decrypt and extract the RUU, with all default settings
6. Move the vbmeta.img file you've just extracted (it's inside HTC-RUU_Decrypt_Tool_XXX/OUT_XXX/firmware) to the platform tools folder
6. Unlock bootloader
7. Restore stock firmware with microSD method or factory reset if you already have stock firmware
8. Reboot in bootloader
9. From a computer, launch a terminal, change directory to the platform tools folder, then execute "fastboot erase system"
10. Then execute "fastboot flash system <your_gsi.img>"
11. Execute "fastboot reboot bootloader"
12. Execute "fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification"
13. Execute "fastboot reboot"
It should boot the GSI!
On first boot it may ask for a previous decryption password and complain about a corrupt data partition. You can erase it (you will lose what was inside).
If you have bugs or issues with the GSI, there may be workarounds here: https://github.com/phhusson/treble_experimentations/wiki/HTC-U12-Plus
Enjoy your GSI on your HTC U12+!
Click to expand...
Click to collapse
Hello I am trying to follow all the steps on the guode, but when I have to flash the vbmeta file from Bootloader Mode I am getting this:
C:\Users\User\Desktop\ADB2>fastboot flash vbmeta vbmeta.img --disable-verity --disable-verification
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (4 KB) OKAY [ 0.004s]
Writing 'vbmeta' FAILED (remote: 'Not allowed on PRODUCTION device')
fastboot: error: Command failed
If I try to install the vbmeta from Download Mode I am getting this error
GaetanoS.89 said:
Hello,
I have unlocked the bootloader yesterday, and I was having a look to your steps, and I noticed you are not using TWRP. Are you doing everything by CMD right?
Click to expand...
Click to collapse
Yes I'm doing everything from CMD indeed. Always do so, as long as it is possible.
@Romano2K vbmeta can't be flashed via fastboot on S-On/production devices. It has to be flashed as update.zip from TWRP. It should be mentioned anywhere.
5m4r7ph0n36uru said:
Yes I'm doing everything from CMD indeed. Always do so, as long as it is possible.
@Romano2K vbmeta can't be flashed via fastboot on S-On/production devices. It has to be flashed as update.zip from TWRP. It should be mentioned anywhere.
Click to expand...
Click to collapse
So how do I have to proceed??
9. From a computer, launch a terminal, change directory to the platform tools folder, then execute "fastboot erase system"
10. Then execute "fastboot flash system <your_gsi.img>"
11. Execute "fastboot reboot bootloader"
And after?
GaetanoS.89 said:
So how do I have to proceed??
9. From a computer, launch a terminal, change directory to the platform tools folder, then execute "fastboot erase system"
10. Then execute "fastboot flash system <your_gsi.img>"
11. Execute "fastboot reboot bootloader"
And after?
Click to expand...
Click to collapse
Which software version are you running!?
Sent from my Pixel 4 XL using XDA Labs
5m4r7ph0n36uru said:
Which software version are you running!?
Click to expand...
Click to collapse
I was running Android 9 stock. After a few trials I have been able to install and boot the Pixel Experience and the permessiver and everything seems to work without flashing the vbmeta file

Magisk patched root boot.img for O2 UK users + working Xposed

Hey guys,
First things first - use at your own risk! This worked for me and I'm just kindly sharing this to help users out.
For any UK O2 users (or perhaps any other users this may work for?!) here is an extracted and magisk-patched boot image from the "XQ-AT51_O2 Pay monthly UK_1321-8375_58.0.A.0.1040_R7A" downloaded with Xperifirm
In order to flash this boot.img you first need to unlock your bootlader
Then you need to boot into fastboot
*Note I had issues getting Windows to recognise my phone in fastboot however needed to disable Windows driver enforcement and then install the drivers
Once successfully in fastboot mode, I use Minimal ADB and Fastboot (having placed the patched boot.img in it's folder) and use the following commands:
fastboot flash boot_a magiskboot.img
fastboot flash boot_b magiskboot.img
fastboot reboot
NOTE - Safetynet DOES NOT CURRENTLY PASS "Ctsprifle:false". Also whilst I have managed to get Xposed running, this meant "basicintegrity:false" too.
For Xposed to work, I use the following files (others may work, but this works for me):
magisk-riru-core-v19.5.zip - flash in Magisk first
magisk-EdXposed-YAHFA-v0.4.5.5_beta-release.zip flash this second
EdXposedManager-org.meowcat.edxposed.manager-4.5.1-451-release.apk - install this and reboot
Enjoy!

Just Rooting MIUI 12.0.6

A Big Hello to Everyone!
I just want to root my RN8P that has an unlocked bootloader and MIUI 12.0.6 on it.
Do I need to follow the megathread all the way to CFWv2 (Or can I use v4 ?) Installation?
If I can, Is my understanding of steps as below correct?
Downgrade to MIUI A9, Flash Preloader/LK, Flash LR-Team Recovery, Boot into recovery, Wipe system/cache/dalvik, Install CFWv2, Install V12.0.6.0.QGGMIXM from Recovery, Format data, Reboot to bootloader, Flash CFW Recovery (OrangeFox any good?), Reboot to CFW-Recovery, Install Magisk, Done?
If I can't have root+recovery+miui 12.0.6 together which A11 Rom and recovery is most stable currently.
Thanks for your help.
EDIT: BTW, what's Unified TWRP/OrangeFOX in begonia-oss?
EDIT2: Wait a minute can i just use boot.img from miui 12.0.6 rom and patch it w/ magisk app itself then flash that patched boot.img?
The Correct Way to Root MIUI 12.0.6 I've found out to be as follows:
0. Unlock Bootloader
1. Extract vbmeta.img and boot.img from ROM's zip file
2. Enable USB Debugging
3. Enter Fastboot Mode
4. Connect to PC and Use "fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img" to disable Boot Verification.
5. Reboot into phone and Patch your boot.img using Magisk
6. Reboot into Fastboot and Use "fastboot flash boot patched_boot.img"
7. Reboot and Enjoy Root.
Correct. But since you have closed your VBMeta, why don't you enjoy custom recovery as well?
Flashing non-CFW build of any recovery will work (I've used "OrangeFox-R11.0_5-Unified-begonia.img" from that oss folder, but it seems they have erased the file). But now I'm in v12.0.7. Decryption didn't work anymore since the vanilla kernel is updated.
Press vol up while excecuting reboot command, and you should boot to recovery.
But updating will be a pain in the ass, as you would need to restore vanilla to your device, then install update via miflashpro-recovery mode (just restoring boot, recovery, vbmeta isn't enough to make internal updater work, but don't go 12.0.7 anyway)

Question How to root without twrp

My problem is that I have installed a custom rom that is no longer in support in XDA .
So when I tried to to boot using fastboot boot twrp.img command my device won't boot in twrp therefore I am not able to install twrp hence magisk is still not working.
Is there any other way to root my mi 11x witouht using custom recovery.
Yes. It's the twrp fastboot method.
1. First of all you need the boot.img from your ROM. For a fastboot ROM it's in the Images folder. For an OTA you have to use a payload.bin extractor.
2. Then install the magisk manager app and use patch boot.img
3. Then install the patched boot.img through fastboot
Full instructions:
Installation
The Magic Mask for Android
topjohnwu.github.io
Robert314 said:
Yes. It's the twrp fastboot method.
1. First of all you need the boot.img from your ROM. For a fastboot ROM it's in the Images folder. For an OTA you have to use a payload.bin extractor.
2. Then install the magisk manager app and use patch boot.img
3. Then install the patched boot.img through fastboot
Full instructions:
Installation
The Magic Mask for Android
topjohnwu.github.io
Click to expand...
Click to collapse
Thanks sir. But someone says me that when he tried this method his phone stuck on miui logo and not working.. he has same mi 11x.
Tanishkmusic said:
Thanks sir. But someone says me that when he tried this method his phone stuck on miui logo and not working.. he has same mi 11x.
Click to expand...
Click to collapse
Maybe they used the wrong boot.img for their ROM. Are you using MIUI? If so it may be more difficult as you've got to get the correct version from firmware finder. Even then magisk might not like your MIUI install. I've heard people running custom ROMs able to install magisk on Mi11X. E.g HavocOS, ArrowOS etc
This is the only way to install magisk properly at the moment
Edit: if you prefer MIUI there is another alternative by flashing on of the improved MIUI ROMs (they just take MIUI and add slightly extra features and improve performance). I can't link the telegram group on XDA but you can PM me
Tanishkmusic said:
My problem is that I have installed a custom rom that is no longer in support in XDA .
So when I tried to to boot using fastboot boot twrp.img command my device won't boot in twrp therefore I am not able to install twrp hence magisk is still not working.
Is there any other way to root my mi 11x witouht using custom recovery.
Click to expand...
Click to collapse
To install twrp do this:
(pre requisites)
-driver for f3 installed;
-adb and fastboot or platform tool (preferable) on the pc;
-usb debugging enabled on the phone.
Therefore:
1) download the .img file of the twrp you want to install, I used this:
Downloads for : Xiaomi Redmi K40 / Poco f3 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
2) rename the file to twrp.img (for convenience);
3) move the trwp.img file to the adb and fastboot folder (if you use adb) or to the platform tool folder (if you use platform);
4) always in the same folder open a cmd window (go to the address bar, type cmd and press enter);
5) after activating usb debug on the phone, turn it off, start it in fastboot (long press of Power + volume -) and connect it to the pc;
6) check if fastboot recognizes the phone with this command:
Code:
fastboot devices
If your phone code appears you can start it in twrp.
7) to start it in twrp type this command:
Code:
fastboot boot twrp.img
8) now the phone should automatically boot into twrp, so go to Advanced> Flash Current TWRP
done, you should now have twrp installed. for the root there is this guide:
Magisk App 24.3 (Magisk Manager) Latest Version For Android 2023
Magisk is a multi-tasking rooting solution that root device in a systemless format without changing the internal files.
magiskapp.com

Categories

Resources