[ROM][UNOFFICIAL] LineageOS 17.1 for Xperia 1 II

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
538
696
Chongqing
http%3A%2F%2Fi.imgur.com%2F2okPze5.png

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
which is designed to increase performance and reliability over stock Android for your device.

All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

Official LineageOS website : http://lineageos.org
About LineageOS Legal : http://lineageos.org/legal/

Important Information
1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
2. This ROM will never work with any versions of Google Camera (GCam)!
3. You need to flash Stock Android 10 before flashing this ROM.
4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!
5.If you cam from SODP ROMs, you need to go back to official Android 10 firmware, and boot into launcher.

Downloads Links
LineageOS 17.1:
Unofficial-build:
Link

Google Applications (optional):
OpenGapps:
http://opengapps.org/ (ARM64->Android 10.0->Pico, Nano or Micro)
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
How to flash

Make sure you upgraded to Official Android 10.0 from Sony
Unlock bootloader is necessary.
Download latest platform-tools from google

1. Install fastbootd drivers, guidance
2. Put your device into fastboot by volume up key.
3. Enter fastbootd:
Code:
fastboot reboot fastboot
4. Flash LineageOS:
Code:
fastboot set_active a
fastboot flash:raw boot boot.img
fastboot flash dtbo dtbo.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
fastboot erase metadata
fastboot flash system system.img
fastboot flash product product.img
5. If you are first time to flash LineageOS, Wipe the old userdata:
Code:
fastboot erase userdata

Gapps:
Download Lineage Recovery
You could also choose twrp or else.

Flash and boot into Recovery then choose Apply update - Apply from ADB, then sideload the gapps package on your PC with adb tool:
Code:
adb sideload <PATH OF GAPPS>

Root access:
Flash Magisk in recovery.

Issues and reports

Report issues only if you are using the ROM kernel
If an additional mod is installed, make sure it's unrelated, and mention it
Make sure the issue wasn't discussed earlier in the threads
Share a log of the error with CatLog for example

Donation:
If you would like to donate me a cup of tea, you can:
Paypal

Also thanks to:
cramfs28
Shion Kagurazaka 神樂坂紫苑 云贵高原小白鼠扛把子

The LineageOS Team
The CyanogenMod Team

XDA:DevDB Information
Lineage-17.1 for Xperia 1 II, ROM for the Sony Xperia 1 II

Contributors

Sjll
Source Code:

ROM OS Version: Android 10
ROM Kernel: Linux 4.x

Version Information
Status:
Beta

Created 2020-12-06
Last Updated 2020-12-06
 

Attachments

  • 20201206204246.jpg
    20201206204246.jpg
    81.2 KB · Views: 721
  • Screenshot_20201206-204014.png
    Screenshot_20201206-204014.png
    138.8 KB · Views: 730
  • Screenshot_20201206-2040172.png
    Screenshot_20201206-2040172.png
    158.9 KB · Views: 691
Last edited:

Sjll

Recognized Developer
Jun 4, 2017
538
696
Chongqing
FEATURES AND ISSUES
Code:
- Boot: Ok
- Bluetooth: Ok
- WiFi: Ok
- WiFi Hotspot: Ok
- Wireless display: Not tested
- RIL - Phone - Data: Ok
- VoLTE: Ok
- GPS: Ok
- Camera: Ok
- Camcorder: Ok
- Lights: Ok
- MicroSD: Ok
- Accelerometer: Ok
- Compass: Ok
- Gyroscope: Ok
- QTI sensors: Ok
- Touchscreen: Ok
- FM Radio: NA
- Fingerprint: Ok
- Vibrator: Ok
- Microphone: Ok
- Audio & music: Ok
- Bluetooth audio: Ok
- NFC: Ok
- Kernel: Ok
- Graphics: Ok
- 3D Rendering: Ok
- Clock: Ok
- DRM: Widewine L3
- Offline Charging: Ok
- USB: Ok
- USB Tethering:  Ok
- USB OTG: Ok
- Encryption: Ok
- SEPolicies: Enforce
 
Last edited:
  • Like
Reactions: yourguitarist

danfauca

Member
Jan 8, 2017
19
2
Hi, was it difficult to build an aosp for this device?
I would lite to try to build for 5 ii but have no experience at all so I'm wondering if it won't be to difficult.
 

Sjll

Recognized Developer
Jun 4, 2017
538
696
Chongqing
Hi, was it difficult to build an aosp for this device?
I would lite to try to build for 5 ii but have no experience at all so I'm wondering if it won't be to difficult.
If you have a PC with 16GB+ RAM, 200GB+ disk space, and know the basic operation of ubuntu. You could build LineageOS following some guidances. And if you could test on your Xperia 5 II, I could provide you devcie tree for Xperia 5 II.
 

danfauca

Member
Jan 8, 2017
19
2
I've just checked on sony website and sadly xperia 5 ii isn't on the list of unlockable devices.
I'll consider buying xpreria 5 and building LineageOS for it.
 

pawloland

Senior Member
Jan 23, 2019
186
74
Sony Xperia 5 II

killuminati206

Senior Member
Jun 30, 2013
115
12
So i go to unlock bootloader with code provided by sony and in cdm is says no phone is recognized. Can anyone help me out?? Thanks
 

Scharfh

New member
Dec 14, 2020
1
2
Hey! Good job!
I am thinking about flashing to LineageOS, but (as a newbie) I have a important question:
- as I see, everything for HW works, but how about camera and photo quality? Is possible to somehow instal those Sony camera pro apps?

Thank you for your reply in advance!
 
  • Like
Reactions: nixigaj and Mudkidd

mskyaxl

Senior Member
Aug 16, 2012
66
24
Iasi
Wow! Niice I will give it a try. I'm looking more into a de-googled phone. Is the pro camera app still working?

Do you have some instructions on how to build everything? I am interested in contributing.

UPDATE: Has anyone tried flashing after upgrading to Android 11?
 
Last edited:
  • Like
Reactions: nixigaj

momba5

Member
Jan 18, 2021
7
1
If you have a PC with 16GB+ RAM, 200GB+ disk space, and know the basic operation of ubuntu. You could build LineageOS following some guidances. And if you could test on your Xperia 5 II, I could provide you devcie tree for Xperia 5 II.

I have the 5 II too (58.0.A.22.21). Already unlocked bl and I'm ready for the next step but I'm an ubuntu noob. Maybe I can help on the testing end?
 
  • Like
Reactions: mskyaxl

spicard

Member
Jun 26, 2010
5
4
This is super interesting, really looking forward to it, but can't get the partitions to write.
Luckily, the failure did not effect the stock android, so its not bricked but no lineageos yet :(
This is the xq-at51 and I did unlock the bootloader. TWRP installed fine.

Here's what I did:

Code:
C:\Tools\android_tools\platform-tools>fastboot set_active a
Setting current slot to 'a'                        OKAY [  0.009s]
Finished. Total time: 0.012s

C:\Tools\android_tools\platform-tools>fastboot flash:raw boot boot.img
Sending 'boot_a' (98304 KB)                        OKAY [  2.527s]
Writing 'boot_a'                                   OKAY [  0.419s]
Finished. Total time: 3.015s

C:\Tools\android_tools\platform-tools>fastboot flash dtbo dtbo.img
Sending 'dtbo' (24576 KB)                          OKAY [  0.638s]
Writing 'dtbo'                                     OKAY [  0.053s]
Finished. Total time: 0.707s

C:\Tools\android_tools\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (4 KB)                            OKAY [  0.005s]
Writing 'vbmeta'                                   OKAY [  0.002s]
Finished. Total time: 0.019s

C:\Tools\android_tools\platform-tools>fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
Sending 'vbmeta_system' (4 KB)                     OKAY [  0.004s]
Writing 'vbmeta_system'                            OKAY [  0.002s]
Finished. Total time: 0.019s

C:\Tools\android_tools\platform-tools>fastboot erase metadata
Erasing 'metadata'                                 FAILED (remote: 'Erasing is not allowed for partition
')
fastboot: error: Command failed

C:\Tools\android_tools\platform-tools>fastboot flash system system.img
Sending sparse 'system' 1/2 (773740 KB)            OKAY [ 20.106s]
Writing 'system'                                   FAILED (remote: 'No such partition.')
fastboot: error: Command failed

C:\Tools\android_tools\platform-tools>fastboot erase userdata
******** Did you mean to fastboot format this f2fs partition?
Erasing 'userdata'                                 OKAY [  9.540s]
Finished. Total time: 9.545s


And here's the partition list I get:

Code:
C:\Tools\android_tools\platform-tools>adb shell ls -l /dev/block/platform/soc/1d84000.ufshc/by-name
total 0
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 LTALabel -> /dev/block/sda2
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 TA -> /dev/block/sda1
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 abl_a -> /dev/block/sda14
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 abl_b -> /dev/block/sda28
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 aop_a -> /dev/block/sda11
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 aop_b -> /dev/block/sda25
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 apdp -> /dev/block/sda43
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 appslog -> /dev/block/sda55
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 bluetooth_a -> /dev/block/sda62
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 bluetooth_b -> /dev/block/sda76
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 boot_a -> /dev/block/sda64
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 boot_b -> /dev/block/sda78
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 cdt -> /dev/block/sda51
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 cmnlib64_a -> /dev/block/sda17
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 cmnlib64_b -> /dev/block/sda31
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 cmnlib_a -> /dev/block/sda16
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 cmnlib_b -> /dev/block/sda30
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 ddr -> /dev/block/sda41
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 devcfg_a -> /dev/block/sda18
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 devcfg_b -> /dev/block/sda32
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 devinfo -> /dev/block/sda40
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 diag -> /dev/block/sda56
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 dsp_a -> /dev/block/sda63
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 dsp_b -> /dev/block/sda77
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 dtbo_a -> /dev/block/sda69
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 dtbo_b -> /dev/block/sda83
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 frp -> /dev/block/sda6
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 hyp_a -> /dev/block/sda13
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 hyp_b -> /dev/block/sda27
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 imagefv_a -> /dev/block/sda20
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 imagefv_b -> /dev/block/sda34
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 keymaster_a -> /dev/block/sda15
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 keymaster_b -> /dev/block/sda29
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 keystore -> /dev/block/sda53
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 limits -> /dev/block/sda46
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 limits-cdsp -> /dev/block/sda47
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 logdump -> /dev/block/sda49
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 logfs -> /dev/block/sda48
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 mdm1m9kefs1 -> /dev/block/sda8
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 mdm1m9kefs2 -> /dev/block/sda9
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 mdm1m9kefs3 -> /dev/block/sda7
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 mdm1m9kefsc -> /dev/block/sda10
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 mdmddr -> /dev/block/sda42
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 metadata -> /dev/block/sda54
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 misc -> /dev/block/sda52
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 modem_a -> /dev/block/sda61
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 modem_b -> /dev/block/sda75
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 msadp -> /dev/block/sda44
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 multiimgoem_a -> /dev/block/sda71
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 multiimgoem_b -> /dev/block/sda85
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 multiimgqti_a -> /dev/block/sda72
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 multiimgqti_b -> /dev/block/sda86
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 oem_a -> /dev/block/sda70
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 oem_b -> /dev/block/sda84
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 persist -> /dev/block/sda3
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 qupfw_a -> /dev/block/sda19
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 qupfw_b -> /dev/block/sda33
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 rddata -> /dev/block/sda91
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 rdimage_a -> /dev/block/sda66
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 rdimage_b -> /dev/block/sda80
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 recovery_a -> /dev/block/sda65
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 recovery_b -> /dev/block/sda79
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 secdata -> /dev/block/sda57
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 spunvm -> /dev/block/sda45
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 ssd -> /dev/block/sda39
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 storsec -> /dev/block/sda50
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 super -> /dev/block/sda89
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 tz_a -> /dev/block/sda12
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 tz_b -> /dev/block/sda26
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 tzxfl_a -> /dev/block/sda23
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 tzxfl_b -> /dev/block/sda37
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 tzxflattest_a -> /dev/block/sda22
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 tzxflattest_b -> /dev/block/sda36
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 uefisecapp_a -> /dev/block/sda24
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 uefisecapp_b -> /dev/block/sda38
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 uefivarstore -> /dev/block/sda58
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 userdata -> /dev/block/sda90
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vbmeta_a -> /dev/block/sda67
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vbmeta_b -> /dev/block/sda81
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vbmeta_system_a -> /dev/block/sda68
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vbmeta_system_b -> /dev/block/sda82
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vm-data -> /dev/block/sda60
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vm-keystore -> /dev/block/sda59
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vm-linux_a -> /dev/block/sda74
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vm-linux_b -> /dev/block/sda88
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vm-system_a -> /dev/block/sda73
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 vm-system_b -> /dev/block/sda87
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 xbl_a -> /dev/block/sdb1
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 xbl_b -> /dev/block/sdc1
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 xbl_config_a -> /dev/block/sdb2
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 xbl_config_b -> /dev/block/sdc2
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 xfl_a -> /dev/block/sda21
lrwxrwxrwx 1 root root 16 1970-01-01 03:01 xfl_b -> /dev/block/sda35
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 xflkeystore -> /dev/block/sda4
lrwxrwxrwx 1 root root 15 1970-01-01 03:01 xflkeystorebak -> /dev/block/sda5
 

spicard

Member
Jun 26, 2010
5
4
Nevermind, the reason for the issue was because I didn't understand that "fastboot reboot fastboot" is needed to get into fastbootd. Fastbootd is a new and confusing concept so I didn't realize I was in fastboot instead of fastbootd when trying to run the commands. Should be able to do this again after getting back to stock recovery.
 
  • Like
Reactions: ivangamerhd

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    http%3A%2F%2Fi.imgur.com%2F2okPze5.png

    Code:
    #include <std_disclaimer.h>
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */
    About LineageOS
    LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
    which is designed to increase performance and reliability over stock Android for your device.

    All the source code for LineageOS is available in the LineageOS GitHub repo.
    And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Official LineageOS website : http://lineageos.org
    About LineageOS Legal : http://lineageos.org/legal/

    Important Information
    1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
    2. This ROM will never work with any versions of Google Camera (GCam)!
    3. You need to flash Stock Android 10 before flashing this ROM.
    4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!
    5.If you cam from SODP ROMs, you need to go back to official Android 10 firmware, and boot into launcher.

    Downloads Links
    LineageOS 17.1:
    Unofficial-build:
    Link

    Google Applications (optional):
    OpenGapps:
    http://opengapps.org/ (ARM64->Android 10.0->Pico, Nano or Micro)
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating
    How to flash

    Make sure you upgraded to Official Android 10.0 from Sony
    Unlock bootloader is necessary.
    Download latest platform-tools from google

    1. Install fastbootd drivers, guidance
    2. Put your device into fastboot by volume up key.
    3. Enter fastbootd:
    Code:
    fastboot reboot fastboot
    4. Flash LineageOS:
    Code:
    fastboot set_active a
    fastboot flash:raw boot boot.img
    fastboot flash dtbo dtbo.img
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
    fastboot erase metadata
    fastboot flash system system.img
    fastboot flash product product.img
    5. If you are first time to flash LineageOS, Wipe the old userdata:
    Code:
    fastboot erase userdata

    Gapps:
    Download Lineage Recovery
    You could also choose twrp or else.

    Flash and boot into Recovery then choose Apply update - Apply from ADB, then sideload the gapps package on your PC with adb tool:
    Code:
    adb sideload <PATH OF GAPPS>

    Root access:
    Flash Magisk in recovery.

    Issues and reports

    Report issues only if you are using the ROM kernel
    If an additional mod is installed, make sure it's unrelated, and mention it
    Make sure the issue wasn't discussed earlier in the threads
    Share a log of the error with CatLog for example

    Donation:
    If you would like to donate me a cup of tea, you can:
    Paypal

    Also thanks to:
    cramfs28
    Shion Kagurazaka 神樂坂紫苑 云贵高原小白鼠扛把子

    The LineageOS Team
    The CyanogenMod Team

    XDA:DevDB Information
    Lineage-17.1 for Xperia 1 II, ROM for the Sony Xperia 1 II

    Contributors

    Sjll
    Source Code:

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x

    Version Information
    Status:
    Beta

    Created 2020-12-06
    Last Updated 2020-12-06
    2
    Hi, was it difficult to build an aosp for this device?
    I would lite to try to build for 5 ii but have no experience at all so I'm wondering if it won't be to difficult.
    If you have a PC with 16GB+ RAM, 200GB+ disk space, and know the basic operation of ubuntu. You could build LineageOS following some guidances. And if you could test on your Xperia 5 II, I could provide you devcie tree for Xperia 5 II.
    2
    I've just checked on sony website and sadly xperia 5 ii isn't on the list of unlockable devices.
    I'll consider buying xpreria 5 and building LineageOS for it.
    It is not on the list, but you can unlock bootloader. You need to select xperia 1 ii, and then pass IMEI of xperia 5 ii. Don't ask me why it is like that :p, but it supposedly works: https://xdaforums.com/t/how-do-you-unlock-the-sony-xperia-5-ii-bootloader.4183593/
    2
    Hey! Good job!
    I am thinking about flashing to LineageOS, but (as a newbie) I have a important question:
    - as I see, everything for HW works, but how about camera and photo quality? Is possible to somehow instal those Sony camera pro apps?

    Thank you for your reply in advance!
    2
    I have the 5 II too (58.0.A.22.21). Already unlocked bl and I'm ready for the next step but I'm an ubuntu noob. Maybe I can help on the testing end?

    My friends already built it, I will ask him for help.
    ------------------EDIT-----------------------
    Released, test and enjoy.