[Lenovo ZUK Z2 (Plus) ROMs, Kernels, Recoveries, & ] optimumpro:
Updates in this post

Those who are coming from treble roms: you need to format Factory partition too, otherwise, you will have 2 sets of vendor blobs, in other words, MESS

August 7. New release.

1. August security patches

2. Google r46

3. Camera should have level 3 now + more

Dirty flashing is fine, if on the previous release. Otherwise, clean flash - wipe Vendor/Factory/System/Data/Cache/Dalvik

Download rom V6: https://xdaforums.com/devdb/project/dl/?id=31753

July 30: New release V5.2 with fixed installation problems:

You could try dirty flash, but I installed clean, then flashed Opengapps, and Firefox installed without any problems, while it didn't on V5.1.

Download rom V5.2: https://xdaforums.com/devdb/project/dl/?id=31733

July 27. New release, v5.1.

This will fix encryption.

The reason it didn't work was the official TWRP. The maintainer (a known pro) put in the wrong size of userdata partition. So, if you ever formatted data on official TWRP, especially with factory reset, your data partition is screwed for the purposes of encryption (no place for crypto footer). I had to install another version of TWRP, and after I did format there, encryption worked. So, I am attaching both the rom and unofficial TWRP by handibuddy. This is also a signed version (as well as the rom itself), so you can re-lock bootloader on this rom: I have been doing this for ages and long before Lineage came up with the idea (you can check my signing guide in Oneplus 5 thread).

Download Rom V5.1: https://xdaforums.com/devdb/project/dl/?id=31727

Download signed TWRP: https://xdaforums.com/devdb/project/dl/?id=31728

Instructions: Rom could be flashed dirty over V5. TWRP could be flashed as image (to recovery) in your existing TWRP or via fastboot.

Just remember, if you want to relock bootloader, encrypt after locking.

July 25. New release, v5

1. July security patches

2. New Night Screen with configurable tint and brightness

3. Support for level 6-6.2 for AVC codecs

4. Option to disable proximity sensor during calls

5. In-CallUi is now themeable

6. Aggressive battery saving mode

7. Latest Lawnchair

Clean flash is required over V4 or if coming from a different rom, in which case you will also need to format vendor or factory partition.

DO NOT ENCRYPT YET!

Instructions:

1. Dirty flash, if already on Jaguar Pie

2. Clean flash, If coming from a different rom, also format vendor/factory/system/data/cache/dalvic

3. Flash the rom, flash GapDirty flash is fine, if on a previous release. Otherwise, clean flash.

Download rom V5: https://xdaforums.com/devdb/project/dl/?id=31725

________________________________________________________________________________________________________

June 6. New release, V4:

1. June security patches

2. Pie r41

Dirty flash is fine, if on a previous release. Otherwise, clean flash.

Instructions:

1. Dirty flash, if already on Jaguar PieClean flash

2. If coming from a different rom, also format vendor/factory/system/data/cache/dalvic

3. Flash the rom, flash GapDirty flash is fine, if on a previous release. Otherwise, clean flash.

Instructions:

1. Dirty flash, if already on Jaguar PieClean flash

2. If coming from a different rom, also format vendor/factory/system/data/cache/dalvic

3. Flash the rom, flash Gapps, reboot, then back to TWRP to flash Magisk

ps, reboot, then back to TWRP to flash Magisk

Download rom V4: https://xdaforums.com/devdb/project/dl/?id=31621

______________________________________________________________________________________________________________________

June 2. Lawnchair update to the latest. Flash in TWRP.

Download Lawnchair: https://xdaforums.com/attachment.php?attachmentid=4770317&d=1559500522

May 31. Rom updated, V3:

1. Major kernel improvements - there is no reason to use my Oreo kernel or any other kernel

2. Flashlight works regardless of 'always on' or 'ambient display' (that required a clean flash)

Instructions:

1. Clean flash recommended - wipe system/data/cache/dalvik

2. If coming from a different rom, also format vendor/factory

3. Flash the rom, flash Gapps, reboot, then back to TWRP to flash Magisk

Download rom V3: https://xdaforums.com/devdb/project/dl/?id=31612

_____________________________________________________________________________________________________________________

May 30. This is an updated version of the new kernel I posted earlier. This one contains my commits + reversed 'power saving' commits. Sometimes, you get things better by reversing.

Unzip, put on internal SD and flash either with TWRP (as image onto boot partition) or via fastboot.

Download new kernel: https://xdaforums.com/attachment.php?attachmentid=4768179&d=1559177914

May 28. Lawnchair update. Flash in recovery:

Download Lawnchair: https://xdaforums.com/attachment.php?attachmentid=4767269&d=1559060237

May 27. Updated release:

1. Fixed toggling flashlight in ambient display

2. Improvements in Qualcomm's boostframework

3. Contactsprovider updated (disappearing contacts)

Could be dirty flashed over V2. Otherwise, clean flash.

Download rom V2.1: https://xdaforums.com/devdb/project/dl/?id=31602

May 25. New release, V2:

1. May security patches

2. Android Pie r37

3. Big changes in frameworks: exec spawning function is severely restricted to all apps, i.e., only one instance is allowed

4. Most resources preloading for exec spawning is disabled. As a result, boot time is shorter, fewer background resources are loaded in ram, which translates into an overall smoother experience.

5. Aggressive battery saving

6. Status bar burn protection

7. Media cover art filter (on lockscreen)

8. Switched to Bromite system webview V74

9. Redone auto-brightness and ambient display: ZukDoze removed, as Customdoze and Amibientdisplay are now builtin (Settings/Display)

10. Lawnchair upgraded: many fixes including Pie recents

11. MusicFX/Equalizer is now themeable

12. Zukparts removed, as spectrum profiles simply don't work, and KCAL could be done via Kernel Adiutor

13. Battery icon Q style

14. Wifi randomization working (Developer Settings)

15. Captive portal detection toggle (Settings/Wifi/Advanced - disable network connectivity check). You can now uninstall Captiveportal and have no 'x' in Wifi and Mobile icons

Instructions:

1. Clean flash required

2. Format system/vendor (or factory, depending on what you have)/data/dalvik/cache; if you were encrypted in Oreo or FBE in Pie, in addition, do factory reset

3. Flash the rom, flash Mind the Gapps or Nano Gaps, reboot. Then back to TWRP and flash Magisk

If your provider's APN is not on the list, set it up and enable. If data doesn't work, then change CDMA subscription in Mobile network to the alternative.

Download rom V2: https://xdaforums.com/devdb/project/dl/?id=31591

__________________________________________________________________________________________________________________

April 9. New release. Lots of changes, mostly in kernel:

1. Inteli-thermal

2. Thermal-engine ported from Jaguar Oreo, so the rom runs about 3 degrees cooler

3. Substantially improved fluidity: according to testers, virtually no lag

Instructions:

1 If on a previous release, flash dirty and wipe dalvik/cache

2. if new, format system/vendor (or factory, depending on what you have)/data/dalvik/cache; if you were encrypted in Oreo or FBE in Pie, in addition, do factory reset

3. Flash the rom, flash Mind the Gapps, reboot. Then back to TWRP and flash Magisk

Download rom V1.1: https://xdaforums.com/devdb/project/dl/?id=31467

_____________________________________________________________________________________________________________________

April 5. Here is the first update, kernel only. Speed improvement.

Just flash boot.img on top of the first release.

Download kernel: https://androidfilehost.com/?fid=1395089523397933955