[Lenovo Zuk Z2 Pro ROMs, Kernels, Recoveries, & Oth] Fendora77:
Hi!

I finally succeeded in having a recent rom on my Zuk Z2 Pro, with Treble. Fingerprints are working, Rooted OK with Magisk, Battery great. This guide can be used for other Treble roms.

Be advised, IT IS NOT EASY. But it's not THAT complicated either. Please read the whole post before attempting anything.

Pre-requisites :

1) twrp-3.2.3-1-z2_row.img installed as your recovery (higher versions are buggy with MTP)

2) Download Arrow-v11.0-z2_row-OFFICIAL-20200919-VANILLA.zip (or more recent)

3) Download lineage-18.1-20220120-UNOFFICIAL-treble_arm64_bvS-vndklite.img (or more recent) UNCOMPRESS IT IF IT'S A .IMG.XZ FILE.

4) Download Magisk-v24.0.apk and rename it into Magisk-v24.0.zip

5) (Optional) Download OpenGapps PICO (Arm64, 11.0, Pico) Heavier versions are too big and won't install.

Installation :

1) Backup your phone. Do it.

2) Go to your recovery, and wipe :

- Dalvik/Art Cache

- Cache

- System

- Data

- Internal Storage

3) Plug your phone on your computer, and move all the files you downloaded on your phone.

4) Install (use install/install zip) Arrow-v11.0-z2_row-OFFICIAL-20200919-VANILLA.zip It will update the vendor partition, necessary to be Treble compatible.

5) Wipe cache/dalvik, Reboot System, go to settings, and save ONE fingerprint (it will allow you to use the fingerprints with the treble rom, very important)

6) Reboot to recovery, then flash (use install/install image)lineage-18.1-20220120-UNOFFICIAL-treble_arm64_bvS-vndklite.img to the System partition, then wipe Dalvik/Art Cache

7) Install (use install/install zip) Magisk-v24.0.zip (Don't wipe dalvik/art cache after)

8) Resize System Partition (Wipe->Advanced Wipe->Tick "System"->Repair of change File System->Resize File System)

9) Install (use install/install zip) opengapps pico (Don't wipe dalvik/art cache after)

10) Reboot System

11) Now the worst part : Registering the new GSF ID. It will take several hours. If you don't use OpenGapps, skip this part.

You might have non-stop annoying notifications about your device not being certified for play protect. Put your phone in "don't disturb" mode or you'll become crazy.

- Get your GSF ID. It will reset every time you reset your phone. I used Device ID, installed it by placing it on the phone when plugged in to my computer in recovery mode, then installed with the "Files" app on the phone.

- Then go to https://www.google.com/android/uncertified/ with your google account, and register your GSF ID.

- WAIT. It will take several hours.

- You might have to force stop and clear storage of those 3 apps : google play services,google play store,google services framework (Display system apps when browsing apps in settings)

You'll then finally be able to finish your phone configuration and restore your settings/apps.

12) Great! You now have to disable the 3 buttons navbar (because our phone already have the physical button for the navigation), you'll need magisk :

https://xdaforums.com/t/mod-magisk-disable-navbar-for-3rd-party-navigation-gestures.4225775/

su (gain root access)

props (open the hideprops menu)

5 (Add/edit prop values)

n (New custom prop)

qemu.hw.mainkeys (the build prop for whether to include softkey navbar)

1 (sets the build prop to disable the softkey navbar)

y (yes to continue with defaults)

y (yes to reboot)

Choose late stage or else it won't work at reboot.

I had it for two weeks and didn't notice any bug. Very happy with it.