How To Guide Unlocking and Rooting Xiaomi 12S Ultra (Twrp/Magisk)

Search This thread

Sathelp

Senior Member
Nov 27, 2007
818
231
Brean, Somerset
Xiaomi Mi 11 Ultra
Worth first restarting the phone, some who get this error have this and a simple restart can resolve it. If not then check the twrp you are using. ( This taken from a post in the EU forum, Here )
BOOT / REC TWRP for some devices
For some devices there are different TWRPs available
1.) BOOT-TWRP -> fastboot boot twrp - boot TWRP only
2.) REC-TWRP -> fastboot flash recovery_ab twrp.img - install TWRP permanent
3.) BOOT-REC-TWRP -> you can use both fastboot commands -> see 1.) & 2.)

All the previous firmware versions are on Mifirm including the fastboot version. The twrp I used I kept a copy on my mega page. You are free to use it if you want from here, 129mb

And use command prompt, not miflash. I have never used it and never get issues.
 
Last edited:

joiliko

Member
Aug 17, 2022
8
0
And use command prompt, not miflash. I have never used it and never get issues.
Great many thanks! In fact, I did use Miflash fastboot ROM, worked as a charm, although it did give me an error. Never thought flashing ROMs might be so inconvinient in 2k22.
So glad I noticed "no data wipe" toggle

Later, I used the older recovery from first post and solved the issue completely

Now I have a question:
Do you know whether recoveries posted here (basically from EU website) are REC or BOOT? Or how can I tell the difference?
 

Sathelp

Senior Member
Nov 27, 2007
818
231
Brean, Somerset
Xiaomi Mi 11 Ultra
One is temporary (boot) and the other is permanent (flash).
Boot twrp is normally but not always in an .img format and a recovery twrp is normally but not always in a .zip format.

Here is a link to a really good explanation.

I'm also glad that you are now ok and running.
 

NOSS8

Recognized Contributor
One is temporary (boot) and the other is permanent (flash).
Boot twrp is normally but not always in an .img format and a recovery twrp is normally but not always in a .zip format.

Here is a link to a really good explanation.

I'm also glad that you are now ok and running.
Not really.

For this device there are 2 TWRPs and not 3 as you said above.#21
The Boot version which is not temporary if you use the following procedure:

Phone in fastboot mode
Command:
fastboot boot twrp.img
power shell
./fastboot boot twrp.img
then in Twrp go to Advanced -> flash current TWRP.

The REC version installs this way:
Either with the TWRP
Install select img/recovery/AB partitions
or
with the command "fastboot flash recovery_ab twrp.img"

No REC BOOT version.

And it seems to me that the link you post makes no reference to the BOOT or REC version, it's mostly general.
Currently the SKKK site is down, the proposed version is REC.
 

Sathelp

Senior Member
Nov 27, 2007
818
231
Brean, Somerset
Xiaomi Mi 11 Ultra
You obviously didn't read the whole page. And I only mention 2 twrp versions as I was asked about the 2. What is the third version I wrote about, recovery fastboot and what?

Please, if your only here to criticize posts rather than try to help people, then please ignore everything I post. I had no need to give any explanation but I did to try and help him, which I seem to have. I could have just sent him to the EU forum or tell him to Google the answer but no, tried to help. May be you can add something to assist next time.
 

NOSS8

Recognized Contributor
You obviously didn't read the whole page. And I only mention 2 twrp versions as I was asked about the 2. What is the third version I wrote about, recovery fastboot and what?

Please, if your only here to criticize posts rather than try to help people, then please ignore everything I post. I had no need to give any explanation but I did to try and help him, which I seem to have. I could have just sent him to the EU forum or tell him to Google the answer but no, tried to help. May be you can add something to assist next time.
This is a fix to avoid errors and indeed we are here to help, ask questions, provide content, without providing false or bad information because when you say the Boot version is temporary, you are wrong.
,
"
You obviously didn't read the whole page. And I only mention 2 twrp versions as I was asked about the 2. What is the third version I wrote about, recovery fastboot and what?"
Here:
https://forum.xda-developers.com/t/...i-12s-ultra-twrp-magisk.4476901/post-87735131
"
1.) BOOT-TWRP -> fastboot boot twrp - boot TWRP only
2.) REC-TWRP -> fastboot flash recovery_ab twrp.img - install TWRP permanent
3.) BOOT-REC-TWRP -> you can use both fastboot commands -> see 1.) & 2.)"
There is currently no [BOOT REC] version
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    A very well known disclaimer : your warranty is void after doing this. And I am not responsible for any damage caused on your device. It's all on you.

    Make sure to have your google play store apk downloaded somewhere.
    Unlocking the bootloader will wipe all data AND your play store.

    but you don't have to use xiaomi google play service installer or such.
    This phone has built in google service, and just the play store goes away by factory reset.

    1.Mi Unlock - link​

    Download the tool on pc, enable developer options on your phone
    (My device - All specs - tap miui version 7 times).

    Go to dev options(Additional Settings) and enable OEM unlocking.
    Right below, there is Mi Unlock Status.
    Link the device to your Mi account.

    From this moment, you have to wait 168 hours
    WITHOUT logging out Mi account on your phone
    or adding another device on your Mi account.

    Else, the counter will reset.
    The counter is server-sided.
    No need to worry about restarting or turning off the device during this period.

    Goto Mi account and add your PHONE NUMBER to the account.
    Else, you will face loading loop on Mi unlock tool after typing in the verification code.
    Once that is done, boot to fastboot
    (turn off device, then hold power and volume down, or use 'adb reboot fastboot')

    and use Mi unlock tool to make sure you see
    "try again after 168 hours" message.

    That's it. Come back after 168 hours(1 week) and unlock your phone using the tool.
    Your bootloader will be unlocked now.

    ADB/Fastboot - just in case you don't have it
    go setup fastboot for later steps.


    2.Rooting​

    There are two ways of rooting now that we have a twrp.

    /

    Method A : (TWRP Root) way easier.​

    TWRP - please refer to my post

    download twrp, and use fastboot.
    fastboot boot twrp-3.6.2_A12-thor-unofficial.img
    (or your img name)

    Once you boot into twrp,
    go to "Advanced" and "flash this twrp."
    when it's done, do not reboot,
    go back and in the same Advanced menu, install magisk(not alpha). That's it!

    Now reboot to the system,
    you will see brown magisk app that basically does nothing but infinite download,
    ignore the app and get yourself a magisk app below,
    once installed and opened it, magisk will tell you to reboot once more.

    Now you are fully rooted!

    Magisk - link​

    /

    Method B : (Magisk root)​

    if you are going to use twrp, just follow method A else you have to go back to the bootloader again and do all that stuff. Twrp method does all at once.

    Magisk patched boot img - 13.0.7 Latest (Magisk original 25.2)
    or the same file attached below.

    Magisk Patched boot.img - 13.0.5(Magisk canary)

    Basically download the ROM, get boot.img out of it, and use Magisk to patch it.

    Now put your device to fastboot mode, place boot.img to your ADB folder (C:/adb) and type these one by one.
    fastboot flash boot_ab boot.img
    fastboot reboot

    now you have a rooted device!


    3. Safetynet Fix -link updated.​

    Apply this patch via Magisk
    Enable Zygisk, enforce DenyList,
    and then toggle these options in cofiguration.

    Screenshot_2022-08-06-08-55-49-571_oujxqlqyxkbbg.b.c.y.jpg


    Now you should be able to pass the Safetynet test.
    Also add you banking apps or anything it shouldn't detect root and Magisk.

    Feel free to leave any questions below.

    For advanced Users, I am testing out Konabess since they added SD 8+ gen 1 support. Let me know your thoughts! I can confirm that the tool works, but havent tested enough to verify if it acutally works.
    Go use KonaBess if you are into serious tweaking! It works
    1
    Wondering why in your ADB commands guy flashed 2 boot images. Can you expand on why? Shouldn't it be fine just flashing the patched boot?
    The 2 commands are there to ensure that the patched image is flashed on both the A and B slots of the device. Mismatched boot images on the 2 partitions often cause bootloops or related issues.
    1
    Much appreciate the clarification. Thanks again!
    The 2 commands are there to ensure that the patched image is flashed on both the A and B slots of the device. Mismatched boot images on the 2 partitions often cause bootloops or related issues.
    1
    did you fix netflix l1 after root ?
    not yet, miui seems to be difficult to edit build prop or at least there are other ways to do.
    simply editing build prop with root permission won't work btw