[Xperia Z5 Compact Android Development] Berni-0815:
Hi all:

Here is a LineageOS 17.1 ROM for Z5 compact (suzuran).

Download 2023-07-27

This is a 7z archive with the zip'ed rom and the md5 file in it. Please unpack this archive, copy the included two files somewhere to your device, reboot into TWRP and flash this zip file. Enable md5sum checking. The zip file itself is not signed, so you have to disable zip verification.

Kernel sources

Tree sources

Features:

OS Version: 10.0 (Q)

Kernel: Linux 3.10

Kernel 3.10.108

New: Android security patch level: 5 February 2023

Using sony blob's from stock version 32.4.A.1.54

Memory issues finally fixed!

Battery consumption significantly reduced! For further reduction, please follow these instructions.

Google Pay does not give an error when starting the app. This does not mean, that payment is working. I can't test it, because I don't use this feature at all. Please report if it's working or not.

Updated aptX encoder blobs.

P2P-Crashes fixed.

Important informations:

You should be familiar with general installation of custom ROMs.

Required for installation: TWRP 3.2.1 (pick the version from 2018-02-23!!!) There is a version 3.2.3 out there, but with that version I had problems to restore my backups. 3.2.1 is just working perfect for me!

OR use my self built TWRP-version 3.7.0!

This ROM needs a clean install, old /data may cause problems!

This ROM is NOT pre-rooted.

It is highly recommended that your device is running (or HAS RUN in the past!) the latest stock ROM from Sony (32.4.A.1.54) before flashing this ROM.

Otherwise the baseband files may not match.

Working:

Bluetooth

Camera; both built-in camera (Snap) and 3-rd party camera apps.

Snap may be a little bit laggy, please use 3-rd party camera app instead; for example OpenCamera. If you're running into errors, please report.

Enforced SELinux support (see attached screenshot)

Fingerprint

FM-Radio

GApps (pick this version: ARM64, 10.0, pico [tested])

German app AusweisApp2 working (see this post)

GPS

Headset

LiveDisplay (see attached screenshots)

Location services

Notification LED

Offline charging

Phone calls (see attached screenshot)

SafetyNet test passed successfully

Signed build

SMS

Torch

WiFi

These things are NOT (or badly) working:

Camera focus at low distances.

Encryption

Payment

Streaming (mirroring)

VoLTE

Maybe some more things are not working.

If you have problems with GApps:

Sometimes the SetupWizard of GApps crashes on and on. Then you have to boot into TWRP, mount system, and go into terminal, where you have to delete SetupWizard (see screenshots):

cd /system/system/priv-app
rm -rf SetupWizard

Reboot.

Use this rom at your own risk! It comes without any warranty! I'm not responsible for any damage! If you don't agree with that, don't try to flash this rom in any way.

Benefits:

Added F-Droid and UnifiedNLP! If you don't want this, simply de-install it.

I've set maximum speaker volume to a higher value.

I've increased microphone gain.

I've changed the microfone gain to avoid echo in phone calls.

Changelog

Troubleshooting:

If you're running into an error, please search in this thread if this error is already posted, before you post it again!

If not, I need a LOG to see what went wrong. Without a LOG I can't help you!

A LOG can be fetched by connecting the device with an USB cable to your PC and then by typing these commands line by line:

adb root
adb shell logcat -b all -d > logcat

Send my this LOG file via PM.

If you think this could be a SELinux related issue, please try to set the device to permissive mode first.

If the issue is gone, I need the policy file too (plus LOG). Fetch it by typing this line in a terminal:

adb pull /sys/fs/selinux/policy

If you stuck in a bootloop you can fetch a LOG with this trick:

Press the power button and the volume up button together until the device shuts down.

HOLD the power button.

Release the volume up button and press the volume down button immediately after releasing the volmue up button.

The device should start into TWRP recovery.

Tap on "Advanced", then on "Terminal" and enter these commands line by line:

cd sys/fs/pstore
cp * /sdcard

Send me the copied file(s), if any, via PM.