[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] z1c-me:
Successful installation

Thorough reading resulted in a successful installation.

1. For XZ2 Compact Dual Sim (H8324) (H8314 single will work probably also)

2. Used Rom 2020-05-25 by Olivier

3. Used boot image from Olivier

a. This has “Lineage Recovery” not “TWRP”.

b. Functions better for A/B devices, less bricked devices expected

4. Installed zips by adb sideload:

a. https://opengapps.org arm64, android 10, nano

b. SuperSu

5. Download and install adb + fastboot (version from platform google, not the old 15 second installer)

6. Download and install Sony XZ2 compact drivers for fastboot situation

7. Enable USB debugging at phone

8. Unlock bootloader

9. To get into fastboot mode: Press + hold volume down when connect usb cable in phone (and pc)

10. In Windows cmd:

a. adb devices –> use at every use of adb to check connection with phone (winusb drivers needed)

b. adb reboot bootloader

c. fastboot devices –> use at every use of fastboot to check connection with phone (sony drivers needed)

d. fastboot flash boot boot.img

11. Installing LineageOS from recovery:

a. If you are not in recovery, reboot into recovery:

1. With the device powered off, hold Volume Down + Power and choose Recovery Mode.

b. Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).

c. Return to the main menu.

d. Sideload the LineageOS .zip package:

1. On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.

2. On the host machine, sideload the package using: adb sideload filename.zip

(takes a while after counter stops at 47%...)

3. (Optionally): If you want to install any additional add-ons, click Advanced, then Reboot to Recovery, then when your device reboots, click Apply Update, then Apply from ADB, then adb sideload filename.zip those packages in sequence.

4. Note: If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time!

12. Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.

13. (Warning: Depending on which recovery you use, you may be prompted to install additional apps and services. We strongly advise you to opt out of installing these, as they may cause your device to bootloop, as well as attempt to access or corrupt your data.)

Screen dump from cmd at pc:

D:\platform-tools>adb devices

List of devices attached

XXXXXXXXXX sideload

D:\platform-tools>adb sideload lineage-17.1-20200525-UNOFFICIAL-xz2c.zip

Total xfer: 1.00x

D:\platform-tools>adb sideload lineage-17.1-20200525-UNOFFICIAL-xz2c.zip

adb: sideload connection failed: no devices/emulators found

adb: trying pre-KitKat sideload method...

adb: pre-KitKat sideload connection failed: no devices/emulators found

D:\platform-tools>adb devices

List of devices attached

XXXXXXXXXX sideload

D:\platform-tools>adb sideload open_gapps-arm64-10.0-nano-20200527-2e.zip

Total xfer: 1.00x

D:\platform-tools>adb devices

List of devices attached

XXXXXXXXXX sideload

D:\platform-tools>adb sideload SR5-SuperSU-v2.82-SR5-20171001224502.zip

Total xfer: 1.00x

Info sources:

XDA MartinX3 pages

https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/

https://lineageos.org/Changelog-19/

https://wiki.lineageos.org/devices/marlin/install

https://www.androidpolice.com/2018/...w-leadership-custom-recovery-support-devices/

https://www.androidauthority.com/lineageos-install-guide-893303/ (ignore twrp and zip flashing)

https://www.hardreset.info/devices/sony/sony-xperia-xz2-compact/faq/drivers/