FORUMS

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

100 posts
Thanks Meter: 160
 
By TheMalachite, Senior Member on 5th May 2020, 03:38 PM
Post Reply Email Thread
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/an...ry-curtana.zip

Source Code

Device Tree: https://github.com/Xiaomi-Curtana/an..._redmi_curtana
Kernel: https://github.com/Xiaomi-Curtana/an...l_redmi_sm7125
The Following 9 Users Say Thank You to TheMalachite For This Useful Post: [ View ] Gift TheMalachite Ad-Free
5th May 2020, 03:43 PM |#2  
ps000000's Avatar
Senior Member
Flag Nonthaburi / Bangkok
Thanks Meter: 345
 
More
This is amazing !!!
5th May 2020, 03:55 PM |#3  
cimdrap's Avatar
Senior Member
Thanks Meter: 218
 
More
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
5th May 2020, 03:58 PM |#4  
OP Senior Member
Thanks Meter: 160
 
More
Quote:
Originally Posted by cimdrap

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

Stock recovery can't flash custom rom, gapps or magisk
5th May 2020, 04:02 PM |#5  
QuantumShqipe's Avatar
Senior Member
Flag London
Thanks Meter: 498
 
Donate to Me
More
Quote:
Originally Posted by cimdrap

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

With LOS recovery you can adb sideload roms like EvolutionX
5th May 2020, 05:10 PM |#6  
ps000000's Avatar
Senior Member
Flag Nonthaburi / Bangkok
Thanks Meter: 345
 
More
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.
5th May 2020, 05:23 PM |#7  
QuantumShqipe's Avatar
Senior Member
Flag London
Thanks Meter: 498
 
Donate to Me
More
Quote:
Originally Posted by ps000000

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.

You sure you read all the steps? And didn't just flash straight away
5th May 2020, 06:36 PM |#8  
Junior Member
Thanks Meter: 0
 
More
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!
5th May 2020, 11:21 PM |#9  
Junior Member
Thanks Meter: 0
 
More
Is it work on Pro Max?
5th May 2020, 11:54 PM |#10  
OP Senior Member
Thanks Meter: 160
 
More
Quote:
Originally Posted by ahmetrasittopal

Is it work on Pro Max?

No
6th May 2020, 02:37 AM |#11  
ps000000's Avatar
Senior Member
Flag Nonthaburi / Bangkok
Thanks Meter: 345
 
More
Quote:
Originally Posted by QuantumShqipe

You sure you read all the steps? And didn't just flash straight away

Success now (BAD USB CABLE Haha).
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes