Question TWRP Bootloop After Flashing TWRP on Xiaomi Redmi Note 10 5G - POCO M3 Pro / Redmi Note 10 5G

Hello there, me and my friend are currently having issues installing TWRP on a Xiaomi Redmi Note 10 5G. Bootloader is unlocked.
We used the following commands while it was in fastbootd:
- fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img, succeeds.
- fastboot flash boot twrp.img, succeeds.
- fastboot reboot recovery, succeeds and boots into MIUI recovery, goes into TWRP after letting MIUI recovery reboot.
- Flashing Magisk v26.1, says failed to mount /data: invalid argument.
- Tried to change file systems to fix /data, worked.
- Magisk now flashes and succeeds.
- Try to boot into system within TWRP, keeps rebooting in TWRP.
Is there any way we can resolve this? We also tried to the option to 'Flash Current TWRP' in the Advanced settings. Restoring the boot.img resolves the bootloop, but we want to have TWRP on it. It currently has MIUI 14 firmware, with Pixel Experience as custom ROM (GSI).

Related

issues with twrp (apparent file encryption)

Hi, im having a little bit of a problem here, i succesfully managed to unlock the bootloader of my chinese mi8, flashed and booted twrp, the issue is, my files seem to be encrypted, i can't copy anything to the device while on fastboot/recovery mode from the pc, tried booting to miui, allowing the transfer of files and booting to twrp again (for some reason i can't boot to twrp from the device itself, it has to be via fastboot with the command "fastboot boot ***") but all twrp shows me are folders with random characters, it seems to be some sort of auto-encryption, do you know how to solve it?
Miui auto encrypts the device, that is why your device is encrypted. You are unable to boot to twrp for two reasons: 1. Miui auto checks and rewrites over any custom recovery 2. Fastboot boot command does not install twrp, it only boots into it, from which u must install twrp again.
Upon booting into twrp, you need to FORMAT data, flash TWRP, flash this file https://zackptg5.com/android.php#disverfec (DM-verity and anti-encryption) this will prevent anti encryption when your freshly flashed ROM boots up.
Side note: DO NOT RELOCK YOUR BOOT LOADER IF YOUR MI 8 IS CHINA VARIANT AND YOU ARE INSRALLING GLOBAL ROM.
I HIGHLY SUGGEST YOU HEAD OVER ONTO THIS THREAD TO UNDERSTAND BETTER! https://forum.xda-developers.com/mi-8/development/rom-mi-8-miui-10-global-beta-8-8-7-t3826560/page7
achickennugget said:
Miui auto encrypts the device, that is why your device is encrypted. You are unable to boot to twrp for two reasons: 1. Miui auto checks and rewrites over any custom recovery 2. Fastboot boot command does not install twrp, it only boots into it, from which u must install twrp again.
Upon booting into twrp, you need to FORMAT data, flash TWRP, flash this file https://zackptg5.com/android.php#disverfec (DM-verity and anti-encryption) this will prevent anti encryption when your freshly flashed ROM boots up.
Side note: DO NOT RELOCK YOUR BOOT LOADER IF YOUR MI 8 IS CHINA VARIANT AND YOU ARE INSRALLING GLOBAL ROM.
I HIGHLY SUGGEST YOU HEAD OVER ONTO THIS THREAD TO UNDERSTAND BETTER! https://forum.xda-developers.com/mi-8/development/rom-mi-8-miui-10-global-beta-8-8-7-t3826560/page7
Click to expand...
Click to collapse
Ok, lets see if i got it right, just to be sure...
i boot to twrp
i format data in twrp (only data)
flash the twrp file from fastboot
flash the file for preventing encryption IN TWRP
flash my rom of choice
what i did was
1.flash global stable 9.5 via fastboot
2.Wait till it gets on
3.Restart the device
4.flash twrp via fastboot
5.install magisk 16.7 using twrp
6.install dm verity
7.format data
8.wait till it boots downgrade magisk to 16.0 via magisk manager

How to install TWRP and Magisk on Redmi 8?

How to install TWRP and Magisk on Redmi 8?
I always end up in a bootloop and have to flash official rom over and over again.
I'm looking for installing twrp for the redmi 8 Olive, but still haven't found it. Where did you get yours?
ketogeno said:
How to install TWRP and Magisk on Redmi 8?
I always end up in a bootloop and have to flash official rom over and over again.
Click to expand...
Click to collapse
Same here bro
Maybe you guys need to flash the no verity zip file after magisk?
Not sure if that will do the trick tho.
How are you installing magisk without any official or unofficial twrp???
I'm another one lookingo for TWRP for Redmi 8 and still didn't find it.
I think you guys are looking for this https://c.mi.com/thread-1843805-1-0.html
TWRP.zip
Instructions from Altsec
Install TWRP from Redmi 8a
It's ONLY for redmi 8 with dispay Tianma !!!
Other display needed otg + mouse.
Attention! Unlocked Bootloader Required !!!
1. Download Attached file twrp.zip
2. Unpack to the root of the disk (I had C: \ TWRP \)
3. Restart the phone to fastboot mode (Volume - and Power at the same time)
4. In the folder we find flash.bat, run it, it will flash two files vbmeta and recovery
5. The device will reboot, after rebooting you can boot into the recovery manually Volume + and Turn On Simultaneously
куча лагов тврп заточено под 32 а редми 8 64 глючит оно
a bunch of lags of tvrp is imprisoned under the 32 kernel and the redmi 8 64 is buggy.
Does not install firmware in backup sistem does not fail with error apparently incompatibility is on
redmi 8 terp
I am not sure, but on cz.xiaomi page one admin take this link to redmi 8 twrp. I dont try it because i dont have unlock bootloader now.
Sorry i try to take link in here but this stupid server rules... "To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!"
Go to miuios.cz to section redmi 8/8A, post MIUI CZ SK ROM + TWRP, you must be loged and in VMach3 post is this link.
I have only tried to boot mentioned recovery, but it was not working for me.
Code:
~/Downloads$ fastboot boot recovery-TWRP-3.3.1-1127-REDMI8-CN.img
downloading 'boot.img'...
OKAY [ 2.107s]
booting...
OKAY [ 2.121s]it
finished. total time: 4.228s
~/Downloads$
After automatic reboot started system. When manualy restarted phone booted to vendor recovery mode. No adb was available and any try to boot to system was failure - phone always booted to recovery mode. To boot to system I needed to select "wipe data" and then reboot to phone (but all previous data/configuration was deleted).
One more try with this Unofficial TWRP 3.3.1-1127 for REDMI 8 by wzsx150, this time it was success, everything was working smoothly.
Install from fastboot mode:
Code:
fastboot flash recovery recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
fastboot boot recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
my device:
Code:
fastboot getvar product
product: olive
Tested also with rom MIUI 11 xiaomi.eu without issues.
jkkk88 said:
One more try with this Unofficial TWRP 3.3.1-1127 for REDMI 8 by wzsx150, this time it was success, everything was working smoothly.
Install from fastboot mode:
Code:
fastboot flash recovery recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
fastboot boot recovery-TWRP-3.3.1-1127-REDMI8-CN-wzsx150.img
my device:
Code:
fastboot getvar product
product: olive
Tested also with rom MIUI 11 xiaomi.eu without issues.
Click to expand...
Click to collapse
Hi. Am I right, this TWRP is for China version of Redmi 8? I have Global version. Will it work for me?
mcichy10 said:
Hi. Am I right, this TWRP is for China version of Redmi 8? I have Global version. Will it work for me?
Click to expand...
Click to collapse
TWRP is language and version (global, china etc.) neutral. You have on first screen by first run button on right side at the bottom where you can select english language.
If you want root your phone with magisk, go directly to canary version. By stable version I got root only by adb, other apps were denied root access and freeze for a short time (for ex. Total commander beta).
On the other hand I was not able to use phone with not encrypted data with none of magisk version (stable or canary) even if I had "Preserve forced Encryption" unticked.
Code:
~$ adb shell getprop ro.crypto.state
encrypted
Tested on MIUI 11.0.4 by xiaomi.eu.
Unable to install official TWRP in Redmi 8, Miui 11.0.7. It installed. and then vanished when rebooted. and then boot looped. Had to flash original recovery and boot img to reboot.
Had made sure that I didn't boot to system after flashing TWRP. and boot to recovery instead. It flashed okay. Could use the root after installing Magisk. But on reboot, all was gone. Boot looped.
nugroho2 said:
Unable to install official TWRP in Redmi 8, Miui 11.0.7. It installed. and then vanished when rebooted. and then boot looped. Had to flash original recovery and boot img to reboot.
Had made sure that I didn't boot to system after flashing TWRP. and boot to recovery instead. It flashed okay. Could use the root after installing Magisk. But on reboot, all was gone. Boot looped.
Click to expand...
Click to collapse
Hello,
Did you reboot via button combo or fastboot reboot?
I read somewhere that Magisk is to be flashed before reboot.
Anyway, you will succeed.
I follow you because I am at 100 h to unlock.
soket1 said:
TWRP.zip
Instructions from Altsec
Install TWRP from Redmi 8a
It's ONLY for redmi 8 with dispay Tianma !!!
Other display needed otg + mouse.
Attention! Unlocked Bootloader Required !!!
1. Download Attached file twrp.zip
2. Unpack to the root of the disk (I had C: \ TWRP \)
3. Restart the phone to fastboot mode (Volume - and Power at the same time)
4. In the folder we find flash.bat, run it, it will flash two files vbmeta and recovery
5. The device will reboot, after rebooting you can boot into the recovery manually Volume + and Turn On Simultaneously
Click to expand...
Click to collapse
Thank you

root with magisk doesnt work --> bootloop ?

hello guys,
i want to root my redmi 9 with magisk. i tried to use the "patched boot.img method", but everytime i land in a bootloop.
im on miui global 12.5.3 stable, android 11. bootloader unlocked!
i took that magisk version: https://github.com/topjohnwu/Magisk/releases/tag/v23.0 (v23.0 - as apk)
than i was on that page: https://c.mi.com/oc/miuidownload/detail?device=1900381
on that page i took on the left "redmi 9 global" - which calls:
Code:
Stable ROM
Author: MIUI Official Team
Version: V12.5.3.0.RJCMIXM (MIUI11)
Size: 2.2G
i extracted the archive and copied magisk.apk and boot.img to my download-folder on my smartphone. patched the boot.img with magisk. than copied the patched boot.img to my pc.
after that i bootet the phone into fastboot mode. than i flashed the patched boot.img with fastboot flash boot patchedboot.img - used than fastboot reboot and than im in the bootloop.
can someone tell me, what i am doing wrong?
(ps: when i flash the unpatched boot.img i get no bootloop and my phone is starting again - but of course with no root )
thanks
taker-`
If I understood correctly, as well as you don't mention about that, you didn't deactivate the AVB mechanism by flashing the stock vbmeta image with the command fastboot --disable-verity --disable-verification flash vbmeta [your vbmeta.img file], which is documented that if Magisk is installed without that procedure, the device is bootlooping (see this guide).
oh, i see. yes, i didnt use that command. but now i got it working. i read that twrp isnt really compatible with the redmi9 and i need another recovery.
i used that now: https://sourceforge.net/projects/shrp/
vbmeta from post #4: https://forum.xda-developers.com/t/dont-use-twrp-on-redmi-9-use-shrp.4334123/
than i did that:
fastboot flash recovery *.img
fastboot --disable-verity --disable-verification flash vbmeta *.img
fastboot reboot recovery
from there i installed integrated magisk v23.0
phone reboot...got root.
I have read that there are issues with TWRP and Magisk (as far as I know, even its developer mentions that). Although I never got SHRP to work properly on my device and I always get bootloop issues with that. Do you know if it's because of the version I run? I currently run MIUI 11.0.2.0, which I think it's the device's original version.
uh im sorry. im also new to the shrp recovery. i had only used twrp so far.
did you try to flash this version i linked? if its not working you can fast flashback ur twrp. maybe just give it a try?
taker-` said:
uh im sorry. im also new to the shrp recovery. i had only used twrp so far.
did you try to flash this version i linked? if its not working you can fast flashback ur twrp. maybe just give it a try?
Click to expand...
Click to collapse
I don't think I have tried that. I think at the worst case, because I run MIUI I'll just roll back to it's original recovery image. I'm just asking because I don't see mentions of software versions.
what smartphone do you own?

Unable to start TWRP (loops)

Hi,
I have C11 RMX2185, unlocked bootloader, installed TWRP and then some roms (pixel experience, next stock android 11, next CipherOS-2.0-KNIGHT)
everything worked fine and I was preparing to try some other ROMS
But now I am unable to enter TWRP (I was, I flashed roms with TWRP before)
In fastboot I do fastboot reboot recovery and TWRP started to load (blue TWRP logo), and it blink and logo, blink - logo,.... forever
I tried to flash boot.img, flash TWRP again, tried another release of TWRP for RMX2185, flashing vbmeta, format userdata, ..... all kind of posibilities without any error but stil unable to run TWRP
I can boot into system (CipherOS-2.0), I can do things in fastboot, when it loops in starting TWRP it is able to react to adb reboot
I run out of ideas.
Thanks in advance for some kicks in the back

Question Flashing xiaomi eu

Hello,
This won't work for some reason. I flash spesn_global_images_V13.0.5.0.SGKMIXM_20221020.0000.00_12.0_global with fastboot.
Then I boot TWRP with fastboot boot twrp.img. I then install xiaomi.eu_multi_HMNote11_V13.0.5.0.SGKMIXM_v13-12.zip in twrp.
But then it just keeps booting to recovery.
Did anybody try this or have tips?
Thanks.
I don't remember exactly what I did, but I think I flashed the fastboot version and then updated
Be sure to get the version of recovery for the android version you want to flash. Or that was the case back then.
Be sure to format /data as well, not just wipe
Okay, I got it working like this:
1. Flash xiaomi.eu_multi_HMNote11_V13.0.10.0.RGKMIXM_v13-11-fastboot
2. Fastboot boot into OrangeFox-R11.1_A12.1-Unofficial-spes
3. Push xiaomi.eu_multi_HMNote11_V13.0.5.0.SGKMIXM_v13-12.zip via adb to /data/
4. reboot to bootloader
5. fastboot boot into twrp-3.6.1_11-0-spes
6. install xiaomi.eu_multi_HMNote11_V13.0.5.0.SGKMIXM_v13-12.zip and format data
7. reboot
Very annoying it doesn't work by just flashing the xiaomi eu zip on anything.
Strange, I got mine working first time flashing using TWRP 3.6.1
A bit of a messy procedure is required because of several technical changes from Android 11 to Android 12.
Plus, Xiaomi's messy encryption makes things worse.
Use TWRP 3.7.0

Categories

Resources