Sony Xperia XZ2 (akari)

The LineageOS Project has long supported the XZ2 ‘akari’ with two mainboards. Based on this, iodé.tech shows how attractive a LineageOS fork with microG can be. Two maintainers are working here as well. Both CustomROM run very smoothly. Get your unlock code from Sony website.

XZ2 Device tree:

https://gitlab.com/iode/os/devices/sony/device_sony_akari

XZ2 manifest.xml
<manifest version="1.0" type="device" target-level="3">
<hal format="hidl">
    <name>android.hardware.gnss</name>
    <transport>hwbinder</transport>
    <version>1.0</version>
    <interface>
        <name>IGnss</name>
        <instance>default</instance>
    </interface>
    <fqname>@1.0::IGnss/gnss_vendor</fqname>
</hal>
<hal format="hidl">
    <name>android.hardware.keymaster</name>
    <transport>hwbinder</transport>
    <version>3.0</version>
    <interface>
        <name>IKeymasterDevice</name>
        <instance>default</instance>
    </interface>
</hal>
<hal format="hidl">
    <name>vendor.lineage.livedisplay</name>
    <transport>hwbinder</transport>
    <version>2.0</version>
    <interface>
        <name>IDisplayModes</name>
        <instance>default</instance>
    </interface>
    <interface>
        <name>IPictureAdjustment</name>
        <instance>default</instance>
    </interface>
</hal>
<hal format="hidl">
    <name>vendor.qti.gnss</name>
    <transport>hwbinder</transport>
    <version>1.2</version>
    <interface>
        <name>ILocHidlGnss</name>
        <instance>gnss_vendor</instance>
    </interface>
</hal>
<hal format="hidl">
    <name>vendor.qti.gnss</name>
    <transport>hwbinder</transport>
    <version>2.0</version>
    <interface>
        <name>ILocHidlGnss</name>
        <instance>gnss_vendor</instance>
    </interface>
</hal>
<hal format="hidl">
    <name>vendor.qti.hardware.cryptfshw</name>
    <transport>hwbinder</transport>
    <version>1.0</version>
    <interface>
        <name>ICryptfsHw</name>
        <instance>default</instance>
    </interface>
</hal>
Lineage Recovery 17.1

https://download.lineageos.org/akari

TWRP Recovery 3.4.0.0

https://github.com/iodeOS/ota/releases/download/v1-akari/twrp-3.4.0-0-akari.img

Fastboot Installing
fastboot --disable-verity --disable-verification flash vbmeta stock_vbmeta.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot -w reboot

The Xperia XZ2 and at least an unofficial /e/ OS ‘Q’ should be feasible for a skilled ROM builder.

1 Like