FORUMS

[Recovery][2020-03-06] LineageOS Recovery 17.1 for Redmi K30 5G (picasso)

232 posts
Thanks Meter: 708
 
By PeterCxy, Senior Member on 1st March 2020, 08:25 AM
Post Reply Email Thread
Introduction

This is a LineageOS Recovery compiled from the source tree of LineageOS 17.1 for Redmi K30 5G. This is part of my ongoing work to port LineageOS 17.1 to this device. Work on the actual LineageOS 17.1 ROM is still under way (but it should be available very soon), 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 figured that this might be useful even before I release the LineageOS custom ROM (e.g. people may want to flash Magisk on official ROMs, though it still needs a patched version of Magisk).

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 vbmeta.img, recovery-XXXX.zip (extract to get recovery.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 patched Magisk. Installing a normal Magisk will make the system unbootable.

1. Download patched Magisk zip (Magisk-xxx-patched.zip), 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-patched.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) on stock ROMs; you might be able to do so once my LineageOS ROM is released
4. When trying to install OpenGAPPS on LineageOS 17.1 (not released yet as of 2020-03-06), 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. Use my patched OpenGAPPS in the LineageOS thread.
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 (17.1, 2020-03-06): https://mega.nz/#!PZRCBaiA!L-c3Tn6E2...3QJRt04uyQGg_k
Changelog: Improved compatibility with OpenGAPPS (won't work with MIUI; this change is solely for the soon-to-be-released LineageOS 17.1 port)
LineageOS Recovery (17.1, 2020-03-01): https://mega.nz/#!XI4BGDQS!CPH2kIUdq...51RwmdH0MGbSRk
vbmeta.img: https://mega.nz/#!vQohmJgJ!IWAjbxGIx...-2pV83zqxbItD4
Patched Magisk (v20.3, 2020-03-01): https://mega.nz/#!XUxHTRpY!crbBJn-Qq...YKlRA2ESQiSJvY

Source Code

Device Tree (including LineageOS 17.1 port): https://github.com/PeterCxy/android_...xiaomi_picasso
Kernel: https://github.com/PeterCxy/android_..._xiaomi_sm7250
The Following 7 Users Say Thank You to PeterCxy For This Useful Post: [ View ] Gift PeterCxy Ad-Free
4th March 2020, 08:24 AM |#2  
Member
Thanks Meter: 17
 
More
Hello,

Thanks for the custom recovery and Magisk. Would that recovery work on K30 (not 5G) or Poco X2?

Good work and keep it up!
5th March 2020, 11:30 AM |#3  
PeterCxy's Avatar
OP Senior Member
Thanks Meter: 708
 
More
Quote:
Originally Posted by DyXen

Hello,

Thanks for the custom recovery and Magisk. Would that recovery work on K30 (not 5G) or Poco X2?

Good work and keep it up!

Probably won't. Those two phones are totally different from the 5G version, despite their similar name / non-SoC specs. They are closer to K20 than K30 5G.
The Following User Says Thank You to PeterCxy For This Useful Post: [ View ] Gift PeterCxy Ad-Free
7th March 2020, 04:55 PM |#4  
Junior Member
Thanks Meter: 0
 
More
What is the progress of this LineageOS?
How long can you experience it?
8th March 2020, 04:15 AM |#5  
PeterCxy's Avatar
OP Senior Member
Thanks Meter: 708
 
More
Quote:
Originally Posted by syutung

What is the progress of this LineageOS?
How long can you experience it?

I'm dogfooding right now. If I don't brick my phone by dogfooding my LOS port then it will be available for download in one or two days.
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