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

Search This thread

1ggn3

Senior Member
Oct 26, 2020
93
19
Sony Xperia Z5 Compact
OnePlus 6
I have a weird issue with my Z5C, where it will boot to Android, and after less than a minute, it will just hard-reboot. Nothing in the logs, it just goes into reset. I have re-flashed this and MindTheGapps, no change. Weirdly enough, Android safe mode works fine. So it is not the hardware.

Has anyone else recently tried MTG? Is there any chance I can get around a "factory reset"?
 

Berni-0815

Senior Member
Sep 22, 2016
2,455
2,149
Germany
Sony Xperia Z5 Compact
I have to correct myself: Los20 with MindTheGApps shows unreproducible random crashes. Until now I dunno why and I'm working on it.
But I think, it's not at my side and has to do with the (so my idea) early beta build of MindTheGApps...
 

1ggn3

Senior Member
Oct 26, 2020
93
19
Sony Xperia Z5 Compact
OnePlus 6
Setenforce 0 right after boot stopped the crashing. Sadly, my banking app (which is the reason why I installed GApps) doesn't like that. I've rebooted, now SELinux is back to enforcing, and at least in the five minutes since, it hasn't crashed.

I don't know what caused or fixed it, but it seems to work fine now. Thanks for your help!
 

laakssim

Member
Jul 22, 2022
21
4
Setenforce 0 right after boot stopped the crashing. Sadly, my banking app (which is the reason why I installed GApps) doesn't like that. I've rebooted, now SELinux is back to enforcing, and at least in the five minutes since, it hasn't crashed.

I don't know what caused or fixed it, but it seems to work fine now. Thanks for your help!
How did you get a banking app to work on a rooted phone? I have tried but seems impossible. Depends of the app of course, some are more thorough in checking about the rooted status.

Another question I have is about the camera. Did not find a clear answer on this topic. So is it now working in full 21M resolution with a viewfinder and all? Or what does "New: Camera fully working!" mean.
 

Gadoin

Member
Nov 10, 2022
7
2
How did you get a banking app to work on a rooted phone? I have tried but seems impossible. Depends of the app of course, some are more thorough in checking about the rooted status.

Another question I have is about the camera. Did not find a clear answer on this topic. So is it now working in full 21M resolution with a viewfinder and all? Or what does "New: Camera fully working!" mean.

For using banking app, you have to hide the root, in Magisk settings :

- Change the name and the icon of Magisk.
- Activate "zygisk" and you can exclude some apps from root.
- Use those two modules : "Shamiko" and "SafetyNet".
 
Last edited:
  • Like
Reactions: laakssim

laakssim

Member
Jul 22, 2022
21
4
For using banking app, you have to hide the root, in Magisk settings :

- Change the name and the icon of Magisk.
- Activate "zygisk" and you can exclude some apps from root.
- Use those two modules : "Shamiko" and "SafetyNet".
Thank you!! Both banking apps work now that failed before. Problem was simply that I did not have those Shamiko and SafetyNet modules.
 

1ggn3

Senior Member
Oct 26, 2020
93
19
Sony Xperia Z5 Compact
OnePlus 6
How did you get a banking app to work on a rooted phone? I have tried but seems impossible. Depends of the app of course, some are more thorough in checking about the rooted status.
I have not rooted the phone - to be precise, I haven't installed Magisk, SuperSu and so on.

For SELinux, I just enabled ADB Root in the settings, then, I quickly ran `adb root` and `adb shell setenforce 0`.

However, as I said, my banking app did not like that - I don't know if the SELinux tripped it, or the adb root, so I set that switch back to off after I restarted it.

Now, I have no ADB Root enabled, SELinux is enforcing, and Safetynet / banking works fine.
 

algarues

Senior Member
Feb 14, 2011
295
30
Samsung Galaxy S10
I installed the rom and everything seems to work fine.
However, if I try to download a file using the browser, I always get a "download failed" notification.
Also Aurora store seems to be unable to download and install apps.

F-droid instead works.

I have given the browser access to storage and tried with more than one browser app.

What could I be missing?

I solved fixing the contexts from TWRP
 
Last edited:

1ggn3

Senior Member
Oct 26, 2020
93
19
Sony Xperia Z5 Compact
OnePlus 6
Weird. Did you close any important-looking permission popups? Here, both the built-in browser and aurora work.

Maybe try to delete all the data for Aurora, to start it up fresh? (Long-press, app info, storage, delete all)

Also, you can get several "full" browsers from F-Droid, the FFUpdater app that can download FF, Brave, Chromium..
 

Berni-0815

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

Attachments

  • Screenshot_20221112-215000_Settings.png
    Screenshot_20221112-215000_Settings.png
    81.9 KB · Views: 6

SmilingKafka

New member
Oct 23, 2022
3
5
New version out; see 1st post.
  • Camera now fully working
Both shipped camera app *) and OpenCamera are fully working and shows the viewfinder/preview.
Unfortunately this leads to the maximum of 8,3 MP for the main camera.
If you prefer 23 MP, you should remove OpenCamera and install this version of this app instead. Go to the settings and choose the option "Open Legacy for Camera1 API". With that you get 23 MP back, but no viewfinder/preview.

*) I've removed the newer Camera2 app and replaced it with the slightly older Snap app, which let you set where the taken pictures will be stored.
A quick question about the camera: I installed the version of Open Camera linked above. It indeed provides 23MP but "no viewfinder" seems to mean that the screen remains black, ie. I cannot see what I'm photographing. At least that's what happened to me.
Although I appreciate the quirkiness of taken pictures blindly once in a while, I wanted to ask if there's any chance to get any camera-app working with screen on and 23MP? I know it's not a big issue (I only realised the 8MP-limitation recently) but it seems like a waste to have a 23MP-lens and only be able to use it for less than half its capacity.
Apart from different versions of Open Camera, I also tried Libre Camera (from F-Droid) but that neither providess a working implementation of the needed legacy API.
Any suggestions?
 

Top Liked Posts

  • 1
    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... 🤷‍♂️
  • 3
    New version out; see 1st post.
    • Android security patch level: 5 March 2023
    2
    New version out; see 1st post.
    • Android security patch level: 5 March 2023
    I had to replace this version with a newer one; see 1st post.

    The previous version was missing a few less critical patches.

    Please update as soon as possible.

    I'm sorry for any inconvenience.
    1
    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... 🤷‍♂️
  • 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-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.
    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.
    • 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