[ROM][UNOFFICIAL][10][Q]LineageOS 17.1 for z5c (suzuran)

Search This thread

Berni-0815

Senior Member
Sep 22, 2016
2,481
2,176
Germany
Sony Xperia Z5 Compact
Hi all:

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

Download 2022-09-11

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 September 2022
  • 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.6.2!
  • 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):
Code:
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:
    Code:
    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:
    Code:
    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:
      Code:
      cd sys/fs/pstore
      cp * /sdcard
    • Send me the copied file(s), if any, via PM.
 

Attachments

  • Screenshot_20200315-223118_Settings.png
    Screenshot_20200315-223118_Settings.png
    138.2 KB · Views: 3,734
  • Screenshot_20200530-112635_LineageOS_Settings.png
    Screenshot_20200530-112635_LineageOS_Settings.png
    60 KB · Views: 2,437
  • Screenshot_20200530-112650_LineageOS_Settings.png
    Screenshot_20200530-112650_LineageOS_Settings.png
    52.1 KB · Views: 2,315
  • Screenshot_20200530-112702_LineageOS_Settings.png
    Screenshot_20200530-112702_LineageOS_Settings.png
    49.7 KB · Views: 2,193
  • Screenshot_20200530-112718_LineageOS_Settings.png
    Screenshot_20200530-112718_LineageOS_Settings.png
    47.8 KB · Views: 2,171
  • Screenshot_20200609-112959_LineageOS_Settings.png
    Screenshot_20200609-112959_LineageOS_Settings.png
    74.1 KB · Views: 2,031
  • Screenshot_2020-07-23-10-30-40.png
    Screenshot_2020-07-23-10-30-40.png
    54.1 KB · Views: 1,339
  • Screenshot_2020-07-23-10-30-48.png
    Screenshot_2020-07-23-10-30-48.png
    41 KB · Views: 1,369
  • Screenshot_20210125-133252_SafetyNet_Test.png
    Screenshot_20210125-133252_SafetyNet_Test.png
    97.6 KB · Views: 750
Last edited:

Ryu--X

Senior Member
May 13, 2014
319
89
Paris
Hi Bernie,

First things first : Thank you so much for your amazing work on this device.:highfive:

So hard to find a good, compact and up to date smartphone.


So i tried your Los17.1 and i just noticed another issue : ram usage.
Without nor the gapps neither other apps installed, the system is using 1.6go ram (even the keyboard can take time to appear once you launch an app)


On your Los14.1 (i tried with the last one you created, a few days ago) : it would be something like 0.8go ram (so everything run smoother) still without gapps and other apps / settings.


Maybe, now our days, 3go ram is mandatory for android + gapps + 3rd party ...
 
  • Like
Reactions: mahbod.es.1996

Berni-0815

Senior Member
Sep 22, 2016
2,481
2,176
Germany
Sony Xperia Z5 Compact
So i tried your Los17.1 and i just noticed another issue : ram usage.
Without nor the gapps neither other apps installed, the system is using 1.6go ram (even the keyboard can take time to appear once you launch an app)
I know about that. I've tried with gapps and I can confirm that ram is running out of free space. Sometimes the system is not responding any more (screen is flickering and it seems that nothing happens) and I have to restart it (press power button quite a long time until power menu appears).

It is indeed far away from being a daily driver... :angel:

Another issue: It seems that location services (gps) are not working.

Does anybody confirm that?
 
Although Bernard warmed us that this ROM is not precisely ready yet, I tried to give it a go, Twice, already. At each time, some variations: with and without gapps (Pico and Nano), via the recommended TWRP and the 3.3.1 one. The result is always the same: after the language selection, my phone reboots on the 'Just a sec', endlessly. I have to restore a nandroid backup, on order to have a working phone again.

Sent from my Xperia Z5 Compact using XDA Labs
 

Ryu--X

Senior Member
May 13, 2014
319
89
Paris
It is indeed far away from being a daily driver... :angel:

Another issue: It seems that location services (gps) are not working.

Does anybody confirm that?

I can confirm that unfortunately GPS isn't working.

By the way, i saw many other good roms on many devices ... that had an alpha rom far worse than this one ;)



Although Bernard warmed us that this ROM is not precisely ready yet, I tried to give it a go, Twice, already. At each time, some variations: with and without gapps (Pico and Nano), via the recommended TWRP and the 3.3.1 one. The result is always the same: after the language selection, my phone reboots on the 'Just a sec', endlessly. I have to restore a nandroid backup, on order to have a working phone again.


Sent from my Xperia Z5 Compact using XDA Labs

i didn't have this behavior on my tests, but i usually let the system start and wait for few minutes before using it (especially on 1st boot).
Also, i always reboot once after the 1st boot.

Hope it will help :)
 
Last edited:

Berni-0815

Senior Member
Sep 22, 2016
2,481
2,176
Germany
Sony Xperia Z5 Compact
I can confirm that unfortunately GPS isn't working.
You have to enable google's location service in location settings. With that, maps is working with correct location; but I don't know if the location comes from gps, wlan or network. It's raining since many days and I don't want to stand outside in the rain and wait for gps connection... :angel:

I've tried to install f-droid and their location services; no better results...

By the way, i saw many other good roms on many devices ... that had an alpha rom far worse than this one ;)
Yes, I know. The problems are always the closed-source binaries from qualcom and sony that are not properly working on LineageOS versions > 14.1 :(

We're working on it but I'm not able to say if we can fix these issues.
 

Berni-0815

Senior Member
Sep 22, 2016
2,481
2,176
Germany
Sony Xperia Z5 Compact
i tried both calling and receiving a call without issue.

Just a pop up saying mobile network is unavailable ,at the end ,when i hang up (but it's wrong, network is still available)
Weird! At my device this popup comes in the moment when trying to make an outgoing call. And this call is not started! The other end does not ring!
Could you please tell us, which preferred network type is set in *#*#info#*#* "Phone info" and in "Mobile network settings" (see screenshots)?
 

Attachments

  • Screenshot_20200219-185930_Settings.png
    Screenshot_20200219-185930_Settings.png
    133.9 KB · Views: 1,323
  • Screenshot_20200221-120621.png
    Screenshot_20200221-120621.png
    56.4 KB · Views: 1,321

Jelliol

Member
Jul 1, 2013
21
3
I'm not on any aspect a Dev but I give you all my energy on continuing the developpment of this ROM.

Any other support available ?
 
Last edited:
  • Like
Reactions: Ryu--X

Ryu--X

Senior Member
May 13, 2014
319
89
Paris
Weird! At my device this popup comes in the moment when trying to make an outgoing call. And this call is not started! The other end does not ring!
Could you please tell us, which preferred network type is set in *#*#info#*#* "Phone info" and in "Mobile network settings" (see screenshots)?

Here it is !
 

Attachments

  • Screenshot_20200222-105238_Parametres.png
    Screenshot_20200222-105238_Parametres.png
    66.4 KB · Views: 331
  • Screenshot_20200222-105802_Parametres.png
    Screenshot_20200222-105802_Parametres.png
    158.3 KB · Views: 333
  • Screenshot_20200222-105400_Parametres.png
    Screenshot_20200222-105400_Parametres.png
    70.3 KB · Views: 335
Last edited:

Ryu--X

Senior Member
May 13, 2014
319
89
Paris
Hmmm. Then is must be a problem with my german providers (with their apn I think); I've tested two: T-Mobile and O2. With both I can't make outgoing calls... :eek:

Pretty strange, indeed.
The phone i tested with is on another provider than my z5c.
I got to say that i checked the apn before making my tests, and they were good.


I will retry with the new version tonight .

Thanks :)
 

weasal

Member
Feb 22, 2008
31
12
The APN shouldn't matter for regular calls unless you're using Wifi calling or VoLTE, maybe disable both and see if it works.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    Hi all:

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

    Download 2022-09-11

    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 September 2022
    • 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.6.2!
    • 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):
    Code:
    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:
      Code:
      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:
      Code:
      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:
        Code:
        cd sys/fs/pstore
        cp * /sdcard
      • Send me the copied file(s), if any, via PM.
    10
    New version out; see 1st post.
    New: Phone calls and SMS fully working! :good:
    9
    New version out; see 1st post.
    • Android security patch level: 5 August 2020
    • Offline charging working
    • Notification LED working
    8
    New version out; see 1st post. Some memory improvements. Device runs smooth without GApps and keeps quite cool and battery loss is low.
    But with GApps the device becomes unusable after quite short time.
    7
    Very good! :good:

    Next big thing is memory. The device freezes too fast and I have problems with OpenGApps. I can neither flash the rom and OpenGApps together nor the rom first and OpenGApps after full install. Everytime the device freezes down to zero... :eek:

    Next version is on the way; stay tuned...