yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] baristurunc:
It seems mm-pp-daemon is causing this. It uses 100% on one of the cores all the time when the device is awake.
[Xperia Z5 Compact Android Development] litelinux:
Hello,

Tried your ROM for a day.

Performance is vastly improved! No lags anymore. Audio no longer crackles, and there is no more static in headphones when music is not playing.

Problems still persistent:

Hotspot

Performance on little cores

Slow speed on /sdcard partition

P.S. Could you add these to the "Not working" section on OP?

However I believe these are all working on. Great work Berni!
[Xperia Z5 Compact Android Development] udaemon:
same is going on here: when I practice with metronome (with the screen turned off) the metronome keeps the device awake in a more power consumptive way than it did on LOS 17.1. betterbatterystats looks similar as in the screenshots posted some days earlier by someone else: mm-pp-daemon is causing the cpu to run at high frequencies.
[Xperia Z5 Compact Android Development] casouzaj:
I tried this ROM with a clean flash, coming from LOS17.1, but there are just too many random reboots (the red led blinking right after each crash denotes kernel panic, right?). It's even common that it reboots without any user input, just sitting there, untouched. I guess it might be related to the processor overload other users already posted about. I made a nandroid backup via TWRP just in case these kernel panic issues are resolved. Returned to LOS17.1 for now. Thousand thanks to the developers for their hard work in bringing the latest Android version to our aging device.
[Xperia Z5 Compact Android Development] Berni-0815:
A red blinking LED is a kernel panic, yes.

But I don't have one single reboot at all!
[Xperia Z5 Compact Android Development] casouzaj:
I wonder if I flashed the stock Nougat ftf, beforehand, would make a difference.
[Xperia Z5 Compact Android Development] Berni-0815:
Give it a try.
[Xperia Z5 Compact Android Development] udaemon:
hey everybody and happy new year!

I recently tried to restore data from a TWRP backup and since then internal storage is not accessible anymore. tried a lot of things like wiping everything, clean flashing latest roms (7th nov. and 18th dec. versions), updating TWRP to v3.6.0 - unfortunately without success. I hope the storage is not dead. I can access it when in TWRP via a connected PC. so I can copy zips over and istall them from within TWRP. but I don't know if it's the same partition that both TWRP and android access. the log tells that the permission is denied to create /data/media/0/Android/.

I will send the log to you, @Berni-0815, just in case....

thanks for any hints!

best wishes!
[Xperia Z5 Compact Android Development] Berni-0815:
I'll take a look into them as soon as possible.
[Xperia Z5 Compact Android Development] hukd:
I have problems running the apps ARD Audiothek and Dlf Audiothek, both installed from Aurora Store. Dlf Audiothek doesn't open at all and ARD Audiothek is possible to open, but then freezing and unable to use.

The logfiles show:

com.google.android.gms.dynamite.DynamiteModule$a: No acceptable module found.

In general I try to avoid using microG or OpenGApps. The Audiothek apps work well on different ROMs for Samsung S4 Mini and Samsung S5 Mini without installing microG or OpenGApps.

To make these apps run on my Z5 Compact I tried both, installing microG and OpenGApps. Unfortunately that didn't help. Any further ideas?
[Xperia Z5 Compact Android Development] darkangel32:
Not sure if it helps, but i installed FlameGapps and that solved my issues with many apps and installations.
[Xperia Z5 Compact Android Development] Berni-0815:
Your LOG shows weird entries that I've never seen before:

vold : Failed to chmod /data/media/0: Permission denied
vold : Preparing: /data/media/0
vold : Failed to prepare /data/media/0: Permission denied
vold : Failed to create /data/media/0/Android/: Permission denied
vold : Failed to prepare Android/ directories

For now I have no idea how to fix that...
[Xperia Z5 Compact Android Development] steve8x8:
This may be completely unrelated, but in a thread for another phone, about a year (or more) ago, I had read that after a TWRP restore, some adjustments would have been necessary. Since the issue was eventually resolved for that phone (which might have been bacon = OnePlus One running TugaPower) I got rid of the old files, and Google doesn't play well with my queries today.

@udaemon: Was your internal storage encrypted, which TWRP version(s) were you using?

Update: My memory also starts failing me, it wasn't bacon, it was serranoltexx instead: #88
[Xperia Z5 Compact Android Development] Berni-0815:
Are you talking about "restorecon"?
[Xperia Z5 Compact Android Development] udaemon:
hi, as of DLF audiothek, what version are you using? they recently provided an update from v2.2.x to 2.3.x. the updated version doesn't work on my LOS18 without any gapps or microg, but the 2.2.x version does. could you try if that helps?
[Xperia Z5 Compact Android Development] hukd:
I have installed v2.3.x. I tried the Dlf app on my old Galaxy S5 Mini where it also no longer works, although it worked fine recently.
[Xperia Z5 Compact Android Development] varredo:
I have installed latest version two weeks ago and sometimes when picking up a phone call I do not hear anything on phone speaker. Mostly going to flight mode and back solves the problem. Anyone having the same issue and is there some workaround?

BTW: Thanks Berni for the great job. I love it.
[Xperia Z5 Compact Android Development] bf2142:
Is anyone getting problems with text messages not showing new message notifications. I only get notification when I open the messaging app.

It might be something I've done, but I quick "I'm not having problems" would be helpful.

Thanks
[Xperia Z5 Compact Android Development] steve8x8:
If that was what the zip file did during install, yes. Can't look any longer :(
[Xperia Z5 Compact Android Development] Berni-0815:
Maybe your provider doesn't provide push messages? If you open the app, a normal pull will be performed.

For me the messaging app works as intended.
[Xperia Z5 Compact Android Development] Berni-0815:
I'm not sure how the zip file is working exactly, but it performs two chcon's (change SELinux file security context):

chcon u:object_r:rootfs:s0 $SYSMOUNT/.
chcon u:object_r:rootfs:s0 $SYSMOUNT/lost+found

Maybe it's the same, because restorecon does nearly the same thing:

restorecon - restore file(s) default SELinux security contexts

...if the default SELinux security context in this case is:

u:object_r:rootfs:s0
[Xperia Z5 Compact Android Development] bf2142:
Thank you for the quick reply. Yes if I open the app if does refresh.

I changed the messaging app and it worked.

It must be something I've done.

Totally my fault.

Great rom.
[Xperia Z5 Compact Android Development] starseed_:
Hi.

Berni-0815​

What's the difference between E5823 and SO-02H JP Version ? Is JP Version supported too with BL Unlock and flashing your Lineage roms?

Edit: Found out the difference is Network Bands.. Atleast that s the case with z3c
[Xperia Z5 Compact Android Development] Berni-0815:
It's very good that you found out the difference, because I didn't know any.
[Xperia Z5 Compact Android Development] norabitox:
You can unlock the bootloader and get root using the qUnlockTool (about $ 30).

However, the TA backup tool did not work on the SO-02H,

After reverting the android version to 6, I can't update to android7 (ftf file doesn't exist).

It is not possible to install E5823 ftf on SO-02H.

You can install CM Rom with 6 base, but it is worse than Stock Rom and you cannot install LIneageOS.

SO-02H I couldn't try the custom rom with the latest version 7.

I'm sorry for the strange English.
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 january 2022
[Xperia Z5 Compact Android Development] dfoustou:
So, if we unlock the bootloader with qUnlockTool, do you think that we can install the latest Lineage on a SO-02H? or any Lineage version?
[Xperia Z5 Compact Android Development] norabitox:
It may be possible with android version 7 of SO-02H.

But you may regret.
[Xperia Z5 Compact Android Development] dfoustou:
OK thanks. Yes the phone is with Version 7.0
[Xperia Z5 Compact Android Development] Lightheaded:
Hi! I've installed this ROM on two Z5C phones with the intention to use them as CCTV cameras via Ip Webcam. However, when the camera runs for a while, it crashes, freezes or otherwise stops working. If it runs for long enough, then I get the message "unable to connect to camera". I've tried running IP Webcam and the regular camera app, so it does seem to be something deeper than just the app crashing.

Here's the behaviour in a video: https://photos.app.goo.gl/RJqPTZsz851tgQoQ6

Sometimes the camera shows a black screen when opening and sometimes the camera app refuses to start and says "Unable to connect to the camera".

Is this something fixable easily enough and there would be interest in fixing it or is it enough of a corner case that it would be wiser to look for another ROM?
[Xperia Z5 Compact Android Development] darkangel32:
Not all that related but, i would rather get some cheap CCTV-IP cameras then use the Z5C for that. Look at some chinese sites that sell them.
[Xperia Z5 Compact Android Development] Berni-0815:
There is always an interest to fix all issues. But, unfortunately, we don't know how.
[Xperia Z5 Compact Android Development] Lightheaded:
Thanks for the suggestion! I have a proper CCTV setup around my house and this project was not so much about increasing my coverage but giving a new life to old phones lying around. I wanted to create some portable cameras that can be used on-demand for when we leave our kid to finish off her nap in the car etc..

Is there some info I could provide or help with digging deeper into the issue? I'd be glad to help.
[Xperia Z5 Compact Android Development] Berni-0815:
How can I set up this app? The server mode is working as intended and I can see my video in my browser and there are no freezes or lags or crashes at all!

Edit:

But it seems that there is no recording.
[Xperia Z5 Compact Android Development] &(*):
@Lightheaded

The Z5C or more specifically the Snapdragon 810 is known for overheating (while recording || streaming). It's not very effecient in that category. There should be an easier way to ssh into the phone at which point you could activate the camera app and stream from it for a short duration. Apparently, @Berni-0815 tested it and didn't experience any issues. I imagine running screen record on top of the app streaming could be causing the issue.
[Xperia Z5 Compact Android Development] &(*):
That is incorrect. You can. Download an E5823 with Xperifirm and within the folder where Xperifirm stores it, edit the *fwinfo.xml on the line that contains E5823 to SO-02H *(before you close xperifirm). After you close xperifirm it will bundle the E5823 variant as an SO-02H. You can then flash it, at which point it will now be an E5823.
[Xperia Z5 Compact Android Development] norabitox:
Hello

Thank you

I wanted to try that method.

Unfortunately my so-02h has become a black mirror.😭

If you don't mind, please tell me in detail how to do it.

Regards.
[Xperia Z5 Compact Android Development] multiwirth:
Hi there,

Just noticed something strange:

All performance cores are disabled permanently according to Ex Kernel Manager.

So is this on purpose?

I know the snapdragon 810 has serious heating issues but usually thermal engine would automatically reduce core clock or even disable cores.

But my device currently is barely warm.

The cores can't even be turned on manually 🤔

Just curious
[Xperia Z5 Compact Android Development] drmarkuse:
Hello everybody,

I signed up at XDA just to make this post. Frist of all: Thanks Berni for all the work you put into that ROM! I am a fan of the Xperia compact models and have runned for years my z3c with CarbonRom before switching to the z5c one year ago. Over the weekend I upgraded to Bernis LiOS 18.1 and had the same problem as described above: I could make calls (although it took a very long time to connect), but when I was called there was only a silent line for both after the connection was established.

Since I also had problems with the restrictive memory policy on A11, I downgraded to Berni's LiOS 17.1. Unfortunately, after booting, the phone always hung and rebooted shortly after. I already wanted to give up and took out the external SD card in preparation for flashing the Stock Rom again, but then the system was suddenly stable. After having changed the partition of the external SD card from exFAT to FAT32, everything now runs stable and smoothly.
[Xperia Z5 Compact Android Development] solarsimon:
I am also facing that problem.

I have set up phones for two friends, both have problems making and taking calls.

For myself, I also use this build, I don't have problems.

The difference I can see, both friends do not have google services installed, I do have.

But the issues we all share:

* recording voice messages is super quiet. You really need to be loud and clear, almost shouting.

* There is often an echo for persons calling me. With online calls there is always an echo for the other person.

Are those issues known? Are logs needed?
[Xperia Z5 Compact Android Development] Berni-0815:
Issues with recording and echo are well known and no LOG's are needed, because they won't help.

The only thing you can do is "play" with the file "/system/vendor/etc/mixer_paths.xml".

Since this is a very wide field for own experiments, I can't give further assistance.

The net (and this forum) is full with examples how to change this file.
[Xperia Z5 Compact Android Development] multiwirth:
Hi again,

I just noticed two things:

The audio output (headphones) is a bit noisy, especially on low volume levels.

It seems like there's also some distortion going on on low volume levels (distortion goes away after replugging the headphones, but the noise keeps)

I verified this and this is not the case on stock.

Is there anything you can do about this? Would be great :)

Optionally: Might it be possible to support Hi-Res audio (192khz sampling rate) in lineage? or is this a proprietary sony thing that will never going to work on aosp?

Also the camcorder is very laggy, recording videos at 5fps isn't so great.

However camcorder on stock also isn't very smooth, dunno what sony may have done wrong here.

The preview is fine but when i start recording, it gets very ugly.

Everything else seems fine, also i verified the situation with the disabled CPU cores and it seems like stock is behaving the same, keeping most performance cores disables to prevent overheating i guess.

Good job overall with this ROM :)
[Xperia Z5 Compact Android Development] &(*):
Poweramp will let you control the hz for output and may cause an selinux flag when changed (a reboot with a red exclamation ) . You may want to set selinux to permissive change the hz output and then set selinux back to enforcing to prevent issues. The crackling at low volumes is due to what I believe to be a missing noise canceling library or it not being implemented correctly along with interference from the radio (FM). At one point or another Berni fixed it, but apparently something else changed a profile somewhere and the quirk is back again.

As for the camera and recording video. Someone might want to try other IMX .xmls to see if the issues are corrected and post back their results.
[Xperia Z5 Compact Android Development] multiwirth:
Hmm very interesting.

Thanks for the insights!

Yeah i found some profiles in vendor very similar to what i've seen on HTC One M9 which uses tfa firmware.

And there, it had wrong stereo behavior for the speakers which could be fixed by simply removing the profile.

https://github.com/multiwirth/proprietary_vendor_htc/commit/5a7ad19284beac19cafd171fca9ee8f106c2b3db

Maybe a similar case here?

May try removing the handset profile and report back.

EDIT:

I've hidden the files

Sony_Handset_cal.acdb

and

Sony_Headset_cal.acdb

from /system/etc/acdbdata/ so they won't get loaded on bootup and guess what!

Audio output is now crystal clear again.

Dunno if something broke though.

Will do further testing the next days with this (and remove those vendor files from my local builds for now)

For now I'm happy :)
[Xperia Z5 Compact Android Development] Berni-0815:
Do you have any hint for me?

Yes, but this is really not easy! If I turn one screw, other weird thing may happen and so on.
[Xperia Z5 Compact Android Development] multiwirth:
Hi guys, it´s me again.

So after further testing,

Sony_Headset_cal.acdb

can be removed safely, it will not affect anything, but will fix distortion and noise on low volume.

Sony_Handset_cal.acdb

should NOT be touched, it will break microphone functionality of any kind (calls, voice records...)

Have a nice day :)
[Xperia Z5 Compact Android Development] florstat:
Yes, those issues are well known. Take a look here:

The ECHO issue

During calls the people can hear an echo of themselves. With a slight delay. I have found this suggestion for changing making changes in the mixer_paths.xml.

xdaforums.com

There has been some investigation but nobody was actually able to solve them permanently, until now.

Does it affect also the echo issue?
[Xperia Z5 Compact Android Development] Berni-0815:
I have no noise and no distortion at all with Sony_Headset_cal.acdb. No matter which volume I'm choosing.

No matter if I'm using speaker or headset.

Nor with los18.1, neither with los19.0 *).

Everything is working as expected.

*) I've tried los19.0 without Sony_Headset_cal.acdb and I remarked no difference at all.

A test with los18.1 is pending; I'm currently building a new version without Sony_Headset_cal.acdb.
[Xperia Z5 Compact Android Development] Berni-0815:
In which cases do you have those issues? Phone calls? Hearing music?

I've only tested hearing music...
[Xperia Z5 Compact Android Development] Berni-0815:
As I've expected: No difference at all.
[Xperia Z5 Compact Android Development] multiwirth:
It's only happening when playing music, only on wired headphones.

Maybe my headphones are too sensitive (or my ears) but as soon as any music playback starts, there is always some backround noise.

Even if you mute the volume.

I think most people don't even notice it as you might only hear this on low volume or quiet parts of a music track.

But comparing this to a z3 compact or different HTC phones, it's noise level definitely is abnormal 🤔

UI sounds are fine though.

Have tested this on two z5c devices on 18.1.

Removing the file does the trick for me, doesn't seem to break anything.
[Xperia Z5 Compact Android Development] multiwirth:
I'm not sure.

Haven't experienced echos at all 🤔
[Xperia Z5 Compact Android Development] Berni-0815:
Or they have another impedance than mine?

I've noticed no noise at all. But maybe my ears are not sensitive enough anymore since I'm quite old and as everybody knows the ears are losing their sensitivity in hearing higher frequencies.

Ok. I'll leave this file removed. I'll upload a new version asap.
[Xperia Z5 Compact Android Development] Berni-0815:
There are echoes while making phone calls. But only the other end hears its own voice as an echo.

For yourself everything sounds fine.
[Xperia Z5 Compact Android Development] &(*):
The problem occurs on practically all later Xperia devices (except the XZs) running LineageOS . @multiwirth , what is the path and the libraries(.so) you are removing? @florstat, where exactly did you modify mixer_paths so that I can test this on another device with the same echo issues? Would like to test these fixes on other devices, if you can provide answers here instead of links it would be greatly appreciated.
[Xperia Z5 Compact Android Development] Berni-0815:
/system/etc/acdbdata/Sony/Sony_Headset_cal.acdb
[Xperia Z5 Compact Android Development] Berni-0815:
New version out;see 1st post.

Removed the file Sony_Headset_cal.acdb due to abnormal noise and distortion while hearing music over wired headphones.
[Xperia Z5 Compact Android Development] multiwirth:
Yeah i use some quite expensive and high quality headphones but i could also notice the noise with some cheap htc "BoomSound" In-Ears.

But as you say, many people will probably never notice this.

Anyways thanks for your response and quick update :)

Hmm i tested calls once, no echo but sometimes my voice was cancelled partially but haven't heard an echo on the other end
[Xperia Z5 Compact Android Development] Berni-0815:
That's one of the very weird things I'll never understand: Those issues are not always at all devices present; dunno why...

Some devices are working, some not. As if there is different hardware inside.
[Xperia Z5 Compact Android Development] multiwirth:
That´s possible.

Samsung Galaxy S3 Neo uses different camera sensors.

Some use a Sony Sensor, others use a Samsung Sensor.

So you need two seperate builds, one that works with sony and the other for samsung.

I guess to save costs, they decided to get a few parts from different vendors.

But that´s really confusing in the end as both devices are supposed to be "the same" i9301L
[Xperia Z5 Compact Android Development] Berni-0815:
...and an army of developers are going crazy...
[Xperia Z5 Compact Android Development] steve8x8:
While this could drive developers outside of Sony nuts, I'd suspect there would be hints in the stock firmware, with support for multiple variants of those parts ... I cannot find a stock ROM copy on my disk though.

S3neo at least comes in several s3ve3g** codenames (and there are "compatibility zips" for camera versions) while for Z3c there's only one z3c (well, to be exact, there's D5803 and D5833 but the difference between those is only in the modem section afaik)
[Xperia Z5 Compact Android Development] Berni-0815:
Has anyone tested this version? Is there any difference to be seen?
[Xperia Z5 Compact Android Development] 1ggn3:
I will try it as soon as I get home. This could be huge! I 'always' had those issues, and I even replaced the headphone jack. Finally, I just thought my mainboard was broken. From what I hear, it is most annoying with quiet songs at low volume, with headphones that have a high efficiency (low impedance? no idea how to describe it). I have some cheap in-ears for traveling, and with them, it sounds terrible.

I will update as soon as I tried it.

Update: It fixed it! Thanks to all who brought this back up! I seriously thought my phone was just broken. It's a really big difference at low volumes, so far I noticed nothing broken.
[Xperia Z5 Compact Android Development] 1ggn3:
My cores are turn off automatically if there is nothing to do. If I for example switch menus rapidly, they usually come online. Another way to test would be to run htop over adb and then do something intensive like loading a large website, or run a command like 7z b. Make sure that your phone screen is turned on, that might be a factor.

I'm not sure what the state of the discussion between cores offline / cores online but idle is, but you can force a minimum number of big cores to be online and see if it runs smoother that way. My highly subjective opinion is that having big cores online uses more power, and does only make it slightly more "snappy", so I set that slider to zero. But ymmv.
[Xperia Z5 Compact Android Development] adytwjy:
Hello,

With LOS 17.1 and 18.1, I have a problem with the microphone being sound far in the WhatsApp video call, so I have to use a headset in WhatsApp VC. Is there any way to check whether this is a hardware problem or there is something that needs to configure first?

And are there any tricks to use the camera to capture barcode/QR code that is usually in small size?

Please advise, thank you