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

Search This thread
A LOG would be helpful.
I don't know how to grab one. The Y cable is connected to one of my TV''s HDMI ports, and another one to a power outlet, and the last one goes to the Z5C's micro USB port. Unfortunately, my PC is not at reach on such a setup. If you have a MHL cable, please try to get a log yourself.
 
Last edited:

Berni-0815

Senior Member
Sep 22, 2016
2,303
2,064
Germany
Sony Xperia Z5 Compact
Fetching a LOG is described in my 1st post; section "Troubleshooting".
I don't have an MHL cable and I'm not willing to buy one since I don't need it.
If a user is complaining about an error that I can't reproduce, a LOG from this user is the only way to fix this error.
 
  • Like
Reactions: bavaria Jo

Berni-0815

Senior Member
Sep 22, 2016
2,303
2,064
Germany
Sony Xperia Z5 Compact
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
 

Attachments

  • Screenshot_20220712-205356_Settings.png
    Screenshot_20220712-205356_Settings.png
    79.8 KB · Views: 15

Berni-0815

Senior Member
Sep 22, 2016
2,303
2,064
Germany
Sony Xperia Z5 Compact
If you want to remove some pre-installed apps and replace them with open-source apps, you should do this:
Connect the powered up device with an usb cable, wait for connection (should I really mention this?). Then open a terminal and enter every command line by line:
Code:
adb root
adb shell
mount -o remount,rw /
rm -rf /system/product/app/Jelly
rm -rf /system/product/app/Recorder
rm /system/product/app/Gallery2/Gallery2.apk
rm /system/product/priv-app/Eleven/Eleven.apk
exit

REBOOT!
  • Jelly is the build-in browser, I replaced it with Fennec F-Droid.
  • I don't need "Recorder". Leave it untouched if you need it.
  • Gallary2 is the build-in gallery app, I replaced it with "Simple Gallery" from F-Droid.
  • Eleven is the build-in music app. There a lots of replacements.
  • As email-client I'm using k9-mail.
 
Last edited:

Berni-0815

Senior Member
Sep 22, 2016
2,303
2,064
Germany
Sony Xperia Z5 Compact
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.
 

laakssim

Member
Jul 22, 2022
19
4
I've been trying different ROMs recently, also this one today. Seems quite good overall, but I did find some unstability. Three apps so far have crashed the OS and phone has rebooted. Instagram crashed it when the login page opens and suggests my linked Facebook login. I can see the "Continue as Simo.." button for less than a second and then everything goes black. That I couldn't get to work except by replacing the regular Instagram app with Instagram Lite. Then Oura ring's app is difficult to get running, it either shows the loading screen (Oura logo) "forever" or crashes the OS after a while. Except sometimes it works. And Opera Touch browser crashed the OS on first run but after the reboot it worked.
 

dimex

Senior Member
Nov 28, 2012
768
147
Thanks for building this ROM. May be stupid but I'm going to re-buy this years later because of its size, and because you're developing it!
 

laakssim

Member
Jul 22, 2022
19
4
The previous version kept crashing quite a lot, and not only in Meta software. For example one banking app crashed it right away, video recording with the front camera crashed it and when a friend sent an attachment on Whatsapp an almost endless loop of crashing started until I was fast enough to view the attachment before the crash.
I will now try the new version if it helps.
Is it possible to update the version without cleaning data and re-installing everything from start?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Am I missing something?
    Yes: qti_camera_device_defaults as you can read in your error message.
    This will be built in vendor/lineage/build/soong/Android.bp
    If you're really using my sources, you should use my init script too. There you can see two reverts. One of them restores the creation of qti_camera_device_defaults:
    1
    Okay.

    The thing is, a system webview cannot be installed without its signature being added to the system. Magisk can do that but I dit not want to temper with my boot and recovery images so I chose another solution using an overlay. Overlays install on top of an already installed system and override parts of it. There is a readily made overlay to add Bromite's signature that I installed using ADB and USB debugging (which allows debugging as root in the ROM you provide). After installing the overlay and rebooting, I first had troubles installing bromite webview directly from an APK, so I added their repo for F-Droid and installed it from there. It says it requires root to do so, but it actually does not since Bromite's signature was already added to the system.
    Then I chose Bromite's webview implementation from Android configuration panel (in the options for developpers).

    And tadaaa! It works now.
    1
    If you're really using my sources, you should use my init script too. There you can see two reverts. One of them restores the creation of qti_camera_device_defaults:
    Thanks for that Berni - it gave me enough clues to get my unofficial Lineage for MicroG builds working for 19.1

    I have recently made unofficial and custom builds of LineageOS for microg for this device, based on Professor-Berni's most recent builds.

    The builds are available in this AndroidFileHost directory

    More information at https://codeberg.org/petefoths-projects/unofficial-l4m-builds
    So, I have uploaded 19.1 versions of these files to AndroidFileHost. I have tested them as follows

    UNOFFICIAL build https://www.androidfilehost.com/?fid=14871746926876822023
    - Calls, SMS, WiFi, mobile data, Camera all work
    - proximity sensor is not quite right. Screen goes blank when call is answered. Not restored unless you press e.g the the power button

    CUSTOM-PLUS build https://www.androidfilehost.com/?fid=14871746926876822024
    - as for UNOFFICIAL build PLUS
    - NextCloud and DAVx5 sync both work

    I ran into problems when I dirty flashed these over Berni's `lineage-19.1-20220824-SIGNED-suzuran.zip`. That may have been finger trouble, but I had to re-flash stock firmware with Flashtool, re-flash TWRP, then install my ROMs. They should install fine, if you format data in TWRP before flashing. Any feedback welcome :)
    1
    Please try this version and report. I've changed the webview implementation.

    Sorry, the issue is still the same, and the same solution using Bromite webview still solves it. I have no idea what makes the original webview crash the whole system.
    1
    New version out; see 1st post.
    • Android security patch level: 5 September 2022
  • 10
    Hi all:

    Here is a LineageOS 19.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: 12 (S)
    • 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

    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.6.2!
    • 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 working (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
    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.
    • LiveDisplay - Picture adjustment re-implemented (hopefully it works now!)
    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