Question Help: Can't flash twrp recovery from PC to my Phone (F3) - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

I successfully unlocked my bootloader, then I tried flashing the twrp by following munchy's tutorial from YouTube (as someone recommended here). I also used the twrp recovery file he provided in the description, by using the latest platform tools from the official website. It was going pretty good. I even got the TeamWin logo, and also loaded up the twrp interface, and was able to navigate through it. But the problem was my internal storage wasn't showing up. So I booted back to my system normally to see If I can find a solution. Then I think I tried again after restarting to see if it fixes itself, but the same problem was persisting. The next time when I tried again, I used the latest twrp version which I downloaded from the official twrp website.
But since my 3rd attempt, I am not able to see any TeamWin recovery come up on my phone, when I connect I do the "fastboot boot (twrp filename)" command in cmd. When I do the command, nothing shows up. The device remains in the Fastboot mode, or just turns off. When I switch it back on, It turns on normally and boots into the phone without any issues, and I can use it. I've tried switching back to the original twrp version munchy used in the above linked video, but same result.
What did I do wrong here? How do I make my phone get into the twrp recovery when I enter the fastboot boot (twrp filename) command thru my PC? How do I make my Internal Storage available to view int he TWRP recovery so I can install it from my Downloads folder? I am on MIUI 14.0.4 If that helps. My end goal is to install Magisk.
Any tips/guides/suggestions are appreciated.

Installing TWRP and root does not erase your data.
Remove security from the lock screen. (decryption).Normally the latest TWRP decrypts the data.
Install Platform tools ,put the TWRP in the folder and run the commands from the folder.
TWRP SKK, Use A12 if your system is in A12/A13 if system A13.
Rename it to twrp.img
CMD
fastboot boot twrp.img
Powershell
./fastboot boot twrp.img
Once booted, go to Advanced -> Press "Flash current TWRP"
If offered, both slots.

NOSS8 said:
Installing TWRP and root does not erase your data.
Remove security from the lock screen. (decryption).Normally the latest TWRP decrypts the data.
Install Platform tools ,put the TWRP in the folder and run the commands from the folder.
TWRP SKK, Use A12 if your system is in A12/A13 if system A13.
Rename it to twrp.img
CMD
fastboot boot twrp.img
Powershell
./fastboot boot twrp.img
Once booted, go to Advanced -> Press "Flash current TWRP"
If offered, both slots.
Click to expand...
Click to collapse
Thank you. I had put backed the screen lock after the first 2 attempts because someone said to to that on a YT video after they faced the same problem. Now I tried again by removing the screen lock and the latest twrp for my device also boots up just fine. Now the problem Is I still can't access my internal storage .

Still having removed the screen security?
Which rom(fullname)?
Which TWRP?
Try to mount storage.

NOSS8 said:
Still having removed the screen security?
Which rom(fullname)?
Which TWRP?
Click to expand...
Click to collapse
Yes, I removed the screen security, though I can enter TWRP, I can't read the internal storage. MIUI 14.0.4.
I just watched a YT video where the dude does the following:
-TWRP Recovery
- Wipe
- Format Data
- Types 'yes'
then
-TWRP Recovery
- Reboot
- Recovery
- Do not Install
After coming back to recovery after rebooting, he gets a pop up, which at the swipe says "Swipe to allow for modifications" which he swipes, then now after checking the Internal Storage, It's readable now. Is this a possible solution?

Twrp A13, obviously if you don't want to keep the data.
Twrp/wipe format data type yes/reboot TWRP.
If error red lines, reboot TWRP and repeat the operation.
Sideload roms or use OTG.

NOSS8 said:
Twrp A13, obviously if you don't want to keep the data.
Twrp/wipe format data type yes/reboot TWRP.
If error red lines, reboot TWRP and repeat the operation.
Sideload roms or use OTG.
Click to expand...
Click to collapse
what's twrp A13? Also, I just unlocked my bootloader a few hours ago, so my phone has already done a factory reset and i don't have anything to lose except the Magisk APK and .img file in my phone.
But I have a question, will doing the format data just do a factory reset, or will I lose my ROM? Because I'm not trying to install a custom ROM, I just want to Install Magisk as the end goal with my current ROM.

MIUI 14 Android 13 so use this TWRP
plugged the phone into the PC when it is on the TWRP, you will have access to the internal storage. (works on my 12 pro aves twrp A13 Skk).
twrp-3.7.0_12-v7.5_A13-alioth-skkk.img

I'm using the latest one I could find on the TWRP website for my device. Not aware If it supports Android 13 though as it isn't mentioned on the website. Just asking my prev question, will doing the format data from TWRP just do a factory reset, or do I lose the ROM and will have to install a custom ROM?
second question I forgot to ask in my prev post, after i do the format data and put the Magisk APK and twrp img file again on my device, will my device stay decrypted as I formatted the data, or will the problem persist?
sorry If i sound dumb

zoinksy said:
I'm using the latest one I could find on the TWRP website for my device. Not aware If it supports Android 13 though as it isn't mentioned on the website. Just asking my prev question, will doing the format data from TWRP just do a factory reset, or do I lose the ROM and will have to install a custom ROM?
second question I forgot to ask in my prev post, after i do the format data and put the Magisk APK and twrp img file again on my device, will my device stay decrypted as I formatted the data, or will the problem persist?
sorry If i sound dumb
Click to expand...
Click to collapse
Use this TWRP(officiel).
twrp-3.7.0_12-v7.5_A13-alioth-skkk.img

thank you, this is the one I was looking for. Sorry to bother you again, now I installed the Magisk V26.1 apk from TWRP. And when I boot back to system and try opening the magisk manager, this happens. It says downloading, forever. I think I shouldn't have directly downloaded the latest version. So probably have to downgrade it a bit. For that, what will I have to do?
Can I just hold the Magisk icon, and uninstall it simply like any other app? Or do I have to do it from the TWRP? Also, Is it necessary for me to uninstall it before downgrading, or can I just download the apk of older magisk version and flash it from twrp just like I did previously?

It was on my first post.
Installation
The Magic Mask for Android
topjohnwu.github.io
TWRP + Root
Hi all. Hope you are good and safe from Covid-19. If you like TWRP as your recovery and want to keep root access as well, I am going to show you how to do that. Because if you take the stock boot.img and patch it via magisk, you will lose TWRP...
forum.xda-developers.com

Try OrangeFox. I never had problems with it. Been using it for half a year and constantly flash new ROM builds as a tester
Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40 (alioth) build releases | OrangeFox Recovery Downloads
Orangefox recovery for Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40 (alioth)
orangefox.download

cyanGalaxy said:
Try OrangeFox. I never had problems with it. Been using it for half a year and constantly flash new ROM builds as a tester
Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40 (alioth) build releases | OrangeFox Recovery Downloads
Orangefox recovery for Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40 (alioth)
orangefox.download
Click to expand...
Click to collapse
Sure, but currently only in A12.

NOSS8 said:
Sure, but currently only in A12.
Click to expand...
Click to collapse
I use ArrowOS 13

cyanGalaxy said:
I use ArrowOS 13
Click to expand...
Click to collapse
I don't doubt it, the Twrp A12 also works for certain operations on an A13 system but for certain Miui roms some bootloop.

NOSS8 said:
I don't doubt it, the Twrp A12 also works for certain operations on an A13 system but for certain Miui roms some bootloop.
Click to expand...
Click to collapse
Hm ok.
Welp for me on AOSP, it works nicely. I flash a new build (or two) every week. Backup/Restore works as should. UI is nice and modern, imo better than TWRP. That's why I'm recommending it.
Haven't heard anyone saying that they can't view Phone storage on OrangeFox.

Hi,
@NOSS8 , I'd like to ask : I've only some hours to wait to unlock the BL. But one question, as it's yet the stock rom (FW V13.0.11.0, A12), wich twrp should I use ? I want to install a A13 rom (that supposes FW V 14.xxx !)
So :
- fastboot boot twrp (but wich one ?? A12 or 13 ?? ; skkk ? Or ?) (+ "flash current twrp" OR "install it in ramdisk"?)
- reboot recovery
- flash FW V14.xxx
- flash rom
- format data
- reboot system
- flash magisk (last version ? Seems to be 'big' changes ?)
- flash what I need (V4A, DFE (??), ....)
What do you think ?
Thanks a lot ! Main question is about what version of twrp.. Help will be very appreciated !

néonaloj said:
Hi,
@NOSS8 , I'd like to ask : I've only some hours to wait to unlock the BL. But one question, as it's yet the stock rom (FW V13.0.11.0, A12), wich twrp should I use ? I want to install a A13 rom (that supposes FW V 14.xxx !)
So :
- fastboot boot twrp (but wich one ?? A12 or 13 ?? ; skkk ? Or ?) (+ "flash current twrp" OR "install it in ramdisk"?)
- reboot recovery
- flash FW V14.xxx
- flash rom
- format data
- reboot system
- flash magisk (last version ? Seems to be 'big' changes ?)
- flash what I need (V4A, DFE (??), ....)
What do you think ?
Thanks a lot ! Main question is about what version of twrp.. Help will be very appreciated !
Click to expand...
Click to collapse
Instead, use Miflash with a Fastboot rom, you can extract the boot img for root.(don't re lock the bootloader).
You can root without TWRP, but according to this thread, if you root you lose the TWRP and vice versa, I don't know if this is still relevant.(I don't have this device).
If you need ,install the TWRP A13 after flashing the A13.
See this thread for instructions
[Recovery] [13] [12] TWRP & OrangeFox
Since recoveries play a crucial role in flashing firmwares, custom ROMs and offline updates, it is of importance to have access to them. This post is about sources and instructions to working versions of recoveries for Alioth. Platform Tools (aka...
forum.xda-developers.com
***Note:
Use the TWRP SKKK.
Advantage with Miflash, the Fastboot roms contain all the imgs.
EDIT:
omitted link
TWRP + Root
Hi all. Hope you are good and safe from Covid-19. If you like TWRP as your recovery and want to keep root access as well, I am going to show you how to do that. Because if you take the stock boot.img and patch it via magisk, you will lose TWRP...
forum.xda-developers.com

NOSS8 said:
Instead, use Miflash with a Fastboot rom, you can extract the boot img for root.(don't re lock the bootloader).
You can root without TWRP, but according to this thread, if you root you lose the TWRP and vice versa, I don't know if this is still relevant.(I don't have this device).
If you need install the TWRP A13 after flashing the A13.
See this thread for instructions
[Recovery] [13] [12] TWRP & OrangeFox
Since recoveries play a crucial role in flashing firmwares, custom ROMs and offline updates, it is of importance to have access to them. This post is about sources and instructions to working versions of recoveries for Alioth. Platform Tools (aka...
forum.xda-developers.com
***Note:
Use the TWRP SKKK.
Advantage with Miflash, the Fastboot roms contain all the imgs.
Click to expand...
Click to collapse
I'm very greatfull for your quick reply ! Thanks
The device is too a Poco f3, sorry.. This doesn't need to flash magisk for twrp to stick (I had another one I've broken)
But I don't understand what's the advantage to first flash a fastboot rom..? As you say to flash twrp would loose root and vice versa... (I've read the thread you're talking about ofox)
So I wanted to go trough +- the way I mentionned, as A13 as well as ofox 'seems' to work (but I'm carefull with that twrp on stock MIUI A12, and I never used ofox..)
So you do think it's a bad idea ?? The rom I want to flash is crdroid.
I'm more lost now ...
Thanks again !

Related

Twrp problem

Hi My twrp shows all files 0 mb. I tried to mouth but ask password. but i dont have password so I don't know this password. I use my phone still with miui9 latest version. when i enter twrp asks password again. what can i do
jomolocco said:
Hi My twrp shows all files 0 mb. I tried to mouth but ask password. but i dont have password so I don't know this password. I use my phone still with miui9 latest version. when i enter twrp asks password again. what can i do
Click to expand...
Click to collapse
twrp has a bug and cant decrypt your data. before using twrp please format your userdata partition in fastboot by using this command: fastboot format userdata
omer919 said:
twrp has a bug and cant decrypt your data. before using twrp please format your userdata partition in fastboot by using this command: fastboot format userdata
Click to expand...
Click to collapse
I have the same issue, it asks me for a password when accessing TWRP because it couldn't decrypt. I've tried both the command above (fastboot format userdata & format data from TWRP directly) and I can access TWRP but when I restart the phone, I have boot loop on the loading screen.
If I don't use the command, and restart the phone directly (not going into TWRP first), the flashed recovery is automatically replaced with the MIUI recovery.
Anyone managed to actually boot the phone with the TWRP recovery installed with no decrypt error?
Thanks
leosantos said:
I have the same issue, it asks me for a password when accessing TWRP because it couldn't decrypt. I've tried both the command above (fastboot format userdata & format data from TWRP directly) and I can access TWRP but when I restart the phone, I have boot loop on the loading screen.
If I don't use the command, and restart the phone directly (not going into TWRP first), the flashed recovery is automatically replaced with the MIUI recovery.
Anyone managed to actually boot the phone with the TWRP recovery installed with no decrypt error?
Thanks
Click to expand...
Click to collapse
What did you install afterwards? did you clean install xiaomi.eu from twrp or updated china rom?
omer919 said:
What did you install afterwards? did you clean install xiaomi.eu from twrp or updated china rom?
Click to expand...
Click to collapse
Hi,
I didn't install xiaomi.eu afterwards neither updated the china rom. I'm using china rom (I live in China so there's some stuff on the chinese rom I can use and the updates are more swift), but it's the latest chinese miui rom with the update that came out a few days ago. I had the mi max 2 before and never had to update or re-install a rom after flashing TWRP. With the mi max 2 there were no issues after flashing TWRP in fastboot and then go to TWRP and flash super su. Do you reckon if I flash TWRP then flash the china rom through TWRP it won't give a boot loop (won't it re-write the TWRP bootloader with the miui one?)? If so, should I run the erase data command from fastboot or erase the data partition on TWRP recovery?
There's also a zip file to be installed in TWRP to avoid boot loop (can't recall the name right now), but didn't work either.
If someone has any ideas I'm willing to try on my end to figure this out
Thanks
leosantos said:
Hi,
I didn't install xiaomi.eu afterwards neither updated the china rom. I'm using china rom (I live in China so there's some stuff on the chinese rom I can use and the updates are more swift), but it's the latest chinese miui rom with the update that came out a few days ago. I had the mi max 2 before and never had to update or re-install a rom after flashing TWRP. With the mi max 2 there were no issues after flashing TWRP in fastboot and then go to TWRP and flash super su. Do you reckon if I flash TWRP then flash the china rom through TWRP it won't give a boot loop (won't it re-write the TWRP bootloader with the miui one?)? If so, should I run the erase data command from fastboot or erase the data partition on TWRP recovery?
There's also a zip file to be installed in TWRP to avoid boot loop (can't recall the name right now), but didn't work either.
If someone has any ideas I'm willing to try on my end to figure this out
Thanks
Click to expand...
Click to collapse
能成功吗?我也想安装supersu或者magisk
omer919 said:
What did you install afterwards? did you clean install xiaomi.eu from twrp or updated china rom?
Click to expand...
Click to collapse
Flashed TWRP again, did a userdata format from fastboot, then went to the recovery, deleted dalvik/cache and re-installed China ROM... Still stuck on boot loop.
same for me......... please help
Come on! Guys!
It is so simple to bypass this Internal Storage(0MB) problem on official China rom (Stable and Beta) of TWRP!
DO NOT use the "Install" option in TWRP to install Magisk.zip/Superusr.zip as TWRP cannot read your Internal Storage at all!
Just activate the adb sideload in TWRP and use the adb sideload command on your PC to push the magisk.zip/Superusr.zip or any zippies into your internal storage especially so if you are rooting the official China rom!
After that. Reboot to system from TWRP and Bingo! Your official China rom/MIUI pops up nicely in no time! :fingers-crossed:
...and the best part of it. You don't need to format data at all! All your data remained intact!!!
I'm running the official China rom 9.6.11.0 with Magisk 16.0 now! All work perfectly including the ever-most-impoartant's Titanium backup! :fingers-crossed::victory:
kelvintisw said:
Come on! Guys!
It is so simple to bypass this Internal Storage(0MB) problem on official China rom (Stable and Beta) of TWRP!
DO NOT use the "Install" option in TWRP to install Magisk.zip/Superusr.zip as TWRP cannot read your Internal Storage at all!
Just activate the adb sideload in TWRP and use the adb sideload command on your PC to push the magisk.zip/Superusr.zip or any zippies into your internal storage especially so if you are rooting the official China rom!
After that. Reboot to system from TWRP and Bingo! Your official China rom/MIUI pops up nicely in no time! :fingers-crossed:
...and the best part of it. You don't need to format data at all! All your data remained intact!!!
I'm running the official China rom 9.6.11.0 with Magisk 16.0 now! All work perfectly including the ever-most-impoartant's Titanium backup! :fingers-crossed::victory:
Click to expand...
Click to collapse
Please, make and example, how can we use adb sideload on PC. Thank
Nah!
I will not spoon feed. Go Google on how to use adb sideload with twrp.
In that way, you learn.
kelvintisw said:
Nah!
I will not spoon feed. Go Google on how to use adb sideload with twrp.
In that way, you learn.
Click to expand...
Click to collapse
kelvintisw, thank you so much! I resolve this problem with bootloop using ADB Sideload on MIUI Global)

How to update with twrp and root access installed?

Hello,
i have version 11.0.2.0 Global on the device with twrp, magisk and edXposed.
Now I have seen that there is already a global version 11.0.6.0.
In my case, how can I update to a new version without losing the data and settings?
And one more question in general. Version 11.0.6.0 is not shown to me via OTA. Here it says, latest stable version 11.0.2.0. Is it not rolled out via OTA?
And if there was a newer version available via OTA, could I install the update despite TWRP?
hmarder said:
Hello,
i have version 11.0.2.0 Global on the device with twrp, magisk and edXposed.
Now I have seen that there is already a global version 11.0.6.0.
In my case, how can I update to a new version without losing the data and settings?
And one more question in general. Version 11.0.6.0 is not shown to me via OTA. Here it says, latest stable version 11.0.2.0. Is it not rolled out via OTA?
And if there was a newer version available via OTA, could I install the update despite TWRP?
Click to expand...
Click to collapse
I (without root) flashed the OTA on 11.0.2.0 global PGGMIXM to 11.0.6.0, but, to flash with root... Maybe (I dont know if it will brick) but you can try flash a recovery version of 11.0.6.0
hmarder said:
Hello,
i have version 11.0.2.0 Global on the device with twrp, magisk and edXposed.
Now I have seen that there is already a global version 11.0.6.0.
In my case, how can I update to a new version without losing the data and settings?
And one more question in general. Version 11.0.6.0 is not shown to me via OTA. Here it says, latest stable version 11.0.2.0. Is it not rolled out via OTA?
And if there was a newer version available via OTA, could I install the update despite TWRP?
Click to expand...
Click to collapse
I had exactly the same setup as you - here's what I did: 1 - Downloaded full rom from official Mi website (MIUI Global 11.0.6.0(PGGMIXM) 2 - Moved rom to root storage 3 - Flashed rom with TWRP, and voila! Updated to latest stable rom. Just remember to flash TWRP recovery again through Fastboot, because you will have stock recovery after update. I am using LTWRP- 3.3.1 -0924 and rooted and installed Magisk, without issues
hmarder said:
Hello,
i have version 11.0.2.0 Global on the device with twrp, magisk and edXposed.
Now I have seen that there is already a global version 11.0.6.0.
In my case, how can I update to a new version without losing the data and settings?
And one more question in general. Version 11.0.6.0 is not shown to me via OTA. Here it says, latest stable version 11.0.2.0. Is it not rolled out via OTA?
And if there was a newer version available via OTA, could I install the update despite TWRP?
Click to expand...
Click to collapse
One thing you forgot to mention is what region is your phone (not your Rom). If Chinese you may have to be extra cautious and steps above might not work for you.
Good luck!
KonahZave said:
I (without root) flashed the OTA on 11.0.2.0 global PGGMIXM to 11.0.6.0, but, to flash with root... Maybe (I dont know if it will brick) but you can try flash a recovery version of 11.0.6.0
Click to expand...
Click to collapse
Interesting. I'm still on rooted miui 10 4.5.0 PGGEUXM rooted magisk and twrp recovery-红米Note8Pro-3.3.1-9.0.img
I didn't update yet as bricking started to happen and I can't miss my phone as a daily driver.
Normally I would flash the full ROM, flash magisk, wipe cache and reboot.
So flashing full ROM doesn't break root?
Can't we flash recovery by twrp after flashing ROM instead by flashing by fastboot?
Isnt secure flash twrp after the ROM.
donkyshot said:
So flashing full ROM doesn't break root?
Can't we flash recovery by twrp after flashing ROM instead by flashing by fastboot?
Click to expand...
Click to collapse
Flashing a full rom will break root, and install stock recovery...
It is too risky to flash another recovery with twrp (possible brick)
so where to put official update on sd card?
download recovery rom?
unoturbo1 said:
I had exactly the same setup as you - here's what I did: 1 - Downloaded full rom from official Mi website (MIUI Global 11.0.6.0(PGGMIXM) 2 - Moved rom to root storage 3 - Flashed rom with TWRP, and voila! Updated to latest stable rom. Just remember to flash TWRP recovery again through Fastboot, because you will have stock recovery after update. I am using LTWRP- 3.3.1 -0924 and rooted and installed Magisk, without issues
Click to expand...
Click to collapse
I just brought rmn8p with miui 11.0.6.0 ,so it is ok to use LRTWRP-3.3.1 -0924. I came across a new version -1104, I'll try it after unlock the bootloader. After that flash preloader then trwp.
Use LR.TWRP, it got an option to make the TWRP persist on every OTA.
Also LR.TWRP = less headache on Xiaomi devices.
Here's the latest build: https://mega.nz/folder/cMAT3Q4b#7CbPV7sbEuSEdP7cehXJ-w
tze_vitamin said:
so where to put official update on sd card?
download recovery rom?
Click to expand...
Click to collapse
??
Put on external sd card dude
unoturbo1 said:
I had exactly the same setup as you - here's what I did: 1 - Downloaded full rom from official Mi website (MIUI Global 11.0.6.0(PGGMIXM) 2 - Moved rom to root storage 3 - Flashed rom with TWRP, and voila! Updated to latest stable rom. Just remember to flash TWRP recovery again through Fastboot, because you will have stock recovery after update. I am using LTWRP- 3.3.1 -0924 and rooted and installed Magisk, without issues
Click to expand...
Click to collapse
For chinese, this will brick the phone. See this instead.
Guys I Just see This video and in it shows the update process, with ltwrp, when the recovery capture the process and update even without losing data, its This True?, somebody has tried?
Link.
This will brick every phone. I brick my EU ROM, with this method of update rooted phone.
What is correct solution to update rooted phone?
Redmi Note 8 Pro, 11.0.2 QGGEUXM, TWRP 3.3.1 1210, Magisk 20.3 -> 12.0.1 QGGEUXM
System say there exists update, i choose download, select reboot, but after reboot i end up in TWRP but nothing happened. After exit i boot to old 11.0.2 system with message that update fail.
Edit 1: after 2. download/update/reboot TWRP start installing image ...
Edit 2: after automatic update system say 12.0.1, just loosing root (all apps stay)
Edit 3: installed TWRP again, Magisk (there was little problem because Magisk Manager say "not installed", but after some googlig i fix that. So i update system without reinstalling apps or loosing data.
Clear solution is probably download full rom from official Mi website and flash selected rom with TWRP (flash TWRP recovery again, repeat root process, to get root back). See next post.
RedMu said:
So what is correct solution to update rooted phone?
Redmi Note 8 Pro, 11.0.2 QGGEUXM, TWRP 1210, Magicks 20.3 -> 12.0.1 QGGEUXM
Now system say there exists update, i choose download, select reboot, but after reboot i end up in TWRP. After exit i boot to old 11.0.2 system with message that update fail.
So solution is probably downloaded full rom from official Mi website and flash selected rom with TWRP (flash TWRP recovery again, repeat root process, to get root back).
So what is correct way for update in this case?
Click to expand...
Click to collapse
This is how I upgraded, try at your own risk.
Download full recovery zip of MIUI 12 and latest magisk
Create twrp Backup just in case
In LR TWRP 10 mount & format system, cache, dalvik, vendor.
Flash full rom (not ota!)
Press home to return to the main screen Choose Advanced-File Manager item >system_root / system / folder at the bottom if there is a recovery_fromboot.p file delete it.
Go back to Advanced and select Close AVB2.0 and confirm with a swipe to the right.
flash Magisk
boot to system
First boot takes a while, relax and grab a drink
Remember to backup and close AVB!
Thank you so much for sharing these steps. I have questions for a couple of steps below:
donkyshot said:
This is how I upgraded, try at your own risk.
Download full recovery zip of MIUI 12 and latest magisk
Create twrp Backup just in case
In LR TWRP 10 mount & format system, cache, dalvik, vendor.
Click to expand...
Click to collapse
What is TWRP 10? Do I format first and then mount? I usually wipe system, cache, dalvik and then "install" the full rom (your next step), but i never try "mount" here. What does mount do here? what is wiping vender and mounting vender?
donkyshot said:
[*]Flash full rom (not ota!)
[*]Press home to return to the main screen Choose Advanced-File Manager item >system_root / system / folder at the bottom if there is a recovery_fromboot.p file delete it.
[*]Go back to Advanced and select Close AVB2.0 and confirm with a swipe to the right.
Click to expand...
Click to collapse
There are two check box here. one is "close the boot verification of avb2.0" the other is "close the DMVerity of avb2.0". Do O check one of both?
Thank you!
po1 said:
Thank you so much for sharing these steps. I have questions for a couple of steps below:
What is TWRP 10? Do I format first and then mount? I usually wipe system, cache, dalvik and then "install" the full rom (your next step), but i never try "mount" here. What does mount do here? what is wiping vender and mounting vender?
There are two check box here. one is "close the boot verification of avb2.0" the other is "close the DMVerity of avb2.0". Do O check one of both?
Thank you!
Click to expand...
Click to collapse
Recovery LR TWRP for Android 10
https://androidfilehost.com/?fid=8889791610682889486
First mount system, cache, dalvik, vendor
Than format system, cache, dalvik, vendor
Without mounting folders they won't be mounted
►go back to your main screen: ADVANCED- close AVB 2.0 then swipe to confirm, just tick only 1st box, ignore the second box

[RECOVERY] LineageOS 17.1 recovery [curtana][2020/05/05]

Introduction
This is a LineageOS Recovery compiled from the source tree of LineageOS 17.1 for Redmi Note 9S / 9 Pro.[/STRIKE] While the recovery has been usable for quite some time now, since it is not possible for TWRP to support any device launched with Android 10 for now.
I am aware that there is a TWRP port for this device, but since the source code is not accessible (as for as I can tell, maybe I just did not look hard enough for the source code), I can only advice against using it. The official TWRP open-sourced under GPLv3 does not even support devices launched with Android 10 yet, so there's clearly something going on here. I do not fix compatibility issues between my ROM and that TWRP port.
Instructions (Installing Recovery)
1. Download recovery-XXXX.zip (extract to get recovery.img and vbmeta.img)
2. Reboot to bootloader (`adb reboot bootloader`)
3. Run `fastboot --disable-verification --disable-verity flash vbmeta vbmeta.img`
4. Run `fastboot flash recovery recovery.img`
5. Run `fastboot reboot recovery` to enter LineageOS Recovery
Instructions (Installing Magisk)
You have to use the official Magisk, version 20.4 or later. Installing an older Magisk will make the system unbootable.
1. Download Magisk >= 20.4, put onto computer
2. Reboot to LineageOS recovery, select `Mount /system` (you may see some errors, but they can be safely ignored)
3. Select `Apply update from ADB`
4. Run `adb sideload Magisk-xxx.zip`
5. You will see a signature verification error, select `Yes` to bypass the check
6. Reboot to system to enjoy your Magisk installation.
Caveats
1. Since it's not TWRP, you cannot decrypt your /data in recovery for now, which means no data backup or recovery, and you cannot install on-device flashable zips through this recovery.
2. Since it's not TWRP, it cannot prevent your OS from overwriting recovery automatically. If you use official ROM, you may need to manually re-flash the recovery every time. I'm not sure whether this can be bypassed with some Magisk module.
3. Don't expect to be able to flash anything into /system (e.g. OpenGAPPS or magisk) on stock ROMs
4. When trying to install OpenGAPPS on custom roms, it will get stuck at the end of the flashing process. This does not affect the functionality of the installed system and gapps, and a force-reboot into system will work just fine.
5. You need to always click "Mount /system" before flashing any mods into the system (i.e. Magisk, OpenGapps, etc., ROMs themselves are not affected), otherwise they will fail to install. (Clicking the option does not actually mount /system; it just sets up necessary mappings from the super partition to each of the dynamic partitions so that the installation scripts will work)
Downloads
LineageOS Recovery (with vbmeta included inzide the zip) (17.1, 2020-05-05): https://github.com/Xiaomi-Curtana/a.../recovery-2020-05-05/los-recovery-curtana.zip
Source Code
Device Tree: https://github.com/Xiaomi-Curtana/android_device_redmi_curtana
Kernel: https://github.com/Xiaomi-Curtana/android_kernel_redmi_sm7125
This is amazing !!! :laugh::laugh::laugh:
I'm very very grateful, but what's the advantage over stock recovery if we can't flash zips inside the phone memory? Or if we can't take a data backup?
Just asking trying not to be rude
cimdrap said:
I'm very very grateful, but what's the advantage over stock recovery if we can't flash zips inside the phone memory? Or if we can't take a data backup?
Just asking trying not to be rude
Click to expand...
Click to collapse
Stock recovery can't flash custom rom, gapps or magisk
cimdrap said:
I'm very very grateful, but what's the advantage over stock recovery if we can't flash zips inside the phone memory? Or if we can't take a data backup?
Just asking trying not to be rude
Click to expand...
Click to collapse
With LOS recovery you can adb sideload roms like EvolutionX
After reboot to recovery. It stuck at LOS recovery menu screen not response to Vol up/down button.
Then about 10 seconds phone reboot to normal stage.
When I reboot to recovery again it became stock recovery screen no LOS recovery.
ps000000 said:
After reboot to recovery. It stuck at LOS recovery menu screen not response to Vol up/down button.
Then about 10 seconds phone reboot to normal stage.
When I reboot to recovery again it became stock recovery screen no LOS recovery.
Click to expand...
Click to collapse
You sure you read all the steps? And didn't just flash straight away
A greatest thanks to dev and tester to make this work. Thank you for all your hard work to make this work. More great things is coming soon!
Is it work on Pro Max?
ahmetrasittopal said:
Is it work on Pro Max?
Click to expand...
Click to collapse
No
QuantumShqipe said:
You sure you read all the steps? And didn't just flash straight away
Click to expand...
Click to collapse
Success now (BAD USB CABLE Haha).:laugh:
Can I install this recovery and work as twrp? then installing the xiaomi.eu rom? Thank you
Yuluga said:
Can I install this recovery and work as twrp? then installing the xiaomi.eu rom? Thank you
Click to expand...
Click to collapse
No
TheMalachite said:
No
Click to expand...
Click to collapse
so what is this recovery? to install the lineage rom?
Yuluga said:
so what is this recovery? to install the lineage rom?
Click to expand...
Click to collapse
No, it's for flash custom rom + flash gapps and magisk on custom rom only
TheMalachite said:
No, it's for flash custom rom + flash gapps and magisk on custom rom only[/QUOTE
Your responds is confusing. Recent post ask if you can flash roms with this recovery and you said no. And then the person ask you so whats this recovery for, you said to flash roms and gapps ect.
Soo can we flash roms and gapps and zips YES or NO?
Thanks.
Click to expand...
Click to collapse
Gearswar said:
TheMalachite said:
No, it's for flash custom rom + flash gapps and magisk on custom rom only[/QUOTE
Your responds is confusing. Recent post ask if you can flash roms with this recovery and you said no. And then the person ask you so whats this recovery for, you said to flash roms and gapps ect.
Soo can we flash roms and gapps and zips YES or NO?
Thanks.
Click to expand...
Click to collapse
Is Xiaomi.eu is a custom ROM ? No that's a MIUI port with more customization and debloated
Click to expand...
Click to collapse
Lame question
Do we need to unlock bootloader?
Or does it come unlocked by default
RickyGoldsmith said:
Lame question
Do we need to unlock bootloader?
Or does it come unlocked by default
Click to expand...
Click to collapse
You unlock it via mi unlock tool... https://en.miui.com/unlock/
Takes 7 days
Hi,
i have a problem, my micro SD Card cant be mountet.
i have flasht LRTWRP now.
Have anyone a tip for me? What can i do ?
big thx

Question Upgrade to LineageOS 19 gone wrong

I need help bad - can't figure out how to get my phone working again and it is basically stuck in fastboot.
This is a POCO F3 (alioth) and I previously had Lineage 18 and TWRP recovery installed (since I like to do full backups)
I flashed new firmware, then the OS, then gapps, rebooted, looks great. Awesome. Now I'm just gonna go back and install the latest TWRP and be done. This is where I must have gone wrong.
I used fastboot flash boot twrp.img with the latest version of TWRP (I had to do the same to sideload Lineage 19 since the older version I had was apparently not compatible and couldn't get the Lineage recovery to load) rebooted to recovery, and TWRP asked for my pattern to decrypt as usual. But it would not accept my pattern. I hit cancel, and because I didn't have access to my data I wasn't able to install TWRP by having it patch the ramdisk. Okay, maybe it's a glitch, I tried booting into TWRP again and got the same thing. When I went to reboot again I noticed the slot was A, instead of B which it had always been previously. So I thought maybe my system partition was on B and switching that would solve it. But after I switched that slot, TWRP has never gotten past the splash screen before it reboots and I can't boot into my system at all. Essentially the only thing I can boot into is Fastboot.
I have tried flashing the latest Lineage recovery (does not boot), an older version of TWRP (boots but sees none of my data) and stock MIUI boot.img (boots to recovery but has no options besides wipe).
I am at a loss here - I know I probably did something wrong in there, but is my system wiped? I have a lot of data on there I'd like to retain. I don't think it is wiped but I don't understand the a/b partition setup or why TWRP boot-loops on me. Any help would be greatly appreciated.
stevencrayne2 said:
Upgrade to LineageOS 19 gone wrong...
I need help bad - can't figure out how to get my phone working again and it is basically stuck in fastboot.
This is a POCO F3 (alioth) and I previously had Lineage 18 and TWRP recovery installed (since I like to do full backups)
Click to expand...
Click to collapse
FWIW althafvly who is one of the LineageOS maintainers of the Xiaomi POCO F3 / Redmi K40 / Mi 11X (alioth) wrote in the post #1 of his XDA thread [ROM][OFFICIAL][alioth/aliothin][12.1] LineageOS 19.1 *(bolded by him)*:
Flashing LineageOS through TWRP is NOT SUPPORTED and NOT ADVISED.
***
I figured out what seems to be a solution for preserving my data - for anyone else who has a similar issue, here are the steps I used to solve:
If Lineage recovery boots for you, by all means use that. I couldn't get it to boot from fastboot.
Select slot A in fastboot. flash latest TWRP to boot_a. Select slot A again. boot to recovery. TWRP should load, it will not decrypt your data but it doesn't wipe it either. Hit cancel there. Then go to advanced and ADB sideload. Sideload Lineage ROM. reboot to recovery, and finally Lineage recovery shows up. Sideload Gapps there and whatever else. Boot to system. DO NOT REINSTALL TWRP.
Apparently TWRP can access the disk somehow, but won't decrypt existing data. Hope this helps someone.

Question TWRP flashing method

Hi all,
I have recently shifted from Samsung A52S to Onpelus 9 PRO.
I'm now a bit confused about flashing method....
I mean :
on Samsung devices, you have to use ODIN ( that is a Fastboot replacement tool ) in order to flash the TWRP and then, on TWRP, you can freely flash any new custom ROM or any other img files, by simply press "INSTALL" button instad of ADB sideload commands.
If I well understood, in order to flash this custom ROM, I have to do that through Fastboot commands before and through TWRP ADB sideload commands after......
My question is : may I flash boot.img / vendor_boot.img / dtbo.img and ROM zip directly through TWRP "INSTALL" button instead ???
If not, can someone kindly explain which is the reason why ?
Sorry for this noob question but I'm doing my first step into Oneplus and I don't want to do a mess.....
Many thanks for the help !
I personally been wanting to know why we no longer can simply flash custom roms via TWRP like we use to. I do believe its got to do with the way the A/B partition works however that does not really answers why we can't just flash via TWRP. Unfortunately, I have not been able to find the answer so I am interested too on why we can't simply flash custom roms in TWRP and have to resort in sideloading or via fastboot. I would think flashing via a zip in TWRP will have less user errors compare to using a command line to do your flashing.
Saying that, I have been flashing via fastboot since I got this phone and even though its a longer process, it only takes a few more minutes.
twrp is not even fully adapted for android 12 or 13 (but who needs twrp anymore?)
I prefer to flash via fastbootd
(is less work for me)
best way is the magisk install
ChrisFeiveel84 said:
twrp is not even fully adapted for android 12 or 13 (but who needs twrp anymore?)
Click to expand...
Click to collapse
twrp is still the only way to backup the whole rom
it exist a non official version for 12/13
TWRP is the best tool to recover files when the OS does not boot. Since there is no ROM or kernel out there that recommend or uses TWRP for flashing. There is little reason to use TWRP unless is for file recovery. This is in respective to OP 9.

Categories

Resources