[Guide] Root for Redmi Note 9 - Mediatek (Helio G85)

Search This thread

VD171

Senior Member
Jun 21, 2012
2,937
2
2,172
127.0.0.1
LG K10
Samsung Galaxy J7
  • Like
Reactions: RN9_G85

TheMagnificent_Y

Senior Member
Feb 3, 2021
53
0
Yeah, i meant the patched magisk boot image that this original post reffered to, while i do appreciate the help, I was just wondering if you have the image I'm looking for.


-Thanks.
 

VD171

Senior Member
Jun 21, 2012
2,937
2
2,172
127.0.0.1
LG K10
Samsung Galaxy J7
Yeah, i meant the patched magisk boot image that this original post reffered to, while i do appreciate the help, I was just wondering if you have the image I'm looking for.


-Thanks.
Original Stock BOOT.IMG for MERLIN
+ Magisk Patched BOOT.IMG for MERLIN
+ Original Stock VBMETA.IMG for MERLIN
+ Original Stock RECOVERY.IMG for MERLIN
 
  • Like
Reactions: RN9_G85

TheMagnificent_Y

Senior Member
Feb 3, 2021
53
0
Wow! Thanks, Mind telling me what I need to flash if my device accidentally gets bricked?

PS: My Miui is 11.0.5, while the images you provided specify "12.0.5", is it safe to flash?

-Thanks.
 

boogaa

Member
Apr 9, 2021
9
0
Hello,

Thank you everyone.
I have a little question : Does this guide work with the version MIUI 12.0.9 Global ? Has anyone tried it successfully?
 

TheMagnificent_Y

Senior Member
Feb 3, 2021
53
0
Hello,

Thank you everyone.
I have a little question : Does this guide work with the version MIUI 12.0.9 Global ? Has anyone tried it successfully?
Nope, the "12" in that ROM version reffers to all EUROPEAN roms, so no, it will not work.
There are many differences, either downgrade to 11.0.***, or DO NOT TRY THIS METHOD.


PS: All you have to do to downgrade is simply flash a earlier ROM, or in this case 11.0.50 / *40 Just find the right ROM for your device, and make sure it's designed for FASTBOOT only.

Never trust un-official sources, and flash it with the Mi Flash Tool, if you have any questions, just ask.
 
Last edited:

TheMagnificent_Y

Senior Member
Feb 3, 2021
53
0
Nope, the "12" in that ROM version reffers to all EUROPEAN roms, so no, it will not work.
There are many differences, either downgrade to 11.0.***, or DO NOT TRY THIS METHOD.


PS: All you have to do to downgrade is simply flash a earlier ROM, or in this case 11.0.50 / *40 Just find the right ROM for your device, and make sure it's designed for FASTBOOT only.

Never trust un-official sources, and flash it with the Mi Flash Tool, if you have any questions, just ask.
If you want to stay on the latest OTA,

If you're using the Redmi Note 9 merlin / merlinnfc, here's what you need to do:

Download the magisk app, patch a boot image, (dosen't matter what type of image, it just has to be a ".img" file.)
And disable vbmeta verification by flashing the stock vbmeta image with:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Then flash the boot partition with the PATCHED MAGISK IMAGE.
fastboot flash boot $Insert Image file name here$
 

boogaa

Member
Apr 9, 2021
9
0
If you want to stay on the latest OTA,

If you're using the Redmi Note 9 merlin / merlinnfc, here's what you need to do:

Download the magisk app, patch a boot image, (dosen't matter what type of image, it just has to be a ".img" file.)
And disable vbmeta verification by flashing the stock vbmeta image with:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Then flash the boot partition with the PATCHED MAGISK IMAGE.
fastboot flash boot $Insert Image file name here$
Thank you so much for your help.
Just to be sure, I'm using the Redmi note 9 merlin, so, can I use this version (here) :
magisk_patched-v20.4--V12.0.5.0.QJOMIXM_20201119.0000.00_10.0_global.img
 

VD171

Senior Member
Jun 21, 2012
2,937
2
2,172
127.0.0.1
LG K10
Samsung Galaxy J7
Nope, I am in version 12.0.9.
So i will wait a little...
Thanks
Just extract the boot.img from the firmware and then patch it by yourself using the magisk app.
And then flash the patched boot.img
Here you can find official firmwares for MERLIN:

Or here, you can find the whole rom for MERLIN:
 
  • Like
Reactions: RN9_G85

TheMagnificent_Y

Senior Member
Feb 3, 2021
53
0
Thank you so much for your help.
Just to be sure, I'm using the Redmi note 9 merlin, so, can I use this version (here) :
magisk_patched-v20.4--V12.0.5.0.QJOMIXM_20201119.0000.00_10.0_global.img
Not so fast! What's your current MIUI version?

It's very important that you tell me THE EXACT miui version. Or hell, take a screenshot of the update page and send it to me.
 
Last edited:

TheMagnificent_Y

Senior Member
Feb 3, 2021
53
0
Thanks guys !!!
My current MIUI version is V12.0.9.0.QJOEUXM.


I'm not sure I know how to do this...
Any guide or advices ?
What you need to do, is put the boot.img on your device, then select it through magisk, and patch it,

then offload it (or transfer it through USB) on to your PC,
Then with the 12.0.90 MIUI rom's vbmeta image run:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
then:
fastboot flash boot $magisk patched image file name here$

Make sure all files are in the same platform-tools directory.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    Preamble:

    After a bit of research, I've found a simple way to - at least - obtain root privileges on the basic version of Redmi Note 9 (Mediatek - Helio G85).

    The procedure has been tested on a Redmi Note 9 Global NFC 4/128 (Model: M2003J15SG) with MIUI Global 11.0.5.

    The attached files comprise:

    • Original Boot Image from MIUI Global 11.0.5 (provided as a courtesy, download your own copy from MIUI Website if you wish)
    • Patched Boot Image from Magisk on MIUI Global 11.0.5 (again, the file provided as a courtesy; you can generate your own file, on your device.)
    • VBMETA Patched Image: essential to the process, this file has not been created by me. Courtesy of user Neko-kun from MI.cn Forum. I can only confirm that the file works as expected; please, if you have the required expertise, inspect the file and report your findings.

    Warning:

    This procedure depends on having previously unlocked the bootloader. Doing so you have read, understood and accepted all the information regarding security and potential stability issues given by XIAOMI before completing the procedure.
    Also, this means you have understood and accepted potential warranty issues arising from such procedure, and you understand the risks associated with a rooted device.
    I'm not responsible for any damage, loss of personal data, brick or loss of usability arising from following this procedure and/or from any user error committed by doing so.
    As a result, your warranty may be void, according to laws in effect in your state.


    This procedure is only valid for Redmi Note 9 (not the Pro version, not the 9S version) with MEDIATEK chipset


    Note:
    Always make a back-up of your data! This procedure will re-initialize the device.


    Requirements:

    • A valid MI Account, associated with the phone, used to certification in the bootloader unlocking procedure. (via official MI UNLOCK)
    • Unlocked Bootloader (new devices usually have a 7-day waiting period)
    • A personal computer with FASTBOOT installed, basic knowledge of FASTBOOT commands, drivers correctly installed on your system of choice. (for windows users, a valid solution is "Minimal ABD and Fastboot".)

    Resources:

    1. Magisk Manager
    2. Boot Image / Magisk Patched Boot Image / VBMeta Image - link or see attached files

    Procedure:

    1. Download the attached files (or generate the first two on your own device, using Magisk Manager).
    2. Copy the prepared files inside the fastboot directory (so you don't have to worry about file path in the following steps)
    3. Reboot the phone into Fastboot Mode (hold Power+Volume Down until fastboot screen)
    4. Connect the phone to the computer, open fastboot terminal and issue the following commands. BE PATIENT AND DOUBLE CHECK EVERYTHING BEFORE CONFIRMING! Text between round brackets are comments, it must not be copied.
      Code:
      fastboot devices (check your phone is the only device shown)
      fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img (this disables system changes)
      fastboot erase userdata (this will clear user data!)
      fastboot erase cache
      fastboot flash boot magisk_patched.img
      fastboot reboot
    5. The following first reboot will take a while. After completing the initial configuration, install the latest Magisk Manager (at the time of writing, v. 7.5.1) and continue with the configuration following the in-app prompt.
    6. Phone will reboot at the end of the procedure. Launch once again Magisk Manager, select the "Beta Channel" for updates and enable Magisk Hide.
    7. Reload Magisk Manager, check for Safety Net: you should have the green light.
    Enjoy your root privileges. (aka, get rid of the bloatware ;) )



    Known BUGs / LIMITATIONS:

    • Can't modify /system partition
    • Need to temporary set SELinux to permissive in order to remove system apps. Please refer to this post.
    5
    Removing "Bloatware"

    Probably one the main reasons for obtaining root privileges is to get rid of some default apps which come bundled with the official MIUI.

    Given the current situation for this device, using classic methods (such as Titanium Backup / System App Remover / etc.) is not possible and - most probably - attempting in doing so will result in a soft-brick.

    Instead, there is a particularly useful Magisk Module that can be used for this scope: Debloater.

    You can read more about it here on XDA; the installation procedure will vary just a bit since there is currently no TWRP support for the Helio G85 Redmi Note 9.


    Installing Debloater

    1. Launch Magisk Manager and select "Download" from the menu
    2. Use the search function to locate the package "Busybox for Android NDK"
    3. Install the package, and chose to skip the reboot at the end of the procedure.
    4. Use the search function to locate the package "Debloater Terminal Emulator"
    5. Install the package and this time proceed with the reboot
    6. When the reboot is complete, install any terminal emulator app from PlayStore (like Termux)
    7. Open the terminal and issue:
      Code:
      su
      (confirm the request for superuser access) and then
      Code:
      debloat


    Now you can use Debloat to remove all the unwanted applications that come bundled with the ROM.

    Please refer to the video included in the post mentioned above to learn more about Debloat and how to use it.
    3
    Tested on RN9 Global non-NFC (M2003J15SS) with MIUI 12 Global

    Hi, just to inform. The following was tested in Redmi Note 9 Global non-NFC (M2003J15SS) with MIUI 12 Global.

    - Patched boot image from MIUI12 Global (Android 10) works fine if dm-verity and forced encryption are disable at the time of making the boot image with magisk.

    - vbmeta file provided by OP also works (I think any file would work if it's flashed with "--disable-verity --disable-verification" option. This option is essential to avoid bootloop after flashing any non-stock (or patched) image to any partition:
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    The vbmeta file I used was extracted (and possibly) edited from a previous version of MIUI (MIUI11), and applied over MIUI12 ROM, that's why I think any file could be used.
    2
    The download link in the first post does not work any longer ... Gives a 404. Please re-upload and don't use XDA's upload space. Thanks!

    Sorry for the inconvenience, there is still the MEGA link from the first post up and working.
    Here it is: https://mega.nz/file/ucFDXIaY#FrUllKuUASoStlSvrcMYABsbYv6ie-WHR4zOqJMdP4E
    2
    So my device is not rooted?
    You don't need to modify the system to root with magisk.
    Magisk is SYSTEMLESS.
    Attach the main screen of the Magisk app and let's see.