Question How do I root POCO M4 pro 5G on MIUI Global 13.0.2 (Android 12) - POCO M4 Pro 5G, Redmi Note 11S (Opal), 11T (India)

Hey guys,
I patched the boot image but I can't flash it through fastboot because the boot partitioning is "boot_a" and "boot_b",. The boot image is too big in size, how do I flash it?
Thanks in advance

RandomName1 said:
Hey guys,
I patched the boot image but I can't flash it through fastboot because the boot partitioning is "boot_a" and "boot_b",. The boot image is too big in size, how do I flash it?
Thanks in advance
Click to expand...
Click to collapse
I solved it myself, thanks a lot... I downloaded the latest package from the Updater and extracted the "payload.bin" file to get the boot image, this time it was 64MBs so I was able to flash it through fastboot regardless. I'm on MIUI for POCO 13.0.2.0 Global Android 12.

Related

help install back 9.1.10 stable from xiaomi eu beta latest wia twrp

hi friend i have xiaomi redmi 4x i have unlocked bootloader OK
I have install twrp 3110 OK
when i install this xiaomi.eu rom latest beta everything is OK
when i want install back latest stable global 9.110 by xiaomi i download normal recovery rom from xiaomi site and put it on phone storage then i normal go twrp wipe (factory reset) install 9110 install is ok
when i click reboot system i see on boot only mi logo and no this .... powered by android
also same when i choose in twrp wife all data system etc expect storage where is this downloaded rom.
could any explain me why it stuck at boot if installation via twrp is ok ?
but when i install back this xiaomi.eu rom boot works OK
tubabuyukustun said:
hi friend ....
could any explain me why it stuck at boot if installation via twrp is ok ?
Click to expand...
Click to collapse
Hello, this happens because official MIUI boot.img verifies if recovery.img is also official/original.
You have 2 options to resolve the boot problem:
1. If you want to keep TWRP then modify boot.img... http://en.miui.com/thread-249666-1-1.html (with R4X image of course)
and flash it from TWRP or fastboot: fastboot flash boot boot.img
2. If you want original recovery, get "recovery.img" from the exact TGZ image as your MIUI ZIP
and flash it: fastboot flash recovery recovery.img
:good:

Root via magisk doesn't work

Hi,
I'm on MIUI Global 12.0.4.0 (QCREUXM) rom, and my bootloader is unlocked with official Xiaomi tool.
I tried to root my Redmi 9c by modifying the boot.img file with magisk, and flashing it via adb.
It resulted in bootloop. So I reset back to the original boot.img, and I'm still rootless...
Does anyone know how to root this phone ?
There is no TWRP for it right now.
Thanks for any help.
BTW, is it normal that modified boot.img is much lighter than original file ? (11Mo vs 65Mo)
batteurfou said:
Hi,
I'm on MIUI Global 12.0.4.0 (QCREUXM) rom, and my bootloader is unlocked with official Xiaomi tool.
I tried to root my Redmi 9c by modifying the boot.img file with magisk, and flashing it via adb.
It resulted in bootloop. So I reset back to the original boot.img, and I'm still rootless...
Does anyone know how to root this phone ?
There is no TWRP for it right now.
Thanks for any help.
BTW, is it normal that modified boot.img is much lighter than original file ? (11Mo vs 65Mo)
Click to expand...
Click to collapse
I am facing the same result, probably the reason is that the device is SAR - System-As-Root, therefore patching boot.img aint giving root previliges and flashing causing bootloops.
Moreover modiying the system.img and flashing it wont give you root ethier.
You can try modfying and flashing the recovery.img while wiping your data as dsecribed in magisk site but every time you reboot, you need to apply the same combo buttons to enable the magisk root.
All we can do for now is to wait for a custom recovery that will probaly never be arrived or im wrong.
BTW: the patched img is supposed to be small as what ive researched, magisk repacker is repacking and compiling it to a smaller img.
Flash pachedboot.img then vbmeta 256 bites file
Redmi 9c not rooting via magsik patched boot img
Same issue
same here ,
my xiaomi 9c BL are unlock with xiaomi unlock tools
after i patch my boot.img with magisk the patchboot.img become smaller like 10kb only
after i fastboot and flash it bootloop every time
im sure my patchboot.img have some problem
but no idea how to fix it
is there anyone get this kind of problem , and how you fix it
please share your Thought thank you
powershell wont run the .\fastboot flash boot magisk_patched.img command. it gets stuck in waiting for devices even when the device is plugged and already on fastboot mode. any ideas how to fix this?
rtanjunyu said:
same here ,
my xiaomi 9c BL are unlock with xiaomi unlock tools
after i patch my boot.img with magisk the patchboot.img become smaller like 10kb only
after i fastboot and flash it bootloop every time
im sure my patchboot.img have some problem
but no idea how to fix it
is there anyone get this kind of problem , and how you fix it
please share your Thought thank you[/QUOTE
Hi, how were u able to unlock the 9c? I tried to unlock using the mi unlock tool but the message appears Couldn't Unlock then some Chinese words beneath it (can shu gong chang). How to solve this? Thank you
Click to expand...
Click to collapse
Guys check out my thread on how to root it!!! Credits to Surendra R sonawane for it:
How to ROOT Xiaomi Redmi 9C [FUNCTIONAL]
Ok so i found out that you cant root this phone without flashing vbmeta.img So its pretty simple to root your phone, here are the steps: 1. Patch your boot.img with magisk 2. download vbmeta.img and put it into your adb folder (do the same with...
forum.xda-developers.com
batteurfou said:
Hi,
I'm on MIUI Global 12.0.4.0 (QCREUXM) rom, and my bootloader is unlocked with official Xiaomi tool.
I tried to root my Redmi 9c by modifying the boot.img file with magisk, and flashing it via adb.
It resulted in bootloop. So I reset back to the original boot.img, and I'm still rootless...
Does anyone know how to root this phone ?
There is no TWRP for it right now.
Thanks for any help.
BTW, is it normal that modified boot.img is much lighter than original file ? (11Mo vs 65Mo)
Click to expand...
Click to collapse
After flashing boot.img file flash vbmeta.img file it will prevent it from bootloop just Google vbmeta.img download it and flash it through adb tools after flashing magisk modified boot.img file
To flash it in adb type flash vbmeta vbmeta.img
I have successfully rooted my redmi 9C with this method and no bootloop issue
batteurfou said:
Hi,
I'm on MIUI Global 12.0.4.0 (QCREUXM) rom, and my bootloader is unlocked with official Xiaomi tool.
I tried to root my Redmi 9c by modifying the boot.img file with magisk, and flashing it via adb.
It resulted in bootloop. So I reset back to the original boot.img, and I'm still rootless...
Does anyone know how to root this phone ?
There is no TWRP for it right now.
Thanks for any help.
BTW, is it normal that modified boot.img is much lighter than original file ? (11Mo vs 65Mo)
Click to expand...
Click to collapse
First download official stock rom from here:
Xiaomi MiUI Fastboot ROM download link for all Mi phones
Here you can find download link to MiUI stable fastboot ROM for Indian, global & other Mi variants. Mi fastboot firmware download India
miservicecentre.com
Then install latest version of magisk manager patch boot.img
Then flash it with adb.
Most important!
After flashing patched_boot.img flash vbmeta by typing "fastboot flash vbmeta vbmeta.img
Download it from from here:
vbmeta
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
Then reboot and enjoy root!
See this post: https://forum.xda-developers.com/t/guide-how-to-root-redmi-9c-tested.4251085/

How to root Redmi Note 9 miui 12.0.10.0.QJOEUXM

I have a redmi note 9 on miui 12.0.10.0.QJOEUXM and i want to root it. Do you guys know how to do it ?
Thanks..
Same as any other miui version.
Flashing the magisk patched boot.img.
VD171 said:
Same as any other miui version.
Flashing the magisk patched boot.img.
Click to expand...
Click to collapse
Yes but where i can find this magisk patched boot.img?
You can patch that manually, using the magisk app.
Just extract the boot.img from the stock miui and then patch it using the magisk app.
VD171 said:
You can patch that manually, using the magisk app.
Just extract the boot.img from the stock miui and then patch it using the magisk app.
Click to expand...
Click to collapse
Ooo thanks youu
I also want to root my Note 9(QJOEUXM at 12.0.10.0). But I've read contradicting information here in the forum regarding the approach. E.g. the VBMETA.IMG. Do I need the patched version or do I have to flash the originals with the command fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img?
I'm a little cautious because I already wrecked the Note 9 with the original xiaomi flash tool when trying to downgrade.
Or can I easy use the XiaoMiTool V2?
Meik2 said:
I also want to root my Note 9(QJOEUXM at 12.0.10.0). But I've read contradicting information here in the forum regarding the approach. E.g. the VBMETA.IMG. Do I need the patched version or do I have to flash the originals with the command fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img?
I'm a little cautious because I already wrecked the Note 9 with the original xiaomi flash tool when trying to downgrade.
Click to expand...
Click to collapse
The patched vbmeta and the stock vbmeta flashed with "disable-verity and disable-verification" are exactly same.
Any patched vbmeta from any miui version will works perfectly.
OK. Here you wrote that the RECOVERY.IMG is needed. But this File is not part of the stock Fastboot Image. Do i need the recovery.img or just
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash boot magisk_patched.img
and the Device has root.
As far as I understand, I still have to flash the recovery to get the TWRP recovery.
Meik2 said:
OK. Here you wrote that the RECOVERY.IMG is needed. But this File is not part of the stock Fastboot Image. Do i need the recovery.img or just
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash boot magisk_patched.img
and the Device has root.
As far as I understand, I still have to flash the recovery to get the TWRP recovery.
Click to expand...
Click to collapse
Recovery.img is not needed.
You can avoid recovery safely.
If you want to have the original recovery, just flash the stock recovery.img.
If you want to have twrp, just flash the twrp recovery.img.
[RECOVERY PROJECT] Collection of TWRP & PBRP & SHRP & ORANGEFOX for MERLIN (Redmi Note 9 / Redmi 10X 4G)
Works with: - Xiaomi Redmi Note 9 - Xiaomi Redmi 10X 4G Warnings: - This is not a development thread. This is a help thread. - I didn't build any of them. Use at your own risk. - I don't have the source code for any of them. Use at your own...
forum.xda-developers.com
OK. The i will start rooting my device now. Where can I get the TWRP-recovery.img and the stock recovery for 12.0.10.0? How i said, the recovery.img is not part of the official stock zip File
Will SPFlash Tool still work with this Android Version? Then I could do a backup for the recovery Partition. BTW. Root was successfull. Thanks for your support.
Meik2 said:
OK. The i will start rooting my device now. Where can I get the TWRP-recovery.img and the stock recovery for 12.0.10.0? How i said, the recovery.img is not part of the official stock zip File
Click to expand...
Click to collapse
TWRP for V12.0.6.0 will works perfectly.
The zip file is the recovery mode rom.
The tgz file is the fastboot mode rom.
The zip file doesn't come with the recovery.img file.
The tgz file comes with the recovery.img file.
Here, you can find many TWRP versions:
[RECOVERY PROJECT] Collection of TWRP & PBRP & SHRP & ORANGEFOX for MERLIN (Redmi Note 9 / Redmi 10X 4G)
Works with: - Xiaomi Redmi Note 9 - Xiaomi Redmi 10X 4G Warnings: - This is not a development thread. This is a help thread. - I didn't build any of them. Use at your own risk. - I don't have the source code for any of them. Use at your own...
forum.xda-developers.com
Here, you can find the stock recovery.img file:
[IMG][STOCK][PATCHED] Boot, Vbmeta and Recovery: Images Partitions for MERLIN (Xiaomi Redmi Note 9 / Xiaomi Redmi 10X 4G)
Original Stock BOOT.IMG for MERLIN + Magisk Patched BOOT.IMG for MERLIN + Original Stock VBMETA.IMG for MERLIN + Original Stock RECOVERY.IMG for MERLIN Works with: - Xiaomi Redmi Note 9 - Xiaomi Redmi 10X 4G Firmware Versions: - (Engineering)...
forum.xda-developers.com
Meik2 said:
Will SPFlash Tool still work with this Android Version? Then I could do a backup for the recovery Partition. BTW. Root was successfull. Thanks for your support.
Click to expand...
Click to collapse
Yes, but you need to bypass the EDL authentication.
Or, you can just enter in fastboot and flash the preloader of V12.0.4.0 and you will can skip bypass the EDL authentication.
Perfect. That's all i wanted to know. -- Nearly all. What happens if my Note 9 starts an OTA Update? I've seen there is one available few minutes ago. 12.0.1.0 RJOEUXM
Meik2 said:
Perfect. That's all i wanted to know. -- Nearly all. What happens if my Note 9 starts an OTA Update? I've seen there is one available few minutes ago. 12.0.1.0 RJOEUXM
Click to expand...
Click to collapse
If you root the device and flash it using OTA Update, probably the device will got a bootloop.
You can flash updates using fastboot safely and securely.
Just use the "flash_except_data" file.
OK. Thanks for this great support.
best regards
Meik2 said:
OK. Thanks for this great support.
best regards
Click to expand...
Click to collapse
You are welcome, my friend.
Enjoy.
Regards

Question [Solved] Mobile won't boot anymore ! :/

Hi guys, i just flashed (with a light wipe) the last rom for my Xiaomi Mi 11 Ultra (obtained on the update section of parameters) and i first lost all my config.
So, i decided to restore the backup i made just before flashing and here is the drama, it boot directly into TWRP and i can't seem to find my storage anymore (tried file manager)
TWRP also tells me that no OS is installed, please help, i'm desperate
I think the first step is to recover access to internal sdcard, and maybe then i can restore a backup
Thank you !
simply, Fastboot and install official rom using mi flash tool.
thats one of the penalties you'd pay of installing eu rom.
hassanaliyeh said:
simply, Fastboot and install official rom using mi flash tool.
thats one of the penalties you'd pay of installing eu rom.
Click to expand...
Click to collapse
Ok, will try this tomorrow, thank you !
Is it this one : https://www.xiaomiflash.com/ ?
Xiaomi Flash Tool - Official Mi Flash Tool
Download the latest and Official Xiaomi Flash Tool from the Official Xiaomi Flash Tool Website.
xiaomiflashtool.com
This is the official one. Use the newest version
hassanaliyeh said:
Xiaomi Flash Tool - Official Mi Flash Tool
Download the latest and Official Xiaomi Flash Tool from the Official Xiaomi Flash Tool Website.
xiaomiflashtool.com
This is the official one. Use the newest version
Click to expand...
Click to collapse
Thank you very much, sir !
Will try this and post the result, maybe with a little tuto if it's not already everywhere ^^
So, tried 5 times and not once a good result, the better i can obtain is 12.5.7.0 global working, flashed with xiaomitool. TWRP ok, and i will try Magisk next.
Every other tries solded by an sdcard/os/data loss T_T
That's a mystery. I ran on 12.5.17.0 all fine before this incident and i cannot get it work anymore :/
I obtained rom from https://androidfilehost.com/?w=files&flid=321331
TWRP from https://androidfilehost.com/?fid=14943124697586336381
Also tried this method again (this was my first method and it worked like a charm till this 12.5.20.0... )
[ROM][MIUI][star/mars] Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra
How to install Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra We will release fastboot ROM versions until TWRP for star/mars is released TWRP RELEASED Steps to install xiaomi.eu ROM for first time from China ROM (All your data and files on...
forum.xda-developers.com
The problem with global is it seems to be greatly outdated (patch from 2021.09, that's a huge security risk to be months backward nowadays, let aside bug correction, new functionnality, etc)
I can't seem to find a more recent global version (updater within settings tells me there's no more up to date version).
Do someone have an idea, please ? :/
What i'm doing :
1. put device on fastboot mode
2. launch xiaomitool and flash 12.5.7.0 global rom
3. reboot into fastboot
4. launch xiaomi unlock and unlock device
5. boot TWRP with fastboot boot twrp.img in cmd (command returned all ok)
6. into "soft" TWRP, One Key Inject TWRP
7. into "hard" TWRP > install and give it the .zip rom file
8. after the rom installed, all broken again :/
Hi,
there is no TWRP-ROM available for the Ultra - it's still in fastboot-ROM phase.
Flash via fastboot. Unlocking is just needed once until relocking with orig. ROM.
(Optionally) Copy boot.img from ROM-folder to phone.
Use Magisk to patch boot.img
Flash patched boot.img to boot_a and boot_b via fastboot.
Wait until TWRP-compatible-zip's for the Ultra to begin to appear.
cya
gammelobst said:
Hi,
there is no TWRP-ROM available for the Ultra - it's still in fastboot-ROM phase.
Flash via fastboot. Unlocking is just needed once until relocking with orig. ROM.
(Optionally) Copy boot.img from ROM-folder to phone.
Use Magisk to patch boot.img
Flash patched boot.img to boot_a and boot_b via fastboot.
Wait until TWRP-compatible-zip's for the Ultra to begin to appear.
cya
Click to expand...
Click to collapse
Thanks for that ! ^^
That sure seem a simple task
You're telling me that i can, from my 12.5.7.0 global, patch the boot.img (90mb) from the 12.5.20.0 eu with magisk, flash this with fastboot and that it will work ?
Seems too wonderfull to be true XD
EDIT:
My bad, you said "optionnally", not "alternatively"
So, i'm stuck here, i don't know and can't seem to find the fastboot cmd to install the xiaomi eu rom in .zip format
Do you know it please ?
In all the 11 Ultra A12 weekly EU ROMs, the format is fastboot only. Just extract the .zip file to a folder on your desktop, connect your phone in fastboot mode, power on and vol down and then click on the update bat file. If your coming from a different branch, click on the update and format bat file ( the bat files will be in the upper most extracted folder). It is a simple as that .
Sathelp said:
In all the 11 Ultra A12 weekly EU ROMs, the format is fastboot only. Just extract the .zip file to a folder on your desktop, connect your phone in fastboot mode, power on and vol down and then click on the update bat file. If your coming from a different branch, click on the update and format bat file ( the bat files will be in the upper most extracted folder). It is a simple as that .
Click to expand...
Click to collapse
Hi Sathelp !
An ultra big thank you !! The flash worked wonderfuly it seems
That's awesome how simple it is, in fact, and to say that i lost hours and hours without being able to approach this, i'm so noob :/
much kudos :x
I'm now on the way to root and finally, can reuse my mi11 ^^

Question Problems to root cn version 13.0.5 android 12

Hi, i'm trying to root my CN version 13.0.5 without the twrp, I'm using the magisk to patch the boot file, but after patch and use the command "fastboot flash boot boot.img, the mi 11 ultra just stuck in the mi logo. I'm not been able to root my phone, right now, how to root the CN version 13.0.5?
i did the same root with the android 11 and worked, something change?
hi, did you install magisk canary and not magisk stable?
I have just Root Xiaomi.eu A12 Miui13 with the same method and it work.
Hi. FIrst - better to use Magisk 23.0 - as you will still have Magisk hide. But more important - just the "fastboot boot boot.img" command instead. Once you have booted without issues you can go into Magisk and patch the real boot image file from there and restart. This is how it always worked for me. Not really sure what is the big difference there but as I said - that worked for me.
When you are running the miui 13, copy the boot.img from fastboot folder to your phone(remember the location). Open magisk app, choose install and search for boot.img on your phone. After patching is done, copy the patched file into your fastboot folder on pc. Boot into fastboot, type fastboot flash boot (and drag the patched file from fastboot folder here) and hit enter. after flashing fastboot reboot
Thanks for the help, i'll try to patchin a few hours and back here to give the feedback!
marcel112 said:
When you are running the miui 13, copy the boot.img from fastboot folder to your phone(remember the location). Open magisk app, choose install and search for boot.img on your phone. After patching is done, copy the patched file into your fastboot folder on pc. Boot into fastboot, type fastboot boot (and drag the patched file from fastboot folder here) and hit enter. after flashing fastboot reboot
Click to expand...
Click to collapse
Does that Format my Data? And how do i remove the Patch(remove magisk)?
Afg Playa said:
Does that Format my Data? And how do i remove the Patch(remove magisk)?
Click to expand...
Click to collapse
It does not format. That's just for root. You can flash the rom in fastboot again or flash the boot.img again from the folder images
thiagoserrao said:
Thanks for the help, i'll try to patchin a few hours and back here to give the feedback!
Click to expand...
Click to collapse
Did IT Work?
Afg Playa said:
Did IT Work?
Click to expand...
Click to collapse
Using CN no, i tried with the rom downloaded but didn't worked. So i take a step and installed the EU version, not been able to connect to android auto and other stuffs was killing me!
After install the EU version, i just did the same steps to root the boot, and worked without problem
thiagoserrao said:
Using CN no, i tried with the rom downloaded but didn't worked. So i take a step and installed the EU version, not been able to connect to android auto and other stuffs was killing me!
After install the EU version, i just did the same steps to root the boot, and worked without problem
Click to expand...
Click to collapse
Great, It also worked for me Xiaomi.eu 13.0.9.0.
I have difficulties too rooting my Mi 11 Ultra with Android 12. I have installed the latest canary of Magisk and when I patch the boot.img and flash it the device stucks on Android logo. When I boot the device with fastboot boot magisk_patched***.img I'll get a black screen.
Can anybody post a patched boot.img from Xiaomi.eu 13.0.9.0 Rom? Perhaps it works when I flash this one on my device.
User1977 said:
I have difficulties too rooting my Mi 11 Ultra with Android 12. I have installed the latest canary of Magisk and when I patch the boot.img and flash it the device stucks on Android logo. When I boot the device with fastboot boot magisk_patched***.img I'll get a black screen.
Can anybody post a patched boot.img from Xiaomi.eu 13.0.9.0 Rom? Perhaps it works when I flash this one on my device.
Click to expand...
Click to collapse
i just lost my root without reason, i just restarted my phone, than no root anymore and not being able to installing again ;D. what a hell
Start from the beginning by flashing unpatched boot.img and use Magisk v23. V24 has nothing but problems. I was frustrated for a few hours with it and going back to v23 solved everything.

Categories

Resources