yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Berni-0815:
A clean install should not lead to any problems. Everything should work as expected.

Can you grab a log while that error occurs? Maybe I can see in that log what's going wrong.

It's nearly impossible to fix a bug that I don't have and that I can't reproduce in any kind... ;)

@All:

Does anyone else have such problems?
[Xperia Z5 Compact Android Development] Xoxu:
I have...

But it's only because I (badly) replaced the LCD, it work sometime but not always...
[Xperia Z5 Compact Android Development] bbb555:
No problem with any sensors on my phone with your latest build, Berni.
[Xperia Z5 Compact Android Development] mularesko:
Talking proximity sensor.... sometimes tempered glass without cut out for them my be causing problems. Had it before. Changed it for one with cuts and it works like harm.
[Xperia Z5 Compact Android Development] iMessa:
I have one with cut outs. Never had problems with it and I also keep it clean all the time. I will post log when I figure out how to do it.
[Xperia Z5 Compact Android Development] iMessa:
Any app I tried just doesn't have any options for sensors. It's like sensors files are not installed at all.. May I have a flashable zip file all sensor settings just to flash please or something?
[Xperia Z5 Compact Android Development] CompactPhoneLover:
Hi Berni.

Thank you for your incredible work with keeping this device alive!

Just recently I replaced the 'latest' original stock Sony ROM with your ROM (after a year of hesitating because of the effort to transfer all apps and settings). After a clean wipe of system, data, and cache the installation worked like a charm (with trax7's TWRP 3.2.1.0). And your ROM runs amazingly smooth! Definitely better than the original. E.g. WiFi is more stable, apps react faster, much more internal memory available, etc. I rooted with Magisk and I installed OpenGApps pico (shame on me, I know).

Love it!!

However, there are some issues:

1. Uninstalling F-Droid, G-Droid, and UnifiedNLP. There is no option to uninstall or even deactivate (UnifiedNLP). However, they don't seem to interfere with GApps.

2. Automatic screen brightness. Sometimes it works (esp after fresh boot) but mostly the screen is too bright or sometimes suddenly gets dark even when ambient light doesn't change at all. Sometimes recoverable by switching auto brightness off and on. A bit annoying, but I can cope with it.

3. Microphone gain. This is a real issue for me. When using the internal microphone for audio recording or voice messaging (WhatsApp, Threema, etc) the gain is so low that barely anything is audible. I would have to put the mic directly to my mouth and shout to make me understandable. However, normal phone calls seem to be ok (maybe only slightly lower gain than Sony ROM). Using an external mic of a headset works fine, even with voice messaging.

Any idea what the reason might be?

Are there different mic gains for audio recording and telephony?

According to the Sony forum there was supposed to be a microphone setting in the original Sony ROM settings (I never saw it, though). Is there a way to adjust the mic gain (with root) somehow?

Thanks a lot!!
[Xperia Z5 Compact Android Development] Berni-0815:
On my device they all work together without any problem!

You have to flash the rom and GApps in one step! Flashing GApps later seems not to work...

I have no solution for that! Sorry...

There are a lot of ways to change gains. You can change the file /etc/mixer_paths.xml to adjust many many many many gains and so on... :angel:
[Xperia Z5 Compact Android Development] CompactPhoneLover:
Yes, that's what I did. Works :)

Aaaahh, yes! Now I remember I read this already in this thread. Sorry...

Thank you so much!
[Xperia Z5 Compact Android Development] casouzaj:
I dirty-flashed the new release along with the latest opengapps 7.1 arm64 mini and the stable Magisk v19.3 zip files, and cleared the caches. It seems to run faster that the previous ROM. Thank you very much, [MENTION=7749536]Berni-0815[/MENTION]!
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
Does Substratum work with this ROM?
[Xperia Z5 Compact Android Development] Berni-0815:
Don't know; don't think so
[Xperia Z5 Compact Android Development] Superrman:
june version was great and smooth, july slow and rebooting (maybe because i didnt did clean install this time?)
[Xperia Z5 Compact Android Development] Berni-0815:
No problems like that
[Xperia Z5 Compact Android Development] casouzaj:
Whenever I have the audio output routed to something other than the phone's stereo speakers, e.g. to either wired or stereo bluetotth headsets, and decide to go back to the phone' speakers, no sound is heard. I have to reboot my Z5C phone in order to get sounds back to normal.

Anyone else running this ROM with this issue?
[Xperia Z5 Compact Android Development] Liquidator:
I don't have that problem with my bluetooth headset. I think mine are SBC only, are you using apt-x headphones? I wonder if there's a difference.
[Xperia Z5 Compact Android Development] DocMAX:
What's not working is displaying Song and Artist name on my Bluetooth Car-Audio. Other phones work!
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
Is it just me or the WiFi frequently disconnects?
[Xperia Z5 Compact Android Development] mularesko:
It does. Got it on my
[Xperia Z5 Compact Android Development] Liquidator:
I don't have any problems with my wireless connectivity on this ROM.
[Xperia Z5 Compact Android Development] Berni-0815:
LOG's! I need LOG's! Without that it is impossible to help you!

1. Reboot device
2. Connect to PC
3. Allow connection
4. adb root (Maybe not possible/needed running this ROM)
5. adb shell logcat -v main,radio,system,crash > logcat
[Xperia Z5 Compact Android Development] :
Only legacy.

no OMS support.
[Xperia Z5 Compact Android Development] Blu3ye:
Agree. But that is only after installing the newest version.

The older version (guess about half to one year old) had not this issue.

---------- Post added at 11:27 AM ---------- Previous post was at 11:23 AM ----------

@Berni-0815

Noticed, you switched from F-Droid to G-Droid. You should change that in first topic.

I now have both installed but I don´t like G-Droid. How to remove easyli((y)?)/easyily? :confused:
[Xperia Z5 Compact Android Development] Berni-0815:
No. I don't switch to G-Droid; it's an addition; I'm using this repo to include them. I'm still prefering F-Droid too... :angel:

@All:

Should I remove G-Droid from my ROM?

Should be removable as other apps. I'm using this app to do so...
[Xperia Z5 Compact Android Development] ssdnvv:
As it is removable, there's no real reason to not include it. These store-apps make life more easy when included in the ROM.

But I myself am not using it.
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
I prefer F-Droid, personally.
[Xperia Z5 Compact Android Development] XVFreak:
Have a problem with WhatsApp, clean install from stock rom:

Notification sounds cut off. The sound plays for like 1 secound then goes off.
[Xperia Z5 Compact Android Development] CompactPhoneLover:
Yes, it does. But I had exactly same behaviour with stock ROM. It depends on the WiFi router. According to my findings, especially TP-Link routers with stock firmware cause very frequent disconnects of Z5C WiFi. With OpenWRT on the same routers, WiFi is much more stable. I assume it is an incompatibility issue with the lower OSI layers. But just a guess.

---------- Post added 13th August 2019 at 12:11 AM ---------- Previous post was 12th August 2019 at 11:54 PM ----------

Hi Berni.

I found a way to solve the ultra-low voice record mic-gain issue for me:

In mixer_paths.xml line 1518 I changed the DEC7 Volume value from 84 to 114.

For symmetry I also changed DEC9 (upper mic) in line 1523 to same value.

<path name="dmic1-adj-gain">
<ctl name="DEC7 Volume" value="114" />
</path>

and

<path name="dmic2-adj-gain">
<ctl name="DEC9 Volume" value="114" />
</path>

This way the mic gain for voice records (voice messages, recorder app) is very close to stock ROM.

I did not find any problems regarding other microphone uses with those high gains. But extensive tests are still missing.

Maybe you can include those changes in your next build, since I assume I am not the only one having those low-gain issues. Or am I?? :eek:

If you know a better value within mixer_paths.xml to address the low-gain issue, I am happy to try it out :)
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post!
[Xperia Z5 Compact Android Development] Berni-0815:
There has been a lot of discussion about different changes in the mentioned lines. Some people are reporting loud echos when encreasing both values.

That's the reason why I'm not changing these values in my rom.

If it's working for you: :good:

At my z5c my settings are working best.... :angel:
[Xperia Z5 Compact Android Development] CompactPhoneLover:
OK, I see :cyclops:

But then this is a complete mystery for me:

All Z5Cs have identical mic gains with the very same stock mixer_paths.xml. But with LineageOS the mic gains vary between zero and full gain even though it's the same mixer_paths.xml among them...??! :confused::eek::silly:

Does the stock ROM have a separate single-device-specific calibration file to compensate hardware variations?

Or does the last value set by the stock ROM stay somewhere in the hardware and does not get re-set by LineageOS? (I had this with Bluetooth once on another device)

Probably the same counts for the auto brightness function of the screen. With LineageOS it's a total unusable mess on my device, whereas on stock ROM it worked like a charm.

By chance, did you work on that topic once? I read about adjusting the arrays.xml file which you get by decompiling framework-res.apk. It's feasible, but not as simple as editing mixer_paths.xml.

---------- Post added at 08:14 AM ---------- Previous post was at 08:11 AM ----------

Thank you, thank you, thank you! :good:

Runs fast and smoothly as always :)
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know why this happens.

(AFAIK) No!

I don't think so (don't hope so)

Same here. Ja, that's another not well working thing; but I can't change it. Sorry
[Xperia Z5 Compact Android Development] Berni-0815:
Is ANT+ working with this ROM? (I can't test it, since I don't own an ANT+ device)
[Xperia Z5 Compact Android Development] Di Fudel:
No ant+ don't work, unfortunately.
[Xperia Z5 Compact Android Development] leeoniya:
Wow, I thought I was going nuts. I recently switched from an Asus RT-N16 router with Tomato firmware to a TP-Link Archer C7 v5 with DD-WRT and started getting frequent WiFi drop-outs on my Z5C (but not on my Lenovo laptop with an Intel wifi chip). So it sounds like it's not the router. The TP-Link is an Atheros 9K chipset https://wikidevi.com/wiki/TP-LINK_Archer_C7_v5.x while the Asus is Broadcom: https://wikidevi.com/wiki/ASUS_RT-N16.

I'll try to post some adb logs soon to see if we can make any further progress.
[Xperia Z5 Compact Android Development] leeoniya:
ok i have an ADB log attached with the WiFi dropping once or twice within ~2 mins.

[MENTION=7749536]Berni-0815[/MENTION] there's a lot of potentially sensitive info in there, so i've PM'd you the password to the log.
[Xperia Z5 Compact Android Development] Berni-0815:
Thanks!

I can see that the device is connecting and disconnecting (and then registering a new network) very often.

This behaviour can not be seen at my device. My device connects once and then works stable.

Maybe this is a problem with your wifi router? :confused:
[Xperia Z5 Compact Android Development] YamiYukiSenpai:
That's my issue exactly, but it seems that the antenna isn't as sensitive as it should be. This was happening back when I went to University of Illinois, and it's now happening here at home, too.

The Wi-Fi won't have stable connection, and sometimes can't detect it if the signal is weak. My other devices are fine at the same range.

https://mega.nz/#F!qQUmTACI

I sent you the decryption key
[Xperia Z5 Compact Android Development] ChrisBa1507:
Hi all,

I have an issue with my network, that is a bit different.

WiFi works very stable but for me, the network (cell service) drops out ever few minutes (sometimes even just seconds). That only happens as long as I am on a WiFi. If I turn WiFi off, the cell service connection is very stable!

I tried updating to the latest firmware using flashtool and make a clean install of Bernies rom after that.

It still happens.

Anyone else facing that issue? Any idea what logs to capture to get an idea on what's happening?

Thanks for all you work and help!
[Xperia Z5 Compact Android Development] ChrisBa1507:
Problem is solved. I flashed it a third time and for some reason this time I don't encounter any network issues.

Thanks guys for that awesome ROM!
[Xperia Z5 Compact Android Development] momomomonsterbill:
[MENTION=7749536]Berni-0815[/MENTION] Thank you very much for maintaining this ROM! :) I like my z5c - it is compact (obviously) and waterproof which is essential for water-sports. It capsized with me two times already without lasting damage - only the camera lens was foggy for a few days. Thanks for all the work and effort you put into this!

Yesterday I finally found the time and courage to migrate from the last official LOS-release and had no problems worth mentioning :)

On thing I noticed: In the UnifiedNlp-Settings under "self-check" it says "Your Sytem does not support this UnifiedNlp package. Either install a matching package or a compatibility Xposed module." I'm not sure if there is something wrong with my install or if I can ignore this message.
[Xperia Z5 Compact Android Development] username one:
Has someone been able to successfully install Edxposed? I always get stuck in a bootloop. It would be nice to be able to use Amplify and Greenify.
[Xperia Z5 Compact Android Development] Berni-0815:
Ignore it.
[Xperia Z5 Compact Android Development] username one:
Has someone been able to successfully install Edxposed? I always get stuck in a bootloop. It would be nice to be able to use Amplify and Greenify.

Well I found my answer in the thread:

Sorry for the double post...fumbling hands
[Xperia Z5 Compact Android Development] Xoxu:
Hi,

since the last update my phone battery doesn't last the day ( normally 2 full days) and the phone is very slow.

Am I the only one to have this problem?

Seems to come from the mobile network signal.

Tried to have only 3G or only 4G or no data and that doesn't change.

Can I roll back to the previous release?
[Xperia Z5 Compact Android Development] Xoxu:
Hi,

I did rollback to the previous release and I am back to 2 days of battery, no more overheating, and less freezing...

Anyone else?
[Xperia Z5 Compact Android Development] Berni-0815:
Tested it now for more than two days. Battery still has more than 80%. No network drop out. No overheating. No slowing down. Works as expected. :angel:

But I'm a "normal" user! For me this is a phone! Not a gaming machine, not a streaming client. It has to serve network, wlan (if available), bluetooth (if necessary) and nothing else. I'm making phone calls, I'm using SMS, Threema and Telegram. And sometimes I'm using eMail and browser. (That's what I meant with "normal") My battery always "lives" more than two days; even when I'm hearing music with headphones.

Please fetch a radio log and send it to me if you want me to have a look into that issue.
[Xperia Z5 Compact Android Development] Berni-0815:
In fact, this will cause the mentioned problems.
[MENTION=8351927]hfte[/MENTION]: Simply install a sensor test app...
[Xperia Z5 Compact Android Development] brodo:
Two days of battery life... The last time I had this was with my z3c. With the z5c I barely reach one day when using it "normally". Your description of "normal" seems to meet my usage. Except maybe that I leave Bluetooth mostly on since I have Bluetooth headphones.

Anyway, the real waster of energy is the cpu. Even with light tasks like web browsing or Google maps the device becomes pretty warm. With more "extreme" use cases like filming, watching YouTube videos, navigating or a very active modem due to bad network coverage the back becomes barely touchable. This can be moderated a little bit with the power profile set to energy saving.

I thought this behaviour is normal for the z5c but your description tells a different story. Could there be something wrong with my device or is this software related? Idle mode and Android OS use the most energy due to battery monitor. Apart from that there is no rogue process in the background (as far as I can tell).
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know. As I said in earlier posts, I'm now using an iPhone 8 as daily driver and my z5c is only for "playing around".

But I'll change my sim card and use the z5c for some days asap. Then I'll see... ;)
[Xperia Z5 Compact Android Development] Berni-0815:
Test started with about 80% of battery on september 26th 9pm CEST (directly after my post above) and stopped it with about 9% of battery on september 28th 8pm CEST in "real live conditions". Will say, I've used my z5c as usual: Making phone calls, sending and receiving messages, browsing the web, sending and receiving eMail, navigating with google maps, taking pictures and running through my home town more than two ours hearing loud music via headphones. Some times I've been at home (wlan) and some times I've been outside (normal network from very slow up to LTE). Battery drain has been higher outside; but here in my home town the network is not the very best (we have a lot of wood with no network coverage); so, the device has to search for network very often.

No overheating, no slowing down, no unusual network drops, nothing to remark.

Result:

About two days of battery live. :good:

Mission accomplished! :angel:
[Xperia Z5 Compact Android Development] dorin-97:
Hi there, im having lately the same problems as described by Brodo.

Can i get the earlier build of the latest one?
[Xperia Z5 Compact Android Development] brodo:
I don't think that will help. My z5c was always like this, also with earlier builds or back then when there were official builds. I'm starting to wonder if there are batches of the z5c that suck up more energy than others. Especially the heating up was reported as an usual behaviour of the z5c, even with the original OS.
[Xperia Z5 Compact Android Development] Berni-0815:
See 1st post...
[Xperia Z5 Compact Android Development] :
I am starting to wonder about the same thing.

I had the phone for 3 years and it always heated up when using intensively, i tried almost every custom rom available for it and only now i'm starting to realise that maybe my unit was defective from the beginning and the heating isn't "regular" behaviour.
[MENTION=7749536]Berni-0815[/MENTION] is it possible for you to record a full geekbench test with CpuFloat app on top of it? It's all i need to confirm this theory that some z5's (like mine) have hardware issues
[Xperia Z5 Compact Android Development] Berni-0815:
This app? How to use it?
[Xperia Z5 Compact Android Development] :
You just open it and it will show temperature, frequencies, current drain etc. while you benchmark and screen record.

This way i can compare to see if your device is behaving differently than ours. 2 days of battery life are absurd.
[Xperia Z5 Compact Android Development] Berni-0815:
This will take a while; my z5c is currently not usable...
[Xperia Z5 Compact Android Development] I_did_it_just_tmrrow:
THX for the new version.

You wrote on the first post that you add/patch the current security patch level

New: Android security patch level: 5 September 2019 (see screenshot)

This is the reason why I update the rom. But it is very strange that my settings show me an older date:

Yours:

Is there a reason for that?

By the way:

Dear Bernhard, thank you for your work on this rom. I am still using this device and I am happy to get every month the current android patches from your build. If I am reading it right you just doing this for the community because you did not use your suzuran a lot. This is awesome! If I can help you in any way, just write me.

Beste grüße,

Idijt
[Xperia Z5 Compact Android Development] Berni-0815:
Here it is...
[Xperia Z5 Compact Android Development] Berni-0815:
Mine is quite up-to-date.... :angel:
[Xperia Z5 Compact Android Development] :
What's the highest temperature it reached? What's the final score? What's the highest amount of active cores that were on during the run?

I wanted a screen recording video to analyize if your phone is beheaving differently than mine
[Xperia Z5 Compact Android Development] I_did_it_just_tmrrow:
Any explanation for this?
[Xperia Z5 Compact Android Development] Berni-0815:
Imagine I'm five years old... Please tell me step by step how I can answer these questions... :angel:
[Xperia Z5 Compact Android Development] Berni-0815:
No! Does anyone else have this?
[Xperia Z5 Compact Android Development] dorin-97:
Hi there in my case only with Xda Labs open nothing more.
[Xperia Z5 Compact Android Development] :
Just open CpuFloat and geekbench, start recording the screen and then stop when the benchmark is finished. Then upload the video somewhere and leave the link
[Xperia Z5 Compact Android Development] broken_5:
hello, i tried this but the thing is CpuFloat get closed by Geekbench at about 60% of the test, then appear again when the test is complete, the recording of the screen also get interrupted by Geekbench and was impossible to access it when the test was complete, so after trying many times without success i ended up just taking many screen shots until CpuFloat got closed(60%), then one screen shot with result at the end of the test(when CpuFloat appear again), hopefully someone else will get better luck with recording

steps i took:

first the phone got bernis 2019-08-13 version(thanks berni), nothing has been changed with Kernel Adiutor prior to starting this test, here is what i did: restart the phone then immediately open CpuFloat then Geekbench then proceed

screenshots: imgur.com/a/zWn00vY
[Xperia Z5 Compact Android Development] Berni-0815:
Same here. Geekbench is closing CpuFloat several times. I've also taken some screenshots.
[Xperia Z5 Compact Android Development] :
So, how is it possible that you are getting no heating issues and 2 days of battery?

You drained 7/8% with a single stress test and the temperature did reach 60 degrees

my phone becomes hot at 50 degrees
[Xperia Z5 Compact Android Development] Berni-0815:
I really don't know! Maybe, I'm using my device less intensive than others? I've described my "normal" usage; with that, my battery "lives" about two days. And that's exactly the same as with every version of my LineageOS build before (from the beginning on).

If someone flashes latest stock rom and runs this test; maybe there is another result?
[Xperia Z5 Compact Android Development] :
I did use your ROM for a week after flashing to stock (to fix the sensor issues) but i didn't notice any improvements over other custom roms.

The only rom that gave me 2 days of battery was RR with undervolting.

My usage is much lighter than yours (7/8 hours on cellular, rest of the day indoors with wifi. 3 hours SoT with very light usage in total).
[Xperia Z5 Compact Android Development] :
I already asked this a year ago with a few other people: can you please build lineage with oms support? I wouldn't know how to thank you for that since this is the only decent custom rom for the device (i'm starting to realize maybe battery life was better in your rom and it isn't a problem with my device thanks to you troubleshooting, and i also need bluetooth wich doesen't work on aex) but really can't live without OMS. it's ok if you want to keep the rom clean, you can make a separate build with it (i don't care if it doesen't get updates). Here's how to make that: https://xdaforums.com/apps/substratum/reference-lineageos-substratum-support-t3580276

Hope you can make that happen, thanks for everything you are the best developer for this dying device.