[ROM][UNOFFICIAL][12][S]LineageOS 19.1 for z5c (suzuran)

Search This thread

dim.on

Senior Member
Aug 3, 2012
59
15
Is that for sure?
AUDIO_OUTPUT_FLAG_DEEP_BUFFER is used in my android_device_sony_kitakami-common/audio/audio_policy_configuration.xml in this sector:
Code:
                <mixPort name="deep_buffer" role="source"
                        flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
                             samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
                </mixPort>
My patch changes the buffer size of the "primary output", The primary output is used to play notification sounds phone ringing etc. Audio crackling appears exactly in this situations e.g. when the phone wakes up and plays a notification sound.
The mixport "deep buffer" (that's the snippet you've pasted) is used in completely different situations i.e. when playing music through a music app.

Be aware, that my change increases the audio latency of the primary output.
 

Berni-0815

Senior Member
Sep 22, 2016
2,485
2,176
Germany
Sony Xperia Z5 Compact
New version out; see 1st post.
  • Android security patch level: 5 February 2023
 

Attachments

  • Screenshot_20230218-191827_Settings.png
    Screenshot_20230218-191827_Settings.png
    84.1 KB · Views: 20
  • Like
Reactions: username one

crickyo

Senior Member
Aug 18, 2010
129
15
Hi Berni Thanks for your work,

I've spent today trying to change the rom on my phone i've been able to unlock the bootloader but im getting stuck installing twrp i have tried both your version and the TWRP 3.2.1 (pick the version from 2018-02-23!!!) but im getting stuck and no searches have helped so far they all lead to issues for other phones none for the z5c

In the command prompt im getting this error:

fastboot flash recovery recovery.img
Warning: skip copying recovery image avb footer (recovery partition size: 0, recovery image size: 12296192).
Sending 'recovery' (12008 KB) OKAY [ 0.281s]
Writing 'recovery' FAILED (remote: 'Command not allowed')
fastboot: error: Command failed

Its been a while since ive been installing custom roms the last was a few years back so i sort of know how to do most things when i had a z3c im sure i had a custom rom or two on that :)

Hoping someone can point out where im going wrong and i can get this on my phone

Cheers

Crickyo
 

Berni-0815

Senior Member
Sep 22, 2016
2,485
2,176
Germany
Sony Xperia Z5 Compact
It seems that your device has not unlocked the bootloader.

Please try to repair the device using the recommended tool from Sony itself (XperiaCompanion?) and after that you should use the service menu *#*#7378423#*#* to evaluate if you really can unlock the device.

If yes, you should flash and install the latest stock ROM 32.4.A.1.54 using the FlashTool.

After that is successful, you can try to flash a custom ROM.
 

wthenujaya

Member
Jun 23, 2015
9
2
Peformance was good enough and video recording lags on 1080 back camera and 480-1080 front cam, but lowering it to 720p back cam and CIF quality on front fixed the issue and it save to the sd card. Overall good work for the z5 compact Berni!
 

jmcornil

New member
Mar 29, 2023
1
0
Hi all:

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

New: ROM with microG apk's included in priv-app:
Download 2023-03-26

Please pay attention: microG can't coexist with GApps! So decide whether to install microG OR GApps!

If you want to remove microG, enter these commands line by line in a terminal:
Code:
adb root
adb shell

mount -o remount,rw /

rm /system/priv-app/DroidGuard/DroidGuard.apk
rm /system/priv-app/FakeStore/FakeStore.apk
rm /system/priv-app/GmsCore/GmsCore.apk
rm /system/priv-app/GsfProxy/GsfProxy.apk

exit

Reboot!


Or flash this microG-remover.

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: 12 (S)
  • Kernel: Linux 3.10
  • Kernel 3.10.108
  • New: Android security patch level: 5 March 2023
  • Using Sony blob's from stock version 32.4.A.1.54

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!!!)
    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. For rooting you can use Magisk.
  • 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:
  • Audio
  • Bluetooth
  • New: Camera fully working!
  • Enforced SELinux support
  • Fingerprint (sometimes crashes)
  • FM-Radio (maybe it needs a few restarts before it's working)
  • GApps
  • German App AusweisApp2
  • GPS
  • Headset
  • LiveDisplay
  • Location services
  • Network Traffic Monitoring
  • NFC
  • Notifications
  • Notification LED
  • Offline charging
  • Phone calls
  • Reboot into recovery and bootloader
  • Sensors
  • Signed build
  • SMS
  • Sounds
  • Torch
  • WiFi
  • ...please tell me...
These things are NOT (or badly) working:
  • Encryption
  • Payment
  • Streaming (mirroring)
  • VoLTE
Maybe some more things are not working. Please tell me...

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 Aurora-Store, 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.


One last request:

Please, do not ask about problems for which my ROM is not responsible.
From now on I will only react to problems that I can reproduce and that are caused by my ROM.


I'm sorry for that, but I'm developing this ROM in my spare time and I still have a normal life.
Hello
Thank you for this work.

With this ROM, I have the following problem : with Android Studio it is impossible for me to debug an application. I can run it on the device but impossible to debug it for I do not see it in the attach window).

I tested with LineageOS18.1 and there is no problem neither for running neither for debugging. Hence the problem does not comes from my Android Studio install.
I work with linux Xubuntu 22.04.

Thanks again

Jm CORNIL
 
Hi thanks again, Berni, for your work on the Z5c rom :)

I've had a look through the thread to find if my issue is known, but to no avail. I don't have any crackling issues through the speaker as others have experienced

However, during a phone call, when I output the incoming phone call audio to the speaker (using the button on the telephone app - earpiece/speaker function) there is no audio, but my caller can still hear me fine.

Please let me know if there is a fix, am i doing something wrong, or what I can do to provide you with any more info.
Thanks again :)

EDIT more info: ringtones and YT music play fine over the speaker normally.
 

Berni-0815

Senior Member
Sep 22, 2016
2,485
2,176
Germany
Sony Xperia Z5 Compact
I've made the experience, that these running ROM's sometimes changes themselfes without any real reason.
In this case it always helped to setup the ROM again from the very beginning (clean install).
For example, a running los20.1 ROM drained the battery here very fast and the device got very hot.
After a clean install this had gone.
I know this is really a lot of work, but, as I've written, sometimes the only way to make it work again as expected... 🤷‍♂️
 
  • Like
Reactions: makojunki

Bergfex2

Member
Apr 4, 2014
13
3
Guten Morgen Bernhard,

Darf ich dich bitte einmal fragen, ob du die Rom mit Osmand benützt hast und wie lange es bei dir dauert, bis du eine GPS-Verbindung hast? Ferner funktioniert $G bei mir nicht. Liegt aber vielleicht am Anbieter. Habe nun mit Spar Österreich Kontakt aufgenommen, um nachzufragen, ob LTE im EU-Ausland spezielle Berechtigungen benötigt. Vielen Dank. Harry.
 
Last edited:

Berni-0815

Senior Member
Sep 22, 2016
2,485
2,176
Germany
Sony Xperia Z5 Compact
Hallo,
was ist Osram?
Die GPS Verbindung dauert ziemlich lange, das kann ich leider nicht beeinflussen.
Hmmm, bei mir funktioniert 4G einwandfrei.

Hello,
what is osram?
The GPS connection takes a long time, unfortunately I can't influence that.
Hmmm, 4G works fine for me.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    New version out; see 1st post.
    • Android security patch level: 5 May 2023
  • 16
    Hi all:

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

    New: ROM with microG apk's included in priv-app:
    Download 2023-05-12

    Please pay attention: microG can't coexist with GApps! So decide whether to install microG OR GApps!

    If you want to remove microG, enter these commands line by line in a terminal:
    Code:
    adb root
    adb shell
    
    mount -o remount,rw /
    
    rm /system/priv-app/DroidGuard/DroidGuard.apk
    rm /system/priv-app/FakeStore/FakeStore.apk
    rm /system/priv-app/GmsCore/GmsCore.apk
    rm /system/priv-app/GsfProxy/GsfProxy.apk
    
    exit

    Reboot!


    Or flash this microG-remover.

    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: 12 (S)
    • Kernel: Linux 3.10
    • Kernel 3.10.108
    • New: Android security patch level: 5 May 2023
    • Using Sony blob's from stock version 32.4.A.1.54

    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!!!)
      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. For rooting you can use Magisk.
    • 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:
    • Audio
    • Bluetooth
    • New: Camera fully working! (with the restriction to 8 MP)
    • Enforced SELinux support
    • Fingerprint (sometimes crashes)
    • FM-Radio (maybe it needs a few restarts before it's working)
    • GApps
    • German App AusweisApp2
    • GPS
    • Headset
    • LiveDisplay
    • Location services
    • Network Traffic Monitoring
    • NFC
    • Notifications
    • Notification LED
    • Offline charging
    • Phone calls
    • Reboot into recovery and bootloader
    • Sensors
    • Signed build
    • SMS
    • Sounds
    • Torch
    • WiFi
    • ...please tell me...
    These things are NOT (or badly) working:
    • Encryption
    • Payment
    • Streaming (mirroring)
    • VoLTE
    Maybe some more things are not working. Please tell me...

    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 Aurora-Store, 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.


    One last request:

    Please, do not ask about problems for which my ROM is not responsible.
    From now on I will only react to problems that I can reproduce and that are caused by my ROM.


    I'm sorry for that, but I'm developing this ROM in my spare time and I still have a normal life.
    5
    Dear Bernie-0815,

    Your ROM 19.1 works like a charm. Had it installed two weeks ago and tried all kinds of stuff; nothing failed so far. I just wanted to give you a very huge Thank You! for your efforts and your great work.

    I used the old official Lineage 14.1 until now because I was hesitant to try an 'unofficial' version. But your ROM has breathed new life into this smartphone which I attempt to keep for a number of reasons (small size, headphone jack, not interested in fancy new hardware etc.).

    So, I just wanted to reach out and thank you for making it possible to use older, yet absolutely functional smartphones longer. I recommended your ROM to a friend also using a Z5 compact (still with the stock Sony ROM) and think she'll soon go for it as well.

    Keep up the good work, and be assured that there are people out there still using the Z5 Compact on a daily base and in productive mode!
    4
    New version out; see 1st post.
    • Android security patch level: 5 May 2023
    4
    New version out; see 1st post.
    • New icon set
    • Switched to Enforced SELinux mode
    • Switched to signed builds
    3
    New version out; see 1st post.
    • Android security patch level: 5 May 2022