How to unlock & root Redmi 9S & 9 Pro using official tools only - fully working

Search This thread

MrBlacky

New member
May 4, 2021
1
0
Hello can someone help me? The first time I followed all the steps and it worked perfectly, but the version V12.0.6.0.QJWMIXM (MIUI12) was installed automatically and I lost the root, I tried again but in CMD whenever I try to execute the command appears <Waiting for any device> and I can't make magisk active...
 

Souminona

Member
Aug 13, 2015
18
2
Thimphu
Redmi Note 9 Pro
Hello Guys,
I've made several attempts to root my device but failed. Bootloader is unlocked>installed orange fox recovery successfully but i cant view magisk file. Currently running on Android 11/miui 12.0.4(RJWINXM)
 

Lookass13

New member
Jun 15, 2021
3
0
Hello there, it is possible to unlock my Redmi note 9pro without mi account sign in onto it? My rn9pro is currently in bootloop state! Help me please.
 

joaovitorbf

New member
Dec 17, 2015
3
0
Using the Magisk patched boot.img is giving me a bootloop during the MIUI logo. The screen brightness keeps going down and back up again.
I'm currently on V12.0.2.0.RJWMIXM
Any ideas?
 

joaovitorbf

New member
Dec 17, 2015
3
0
Using the Magisk patched boot.img is giving me a bootloop during the MIUI logo. The screen brightness keeps going down and back up again.
I'm currently on V12.0.2.0.RJWMIXM
Any ideas?
Solved after some hours. My Magisk modules were causing the bootloop. I forgot that they are preserved between flashes.
You can use OrangeFox's built in Magisk Manager to disable them.

EDIT: It was specifically the Universal SafetyNet Fix package. I just needed to update it.
 
Last edited:

iostrym

Senior Member
Aug 11, 2011
135
7
Hello I have 'joyeuse' rom. It seems to be 'orange' one (french operator). I discover that my phone is google play not certified and I can't install netflix or disney plus. I followed tutorials to activate the certification using GSF number but nothing change.

Do you have a solution for this ?
 

Thijs_Rallye

Senior Member
Mar 25, 2016
89
20
Allright, I took the plunge yesterday evening because I was already 2 updates behind.

So, updated Magisk first to v23 (app+module), unrooted and ran 2 OTA's in sequence. First OTA took me to 12.0.4.0_QJZEUXM, second OTA took me to 12.0.1.0_RJZEUXM. In advance I had already downloaded the complete ROM's from the Xiaomi website, patched the boot.img and transferred this to my SD card.

OTA's and re-rooting went fine (using my own guide in this topic :p ), albeit that apparantly the safetynet now seems to fail. Has anyone else have this experience?
----------


Edit: after some searching on google it appears Google has changed the attestation of these devices. Anyway, I've managed to get the device to pass after tweaking some settings:

1) Enabling Magisk hide in the Magisk app helped me pass the basic integrity test. Apparantly hiding Magisk is disabled by default now, which I had missed at first.

2) Next downloading the latest version of Safetynetfix by KDragon. Latest version can be found here: https://github.com/kdrag0n/safetynet-fix/releases . Installation instructions and the ins and outs of how the attestation works and how KDragon managed the work around is described here: https://www.thecustomdroid.com/fix-safetynet-hardware-attestation-guide/ , a must read!

3) Install the aforementioned zip file in Magisk and reboot the phone.

4) Attestation is reverted back from Hardware to Basic and all passes ok now!

This is working for me on a JOYEUSE device.
 
Last edited:
  • Like
Reactions: Waweo

Ud4ba

Senior Member
Jul 17, 2019
168
60
Xiaomi Redmi 4a
Redmi Note 9 Pro
Im trying to unlock bootloader on Redmi Note 9 pro , i have done all the steps correctlty , my device will get recognized at adb but not at fastboot to unlock the bootloader . any ideas what i should do?
 

t3rm3y

Senior Member
Feb 18, 2009
480
10
Essex
Im trying to unlock bootloader on Redmi Note 9 pro , i have done all the steps correctlty , my device will get recognized at adb but not at fastboot to unlock the bootloader . any ideas what i should do?
I think you have to get it officially unlocked by xiaomi? Register, request unlock, wait how weever many hours and then unlock it with their app... At least that's how it used to be.
 
  • Like
Reactions: Thijs_Rallye

iostrym

Senior Member
Aug 11, 2011
135
7
Hello I have MIUI version 12.5.3.0 (RJZEUOR). I'm root. My phone warn me there is an update available 12.5.7.0 (RJZEUOR). But when I accept to install it, after the download is over the phone restart et go directly in TWRP. Then I can reboot to system but the update is not done.
What can I do to install it ? (In the past I did successfull update with this phone without problem)
 

Thijs_Rallye

Senior Member
Mar 25, 2016
89
20
Hello I have MIUI version 12.5.3.0 (RJZEUOR). I'm root. My phone warn me there is an update available 12.5.7.0 (RJZEUOR). But when I accept to install it, after the download is over the phone restart et go directly in TWRP. Then I can reboot to system but the update is not done.
What can I do to install it ? (In the past I did successfull update with this phone without problem)
If you have flashed TWRP you cannot take the OTA. Never could either. You will need stock recovery for taking an OTA.
 

iostrym

Senior Member
Aug 11, 2011
135
7
Thanks Maybe I did this by error in my last manipulation (because after each update I needed to re-root again using TWRP). Then what would be the solution ? Can I install the update using TWRP and an official file provided by Xiaomi ?

Or Can I unflash TWRP ?
 

Thijs_Rallye

Senior Member
Mar 25, 2016
89
20
I don't know, you can flash back the original recovery (if you made a backup) but I've never tried this before. In this topic I've described the way how I have rooted my phone and taken an OTA before with the original fastboot tools, since there was no TWRP for the Joyeuse device. You will have to search for my post in this topic.
 

iostrym

Senior Member
Aug 11, 2011
135
7
So your proposal is to load an OTA from a Xiaomi file and load it using a computer + USB tools. (Fastboot).
Shouldn't it be more simple as I have TWRP already installed and it can flash a zip file ?

How can I know if the update will erase or not my application and settings? Because OTA are clean update and don't erase anything
 

Thijs_Rallye

Senior Member
Mar 25, 2016
89
20
No that is not what I said / meant. I rooted my phone with the OEM tools.

For taking an OTA you need to restore your original recovery.

Flashing an OTA with fastboot wil surely brick your device.

Read my old post in this topic and compare it to the way how you rooted your phone. Only you know how you rooted it. Then you'll see what is comparable and what isn't can and how to continue.

Edit: added the links
How to root with OEM tools:

How to take the OTA with OEM tools:

 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    How to unlock & root Redmi 9S & 9 Pro using official tools only - fully working

    MOD NOTE: This guide is only for devices with Qualcomm Snapdragon chipsets, NOT MediaTek!

    This tutorial guides you through unlocking and rooting your Redmi 9 Pro & Redmi 9S (or really any Xiaomi phone that came with MIUI11 and a Snapdragon processor) using official tools with verified sources. This is much more reliable than blindly trusting shady closed-source TWRP mods, which don't fully work or flashing pre-patched boot images, which are not meant for your phone. Note that currently there is no official TWRP for any Android 10 phone.

    I have tested this myself on Redmi Note 9S Global, MIUI V11.0.8.0.QJWMIXM. Everything is working as expected, there are no issues with SU and file managers as mentioned in the other thread.

    Step 1 - unlocking the bootloader
    Skip this section if your phone has its bootloader already unlocked.

    1) Insert a valid and mobile data enabled SIM card and sign in or create a Mi Account. This is sadly necessary, as every unlock must be approved by Xiaomi's automated system. It also forces you to wait for a full week with a countdown before unlocking is allowed. This step is necessary only once for the very first time.

    2) Download Xiaomi's official unlocking tool. I encourage you to read the linked tutorial specifically the section "Unlocking Bootloader Procedure". tl;dr - you need to enable developer options, go to Settings > Additional settings > Developer options > Mi Unlock Status and apply for an unlock.

    3) Reboot to fastboot recovery mode (hold Vol- and Power when powering on the phone) and run the Mi Unlock tool on your Windows PC. After jumping through a few hoops, you should arrive at the following screen saying that you have to wait for 168 hours.

    pyqPMji.png


    4) Reboot the phone and keep it powered on during the following week. When 168 hours have passed, repeat step 3 and this time it should finally unlock. Note that this erases your data, which is always the case when unlocking bootloader on any Android phone.

    Step 2 - installing Magisk and patching your boot image

    1) Download the official ROM from here - make sure the model of your phone and the installed firmware EXACTLY match what you're downloading. If they don't, it will most likely NOT work correctly - bootloops, wifi not working etc.

    2) Install Magisk Manager (.apk) on your phone from the official Magisk repository.

    3) Extract boot.img (about 128MB) from the official ROM zip you downloaded and transfer it to the phone. Click "install" in Magisk Manager and point it to boot.img. This should result in a patched magisk_patched.img (about 15MB - padding was removed), transfer this file to your computer. Ideally to the Mi Unlock folder where fastboot.exe is located.

    4) Reboot your phone to fastboot recovery mode. Open a command prompt in the folder of the Mi Unlock tool and run
    Code:
    fastboot flash boot magisk_patched.img
    This flashes the patched Magisk-enabled bootloader to your phone.

    5) Reboot the phone and that's it! Verify root status in the Magisk Manager app.

    xQjkzOW.jpg


    Other useful stuff

    Here's a link to the official and up-to-date platform tools - ADB and fastboot: https://developer.android.com/studio/releases/platform-tools
    This is the custom near-stock Android ROM I ended up using instead of the buggy MIUI ROM: https://xdaforums.com/redmi-note-9-pro/development/gsi-t4105121
    There have been developments on TWRP for Android 10, but there is still no official working TWRP for devices that shipped with Android 10 - https://www.androidpolice.com/2020/...h-limited-android-10-support-and-other-fixes/ (as of August 23 2020)
    2
    is it working good? what recovery do you use?

    There is no stable and fully working recovery for Android 10 yet, unfortunately.

    How data is used to unlock the bootloader?
    I want to root this phone.

    Since we have to have a phone service to unlock the phone, how much data is used?
    I have no cell plan and have to get a prepaid sim.
    Thx, d.

    It's hard to know for sure, because it's some proprietary Xiaomi stuff, but it seems it transferred very little data, probably just some auth tokens and such. It's quite dumb they force you to use mobile data just to unlock the bootloader.
    2
    Allright, now I have a question of my own, the latest MIUI update has been rolled out to my device. My device is rooted as per the guide in the OP, Joyeuse version.

    Can I take this update via OTA or do I have to reflash the stock boot.img from 11.0.03.0 before I take this OTA?

    Thanks and regards from the Netherlands!



    https://bigota.d.miui.com/V11.0.4.0...AGlobal_V11.0.4.0.QJZEUXM_fd5baa5f96_10.0.zip


    Okay, for the ones in the same situation I've managed to install the OTA without bricking / bootlooping etc. The way I've managed it is described below. Prerequisite: rooted phone with stock MIUI and stock recovery)

    I cannnot stress enough that using this guide is at your own risk. Triple check the firmware files you download because if you **** up with a firmware for a different mainboard you can potentially hard brick the device.


    1) Download the full ROM update from: https://c.mi.com/oc/miuidownload/detail?device=1900378
    2) Open the ZIP file and extract the boot.img file, transfer it to your phone / SD card.
    3) Open Magisk manager and select install (source). Point Magisk to the boot.img you've just transferred to your device and patch the boot. Magisk will create the patched boot in /0/download.
    4) Transfer the patched boot image to your PC preferably in the same directory where you keep your ADB toolkit, we'll need to flash this file later.
    5) Now back in Magisk manager select uninstall at the bottom and select "Restore Images". (source) This will restore the system so that no security checks will be tripped during the OTA.
    6) Download and install the OTA. Let the device reboot when it needs to.
    7) As soon as the device has started (which took a while in my case) you can plug in the USB cable in your PC, (administrator CMD window) and type: abd reboot bootloader. The device will enter fastboot with the communist bunny :p.
    8) Now you can flash the patched boot file which was created in step 3 and 4. Type: fastboot flash boot YOUR_MAGISK_PATCHED_BOOT.img
    9) When the flashing has completed type: fastboot reboot

    And your phone is up to date and rooted again.

    Regards,

    Thijs
    2
    Please stop playing with your phone life!
    You are on RN9 that is Mediatek powered and not Qualcomm as S and P type are.
    Be patient and wait for a MTK rom release.

    Well the title says this works for the 9 model so i wanted to contribute clarifing it does not. Only for 9s and 9pro
    1
    Im trying to unlock bootloader on Redmi Note 9 pro , i have done all the steps correctlty , my device will get recognized at adb but not at fastboot to unlock the bootloader . any ideas what i should do?
    I think you have to get it officially unlocked by xiaomi? Register, request unlock, wait how weever many hours and then unlock it with their app... At least that's how it used to be.