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

Search This thread

Berni-0815

Senior Member
Sep 22, 2016
2,445
2,138
Germany
Sony Xperia Z5 Compact
New version out; see 1st post.
  • Android security patch level: 5 December 2022
 

Attachments

  • Screenshot_20221212-123909_Settings.png
    Screenshot_20221212-123909_Settings.png
    81.9 KB · Views: 45

username one

Member
Sep 2, 2019
32
4
I switched from your 18.1 to this version with microG a few days ago. It's snappier and most apps I use plays well with microG. (y) Only problem so far is that maps doesn't work without Wi-Fi. When trying the self-check in the UnifiedNlp settings, UnifiedNlp service fails to bind to the system. When checking where UnifiedNlp.apk was located, I found it in the system/app folder. Shouldn't it be in system/priv-app?
 

Berni-0815

Senior Member
Sep 22, 2016
2,445
2,138
Germany
Sony Xperia Z5 Compact
Only problem so far is that maps doesn't work without Wi-Fi.
You want to say, it's not working with GSM networks?
When trying the self-check in the UnifiedNlp settings, UnifiedNlp service fails to bind to the system. When checking where UnifiedNlp.apk was located, I found it in the system/app folder. Shouldn't it be in system/priv-app?
I've tried it, but it changes nothing.
You can try it yourself:
Remove it from system/app and move it to system/priv-app.
 

Berni-0815

Senior Member
Sep 22, 2016
2,445
2,138
Germany
Sony Xperia Z5 Compact
It's a conflict between the UnifiedNLP version 1.6.8 for GApps (bundled in the F-Droid bundle) and the one built-in in microG, version 0.2.26.223616 (no GApps); see screenshot (in German).
This could possibly be solved by deinstalling the version 1.6.8, but why?
Everything works as expected...
 

Attachments

  • Screenshot_20221218-214248_F-Droid.png
    Screenshot_20221218-214248_F-Droid.png
    153.1 KB · Views: 23
  • Like
Reactions: username one

username one

Member
Sep 2, 2019
32
4
Thanks for looking into it! The strangest thing is that location doesn't work now at all. It might just be a corrupt file on my phone, so I'll just see if it solves itself with the next update. I seldom use Maps, so no worries for me at the moment.
Merry Christmas & Happy new year, Berni!
 

1ggn3

Senior Member
Oct 26, 2020
93
19
Sony Xperia Z5 Compact
OnePlus 6
Hi, and happy new year!

I looked into the MHL thing a bit, and I found out that the device actually keeps running while the UI freezes. I managed to connect to ADB over WiFi. Slightly filtered Logcat is attached.

There are some interesting errors at line 472 (maybe SELinux?), and 529, but it seems to continue on. The thing at for example line 727 is interesting, maybe some other SELinux stuff, maybe totally unrelated.

Other than that, nothing interesting, except that my GMS is crashing now and then. I don't know, my knowledge of both MHL and the suzuran kernel is not deep enough to find anything crash-worthy.

Maybe you can look into this, if you have some time? It's not really urgent, but now, since I have a TV, it would be nice to plug in my phone :)
 

Berni-0815

Senior Member
Sep 22, 2016
2,445
2,138
Germany
Sony Xperia Z5 Compact
errors at line 472 (maybe SELinux?)
This is SELinux related but I can't use it because it leads to an uncompilable system.
The more interesting line is 473:
Code:
/system/bin/init: type=1107 audit(0.0:7454): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=hw.hdmiON pid=501 uid=1000 gid=1003 scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:system_prop:s0 tclass=property_service permissive=0'
and the following two/three lines with this error message:
Code:
SELinux permission check failed
I've never seen this error. What have you done to make it happen?
line 727 is interesting
No! That's a kernel related error and we can't fix it. In my own LOG the error text with "createProcessGroup" in it occurs several hundred times.
 

1ggn3

Senior Member
Oct 26, 2020
93
19
Sony Xperia Z5 Compact
OnePlus 6
Thanks for the quick reply! I guess I'll have to try with setenforce 0 then and report back.

No! That's a kernel related error and we can't fix it. In my own LOG the error text with "createProcessGroup" in it occurs several hundred times.
The more you know. It just looked "error-like" enough and was just after I plugged in the cable, so I figured it would be related
 

1ggn3

Senior Member
Oct 26, 2020
93
19
Sony Xperia Z5 Compact
OnePlus 6
I have installed the 2022-12-12 version of your LOS 19.1, MindTheGapps 11 and really just a handful of apps, a bank tan generator, accubattery, some google stuff (I mostly use my Z5C now to try out things I don't want on my main phone, like GApps). No root or anything that should mess with the display.

But all that I did to get that error was to plug the phone to my TV with an MHL adapter. I used this exact adapter in the past (maybe with LOS 14.1?) and there it worked.

I've now set SELinux to permissive, but sadly, it still freezes as soon as I plug it in. Here's the logcat:

(edit: changed the link so it won't expire in just one hour)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    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-02-19

    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 February 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.
    4
    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.
    • 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
    3
    New version out; see 1st post.
    • Updated from android-12.1.0_r7 to android-12.1.0_r11
    • Android security patch level: 5 July 2022