[ROM][UNOFFICIAL][11][R]LineageOS 18.1 for z5c (suzuran)

Search This thread

Berni-0815

Senior Member
Sep 22, 2016
2,601
2,250
Germany
Sony Xperia Z5 Compact
Hi all:

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

New: ROM with microG apk's included in priv-app:
Download 2023-10-09

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 command 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: 11 (R)
  • Kernel: Linux 3.10
  • Kernel 3.10.108
  • New: Android security patch level: 6 October 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
  • Camera (with the restriction to 8 MP); both built-in camera (Snap) and 3-rd party camera apps.
    Camera2 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
  • Fingerprint
  • FM-Radio (maybe it needs a few restarts before it's working)
  • GApps (MindTheGApps 11 arm64)
  • German app AusweisApp2
  • GPS
  • Headset
  • Hotspot
  • LiveDisplay
  • Location services
  • Notifications
  • Notification LED
  • Offline charging
  • Phone calls
  • Reboot into recovery and bootloader
  • SafetyNet test passed successfully
  • Signed build
  • SMS
  • Sounds
  • Torch
  • WiFi
  • ...please tell me...
These things are NOT (or badly) working:
  • Encryption
  • Camera focus at low distances.
  • 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.
 
Last edited:

Berni-0815

Senior Member
Sep 22, 2016
2,601
2,250
Germany
Sony Xperia Z5 Compact
If you want to remove apps, that are available in much better variants (or that you don't need ;) ), enter these lines one by one in a terminal:
Code:
adb root
adb shell

mount -o remount,rw /

rm -rf /system/product/app/Email
rm -rf /system/product/app/Exchange2
rm -rf /system/product/app/Jelly
rm -rf /system/product/app/Recorder
rm /system/product/priv-app/Eleven/Eleven.apk
rm /system/system_ext/priv-app/Gallery2/Gallery2.apk
  • "Email" is the built-in E-Mail app, I've replaced it with K-9 Mail
  • "Jelly" is the built-in browser, I've replaced it with Firefox
  • "Eleven" is the built-in music-app, I've replaced it with poweramp
  • "Gallery2" is the built-in picture gallery, I've replaced it with simple gallery pro
Don't forget to reboot!
 

Berni-0815

Senior Member
Sep 22, 2016
2,601
2,250
Germany
Sony Xperia Z5 Compact
I'm using this ROM since some hours now and I have to say, that it's working very good. Better that expected. The device is not getting warm (or hot) and the battery comsumption is very low.

I'll take a closer look at this for some days now.

If the overall performance is convincing, I will delete the "BETA" status...
 
  • Like
Reactions: arkadione

esrevinu

Member
Jan 2, 2011
33
12
Is the "Recent Apps" button in the nav bar working?
I just installed this rom, but that button is not working.
Maybe app switcher is missing.
 

litelinux

Senior Member
Is the "Recent Apps" button in the nav bar working?
I just installed this rom, but that button is not working.
Maybe app switcher is missing.
Working for me.
Screenshot_20201220-141602_Trebuchet.png
 
  • Like
Reactions: esrevinu

esrevinu

Member
Jan 2, 2011
33
12
@litelinux Thank you for the answer.

I had installed NikGapps full version. It seems that some gapps made that trouble. With NikGapps core, I can use "Recent Apps" button.

But, even NikGapps core version seems to cause unexpected reboots if micro SD card is set as phone storage(adopted storage), not potable storage.

And, is it normal that the fingerprint reader works when the screen is off?
 

litelinux

Senior Member
Hello,

Animations are not as smooth as in Android 10, such as:
  • Opening/closing recents
  • Notification panel
  • Background grayout of popup boxes
  • Horizontal scrolling
Not sure what the problem is...

Sorry for repeating this but I really hope it would be solved.
 

esrevinu

Member
Jan 2, 2011
33
12

FRFaucigny

New member
Dec 22, 2020
1
1
Hello,
Thanks for the ROM,
I installed this version, it works fine at the moment.
Indeed, the photo lag application but by installing open camera it's OK.
On the other hand, the resolution of the camera is at the maximum at 8.3MP.
You also have this resolution blocked?
With lineage OS 14 I was at 23MP
 

Attachments

  • Screenshot_20201221-205418_Trebuchet.png
    Screenshot_20201221-205418_Trebuchet.png
    112 KB · Views: 283
  • Like
Reactions: arkadione

Berni-0815

Senior Member
Sep 22, 2016
2,601
2,250
Germany
Sony Xperia Z5 Compact
On the other hand, the resolution of the camera is at the maximum at 8.3MP.
You also have this resolution blocked?
With lineage OS 14 I was at 23MP
I've blocked nothing! AFAIK the maximum resolution of the built-in sensor is 8,3MP and the resolution of 23MP is realized by software upscaling. Try to take a photo of the same object with 8,3MP and 23MP and compare them. I for myself have never seen any difference.
So, for me 8,3MP is fine..
 

Top Liked Posts

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

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

    New: ROM with microG apk's included in priv-app:
    Download 2023-10-09

    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 command 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: 11 (R)
    • Kernel: Linux 3.10
    • Kernel 3.10.108
    • New: Android security patch level: 6 October 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
    • Camera (with the restriction to 8 MP); both built-in camera (Snap) and 3-rd party camera apps.
      Camera2 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
    • Fingerprint
    • FM-Radio (maybe it needs a few restarts before it's working)
    • GApps (MindTheGApps 11 arm64)
    • German app AusweisApp2
    • GPS
    • Headset
    • Hotspot
    • LiveDisplay
    • Location services
    • Notifications
    • Notification LED
    • Offline charging
    • Phone calls
    • Reboot into recovery and bootloader
    • SafetyNet test passed successfully
    • Signed build
    • SMS
    • Sounds
    • Torch
    • WiFi
    • ...please tell me...
    These things are NOT (or badly) working:
    • Encryption
    • Camera focus at low distances.
    • 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.
    12
    New version out; see 1st post.
    • Kernel improvements
    12
    I finally managed to increase the write speed on /sdcard partition dramatically:
    Code:
    suzuran:/ $ dd if=/dev/zero of=/sdcard/output count=65536
    65536+0 records in
    65536+0 records out
    33554432 bytes (32 M) copied, 0.706444 s, 45 M/s
    suzuran:/ $
    New version out; see 1st post.
    12
    New version out; see 1st post.
    • Android security patch level: 1 October 2021
    • DynamicsProcessing library implemented
    10
    New version out; see 1st post.
    • Android security patch level: 5 May 2021