[Xiaomi Redmi Note 7 Pro ROMs, Kernels, Recoveries,] PeterCxy:
Introduction

This is an unofficial build of LineageOS 16 for Redmi Note 7 Pro. Differences from the one provided by Dyneteve include:

- Ported the CAF wrappedkey encryption stuff, which is what MIUI uses, over using patches from https://mokeedev.review/q/topic:%22fbe-wrapped-key%22+(status:open%20OR%20status:merged), This requires an recovery with wrappedkey decryption support, e.g. this one

- Applied unmerged patch https://review.lineageos.org/c/LineageOS/android_build/+/247066 to mount system as /system_root properly on install. This makes addon.d scripts (e.g. Magisk / GApps survival script) work again on our device. This requires an recovery with proper system_as_root support, e.g. this one

- ROM includes its own vendor image instead of relying on one provided by MIUI. I intend to try to build as much of vendor image as possible from CAF source in the future.

Flash instructions

- Make sure you have the latest firmware images. If not, update them before flashing.

- Flash a TWRP recovery that supports mounting system as /system_root and supports wrappedkey encryption (the one provided above)

- Wipe data partition (without wiping /data/media). If you came from another non-CAF ROM (ROM that do not support wrappedkey mode) and had encryption enabled, you will need to format your data partition (including /data/media).

Note: If you decide to format your data partition, always format with 'advanced wipe' in TWRP recovery. DO NOT use fastboot -w or fastboot erase, even if you do, please format again in recovery, otherwise the system might not work.

- Install the zip in TWRP.

- Install whatever you want e.g. Magisk, OpenGapps

- DO NOT install the fcrypt disabler.

- Reboot and enjoy

Known issues

DO NOT remove screen lock passwords if you set one. You can change the password just fine, but DO NOT REMOVE IT. YOU WILL LOSE ACCESS TO ALL DATA IF YOU DO THIS AND REBOOT.

Removing screen lock passwords work after 20190528-1.

Downloads

20190609-1: https://mega.nz/#!PdRnxIia!Boh-a8e5JHt8YEBwbXKt8rWYj3PC56mdpEIXwDEY2ng

changelog: 1) Merged upstream LineageOS (June security patch) 2) Updated kernel to 4.14.123 3) Updated MIUI binary blobs 4) Some clean-up

NOTE: /proc/last_kmsg support is removed due to incompatibility. This feature is replaced by pstore, which you could find more information on through some Google-fu.

History versions:

20190528-1: https://mega.nz/#!nZRTQCbS!qf-RdT-ijayg8UBxyyz3Hoi2O_8ZtpWewgNv-eVDcqA

changelog: 1) merged upstream LineageOS; 2) fixed the bug of removing screen lock passwords, now it won't swallow all your data (this commit: https://github.com/PeterCxy/android...mmit/d2fe3434cddb98eeb414906e71a817559ade1b26; 3) merged LTS kernel 4.14.122, thanks to YaroST and aviraxp; 4) fixed potential charging problem; 5) some other kernel improvements

20190526-1: https://mega.nz/#!rRgwmY5T!2fQyDjukLoGmk7KRtas5n2Y_it9QS_s2noAItzNvFfY

Sources

Device: https://github.com/PeterCxy/android_device_xiaomi_violet

Kernel: https://github.com/PeterCxy/android_kernel_xiaomi_sm6150

Other changes and patches: see what is available on my GitHub https://github.com/PeterCxy/, everything is open-source for this ROM.

Contributors

PeterCxy, GuaiYiHu, aviraxp

Source Code: https://github.com/PeterCxy/android_device_xiaomi_violet