yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] &(*):
The OS has nothing to do with the device partitioning scheme. Devices that launched with Oreo and later have the paritioning setup, anything before that does not. GSI roms are a half baked solution, updated binaries are usually required to run them smoothly. The most recenet binaries released for the z5 family are AOSP 6.0.1.; mainly, building the rom (Evo X) is the best option for legacy devices.

---------- Post added at 05:26 PM ---------- Previous post was at 05:22 PM ----------

What app are you using to support HDMI output? Are you able to change the USB mode to MHL with or without the app?
[Xperia Z5 Compact Android Development] FioNyan:
So I've installed this ROM and have been monitoring it for a few days now and most seems to be working well!

I did encounter some things though:

- camera stops working after using skype a little while

- mic gain seems to be doing weird thigns in whatsapp video calls; it's very low (all other applications seem to be okay!)

- there's a sound/video delay in whatsapp video calls.

I'm not sure if it's an app specific thing but I've had no issues on 14.1 so it makes me think it's the ROM.

Happy to give more information like error reports, if someone can explain me where to pull them from.
[Xperia Z5 Compact Android Development] Berni-0815:
I've never tested one of your mentioned apps. Can anyone confirm these issues?
[Xperia Z5 Compact Android Development] &(*):
@Berni-0815 ,

I posted a little while ago when you first included the updated WiFi/Bluetooth drivers from X compact (GreyLeshy supplied these: https://xdaforums.com/t/firmware-update-wlan-and-bt-for-nougat.3604758/ ) that the drivers/firmware might be kernel specific. X compact uses 3.18 kernel for these and you are using 3.10. Many people are reporting drain issues, and it is either the updated drivers and/or Qnovo partition needs to be wiped (why TWRP doesn't allow the partition to be included, I couldn't tell you). Maybe you should revert the change to the chip's driver to what it was prior to the update and offer an alternative 17.1 to see if the results are the same or different with the drain issues - just a thought.
[Xperia Z5 Compact Android Development] Max8719:
Yes, I can confirm the described issues in wahtsapp video calls.
[Xperia Z5 Compact Android Development] Berni-0815:
Good idea! But I had the same idea and built a ROM with the original drivers. I can't see any difference.
[Xperia Z5 Compact Android Development] Berni-0815:
Weird! But if other apps are working good, then it might be an issue with whatsapp itself?

I don't use whatsapp at all, so I can't test...
[Xperia Z5 Compact Android Development] beflythis:
reporting insanely bad battery life over the last few days. If the phone is left inside uncharging it basically zaps itself into a brick. These battery issues quickly making this build unusable.
[Xperia Z5 Compact Android Development] Berni-0815:
That's a well known issue. Disable bluetooth and battery life will be much better!
[Xperia Z5 Compact Android Development] Max8719:
I think it has something to do with the camera functionality itself. Because if you recording a video with the front camera in higher resolution using the camera app it is lagging a lot. Only if you adjust the lowest resolution it works without any lag . And if you make a video call the resolution is normally automatic upscaled to the highest possible resolution if the Internet connection is fast enough.
[Xperia Z5 Compact Android Development] Berni-0815:
Maybe. We're so proud that the camera itself is working that we can't care about resolutions and so on at the moment ... 😇
[Xperia Z5 Compact Android Development] :
I also can confirm this

but i was able to make whatsapp calls on older builds without issues
[Xperia Z5 Compact Android Development] Berni-0815:
Which build(s) do you mean?
[Xperia Z5 Compact Android Development] :
My latest successful whatsapp call is dated 14/11/2020, then i received a call today and they couldn't hear me at all.

But i don't remember if i had updated to 11-12-2020 already or not.

Another thing i noticed is that on 11-12-2020 i cannot change mixer_paths.xml, while i was able to use mine on builds before 11-12.
[Xperia Z5 Compact Android Development] Berni-0815:
I haven't changed anything regarding camera since october 27th and regarding audio since november 5th.

Same here. No changes.
[Xperia Z5 Compact Android Development] Lehil:
Hi all!

Thanks to the now working camera, I made the daring move to install this build on my everyday phone, and I love it! Thank you very much Berni for the hard work!

As for battery, it holds out for around one and a half day with my normal usage (some videos, messenger and calls basicially) but that's excluding bluetooth, so nothing that's not already known.

On the other hand, I have a minor issue with the lock screen + fingerprint unlock:

when I press the button to unlock the screen, it doesn't scan my finger as soon as it wakes up, but waits for a touch on the sensor. So instead of a click and an instantaneous unlock, I need to click for the wake, and a tap for the unlock. It's not a grand issue, but kind of an annoyance, compared to Nougat. I don't know if it's this particular rom, or some kind of Android 10 generic issue, just something I noticed.

I'll keep using it, and post if I find anything. Thank you once more!
[Xperia Z5 Compact Android Development] pesho.balkansky:
Hi all, thanks for the great build! I also installed it on my everyday phone and so far it works a lot better than before with the vendors os.

I have only one question though. The thrust system security shows a warning that "This build was signed with public keys" and I don't understand if there's a problem that I have to be concerned about?
[Xperia Z5 Compact Android Development] Lexvox:
Evolution X is an custom rom aiming to bring a pixel like experience. Would love to see it running on this device.
[Xperia Z5 Compact Android Development] Lexvox:
Oh my bad. I thought android 10 = treble. :geek:
[Xperia Z5 Compact Android Development] Berni-0815:
That's not a bug, that's a feature! Otherwhile the sensor would always be on and is reacting on every touch and don't let the device go into deep sleep.
[Xperia Z5 Compact Android Development] Berni-0815:
The build is not signed. I've tried to sign my builds but I failed.

Don't worry about it!
[Xperia Z5 Compact Android Development] Berni-0815:
That's not planned!
[Xperia Z5 Compact Android Development] Lehil:
Hm... kinda sad. Does that mean it was always on in Nougat? Or was it handled differently in the stock ROM?

Anyway, sorry for complaining about it then :D
[Xperia Z5 Compact Android Development] Berni-0815:
I can't remember. I think the power button had to be pressed before, as it is now.

It's ok. You're not complaining, you're simply telling me what issues you noticed. Without that, I can't develop this ROM further. (y)
[Xperia Z5 Compact Android Development] 1ggn3:
I think 15.1 uses the old drivers (or at least used to when I tried), and it's exactly the same. :(

I believe there are two kinds of battery issues here:

1.There is the general problem with bluetooth. For some reason something does not work as intended, and the standby drain is quite high. I get about one day (~12h) of light usage with cell radio, wifi and bluetooth on.

2. There seems to be some rare condition where the phone starts to use a lot of power. This quickly discharges the battery, and the phone gets pretty hot. I don't know what is causing that, since it has only happened twice in several weeks for me, and both times I was too late (phone had already turned itself off).

If anyone notices that condition, could you please try and get as much information as possible? Like, what is running in the background, how is the cpu utilisation...

Bonus points for an adb bugreport, since you can then run something like battery historian (don't post that, I think it cointains a lot of personal info ;))
[Xperia Z5 Compact Android Development] :
Then i'm out of ideas...

Regarding the mixer_paths.xml: it was fault of the root browser app i was using, nothing to do with the rom. Sorry.

the good news is that i successfully extracted the mixer_paths.xml file from DevelLevel's Aex 4.6 (which i think comes directly from stock rom).

And it totally fixes the headphone audio static (the previous mixer_paths that i sent only reduced it), didn't try if microphone related issues are fixed by changing this file yet.

I'll attach it in case someone wants to try it.
[Xperia Z5 Compact Android Development] Berni-0815:
This is a very complex theme! If you change setting <abc> in part <xyz> it will have unwanted side effects in other parts. I tried a lot of settings but nothing fixes all issues.
[Xperia Z5 Compact Android Development] Berni-0815:
No. It's the one from original LineageOS 14.1 ROM
[Xperia Z5 Compact Android Development] Max8719:
I think he means that in the original sony builds the behavior of the fingerprint reader was a little bit different. In the sony builds you pressed the power button, then the display woke up, and the fingerprint reader was reacting right away and unlocked the phone.

In LineagOS the display wakes up when you press the power button, but the fingerprint reader does not react right away. You have to raise your finger from the sensor, and lay it once again on the fingerprint reader.Then the phone gets unlocked.

But I dont know if their is a way to change that.
[Xperia Z5 Compact Android Development] Berni-0815:
Maybe. But first you have to press the power button manually. And that's how it should work. And as I said: "Otherwhile the sensor would always be on and is reacting on every touch and don't let the device go into deep sleep. "

I don't know either.
[Xperia Z5 Compact Android Development] :
Then, why not use the same mixer_paths as lineageos 14?

what's the issue with that one?
[Xperia Z5 Compact Android Development] Berni-0815:
As I said: "This is a very complex theme! If you change setting <abc> in part <xyz> it will have unwanted side effects in other parts. I tried a lot of settings but nothing fixes all issues."

There has been much problems with mic gain, speaker volume and so on. I can't remember exactly, but if you are fully reading the related threads (los14 and los15), maybe you'll find an answer... (???)
[Xperia Z5 Compact Android Development] Max8719:
I agree with you. I also think it is absolutely okay how the fingerprint reader works now. (y)
[Xperia Z5 Compact Android Development] dustinlagoy:
I've been using your Lineage 14 build for a long time but recently acquired another z5c and have been trying this out. A few things I noticed:

Battery: Similar to others, with bluetooth off battery is great and seems to work well consistently (loosing only 1-3% overnight when in battery saver). For me it was too bad that android lost the disable wifi during sleep feature as I don't use cell data and don't want to remember to turn off wifi, but I wrote a script for Easer to call to toggle wifi when the screen turns off which is working well.

Camera: Everything TheVan28 said. It would be great to have a viewfinder and full resolution! Too bad none of the working camera apps are open source...

Audio: Everything seems to work, but the microphone is very quiet. I remember having this issue with 14 before my old phone fell in a lake. Adding the following to mixer_paths.xml (exactly as I did for 14) solves the low microphone gain:

1518c1518
< <ctl name="DEC7 Volume" value="114" />
---
> <ctl name="DEC7 Volume" value="84" />
1523c1523
< <ctl name="DEC9 Volume" value="114" />
---
> <ctl name="DEC9 Volume" value="84" />

Thanks so much for all your work Berni! This is good enough as a daily driver for me, so maybe it's time to try 18 :)
[Xperia Z5 Compact Android Development] danielski_234:
Just wanted to thank you greatly for keeping up your hard work on this and bringing 17 to our beloved z5c! And great that you finally managed the camera to work! which was the dealbreaker. Thanks also to @sabar_op, @tarkzim and @torukk for their part on the camera!

First two or three loading circles after installation i've had serious issues with fast draining battery, was about to go back to 14.1. I think it occured when streaming music over bluetooth, even after switching BT off it went on draining severely until restart. Don't know what i changed except power saving now on, but now everything's ok, even when streaming music over BT, it then empties faster but not that much. Use this as daily driver since weeks now.

Most of the time Open Camera doesn't focus correct on short distances (approx. <30cm), but that may be a bug of OC on 17.1 as on 14.1 everything was ok and stock camera app does fine most of the time on 17.1.

Few words concerning resolution: 8 MP is really the max this lens can handle, imho, everything above is kind of fake. You may also interpolate your 8 MP-images with photoshop (or whatever), and get same or better results.

Before that i used Bernies 14.1 and before that RR 5.8.5.

Great work! (y)
[Xperia Z5 Compact Android Development] :
Where exactly do i add this?
[Xperia Z5 Compact Android Development] Berni-0815:
Not adding anything. Changing the values in line 1518 and 1523 from 84 to 114

Edit: Take a look into this post
[Xperia Z5 Compact Android Development] 1ggn3:
Another small bug I found: If you enable Wifi Display or anything P2P-Wifi related, the driver seems to crash in a loop, which drains the battery really fast. This is the switch I mean:

This is the CPU usage I see if it is enabled (notice that two big cores are online, even though the device is doing nothing):

In comparison, this is the cpu usage after disabling Wifi Display and rebooting:

Logcat snippet is attached. I have no idea how to fix this, so for now, don't use Wifi display :)
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

FM-Radio working!
[Xperia Z5 Compact Android Development] Lehil:
Yes, it had to be pressed to wake it up, but after waking up it automatically scanned the fingerprint and unlocked the screen, so after a click you just left your finger there until it unlocked. Now after waking up it seems to be waiting for an event when something gets in touch with the sensor, instead of scanning what is already touching it, so it needs a click to wake up, and a separate tap to unlock.
[Xperia Z5 Compact Android Development] :
I've had this phone since official android 5.1.1 release and it always worked like in this rom, you always needed two presses to unlock.
[Xperia Z5 Compact Android Development] Berni-0815:
I may be wrong, but since I've flashed this version, battery live is way better than before, even with bluetooth enabled. Please test and confirm or (hopefully not) decline.
[Xperia Z5 Compact Android Development] :
Phone now (sometimes) enters deep sleep when bluetooth is activated!

not great but an improvement for sure, that might be why you are having better battery life.

EDIT: also, there is no need to reboot the device when turning off bluetooth anymore, after turning off bluetooth, deep sleep goes back to normal.
[Xperia Z5 Compact Android Development] norabitox:
Berni-0815

Thank you for your efforts and conscience

Is the updater working?

How to update?
[Xperia Z5 Compact Android Development] username one:
I went from your 14.1 build to this version yesterday. There seems to be somewhat better battery life with this version. (y)(y)(y)

I haven't tried BT since I never use it.
[Xperia Z5 Compact Android Development] Berni-0815:
No

By manually flashing a new version.
[Xperia Z5 Compact Android Development] Berni-0815:
In Germany we have a Corona-Warn-App. This app needs bluetooth!
[Xperia Z5 Compact Android Development] Berni-0815:
The last two days I've tried to figure out why this is happening.

Unfortunately unsuccessfully... :confused:

Is p2p needed? I can only disable it system-wide.
[Xperia Z5 Compact Android Development] Berni-0815:
I've fixed the crash of the p2p-driver. Please try this version (link removed due to new version; see 1st post); search for "wpa_supplicant" in the LOG file.

Since I don't know how to use p2p, I don't have tested this.

The mentioned version is a developer version only and not intended to be used as a daily driver, because it spam's the log buffer very fast with a lot of debug loggings.

If p2p is now working, I will build a ROM without these debug information. (removed due to new version; see 1st post)
[Xperia Z5 Compact Android Development] pesho.balkansky:
But is it possible to upgrade to the latest version without losing my configuration?
[Xperia Z5 Compact Android Development] Berni-0815:
In most cases you can flash a new version over an existing version. In some rare cases this doesn't work. Then you have to do a clean install!
[Xperia Z5 Compact Android Development] norabitox:
Is it okay without wipe
[Xperia Z5 Compact Android Development] Berni-0815:
As I said: "In most cases you can flash a new version over an existing version."

But it is well known that there are enough people outside in the world who had weird problems by doing this! They all had to do a clean install!

Simply read this thread (and the other z5* related threads) from the very beginning and you will see...

For all others: Try a dirty flash.
[Xperia Z5 Compact Android Development] norabitox:
[QUOTE = "Berni-0815、投稿：84110301、メンバー：7749536"]

私が言ったように、「ほとんどの場合、既存のバージョンの上に新しいバージョンをフラッシュすることができます。」

しかし、これを行うことによって奇妙な問題を抱えた人が世界中に十分にいることはよく知られています！彼らは皆、クリーンインストールをしなければなりませんでした！

このスレッド（および他のz5 *関連のスレッド）を最初から読むだけで、次のことがわかります...

その他すべての場合：ダーティフラッシュを試してください。

[/見積もり]

ありがとうございます
[Xperia Z5 Compact Android Development] Berni-0815:
どういたしまして
[Xperia Z5 Compact Android Development] Berni-0815:
New version out; see 1st post.

Android security patch level: 5 December 2020

P2P-Crashes fixed
[Xperia Z5 Compact Android Development] sourcecodebes:
Hi Berni,

very nice work. I was using your 14.1 ROM for several years and switched to this now a few days ago. Using it already as daily driver. Many thanks. I'm happy to be up-to-date with this device again! And it is working really well.

For sure I did a clean install (already several times) based on the TWRP 3.2.1 you suggested.

But one thing is not working so far for me: All the sensors are not working. So no brightness, no distance detection, no accelerometer, no rotation, ...

Is this a known issue? Any hints to get that working?
[Xperia Z5 Compact Android Development] Berni-0815:
Enter this command in a root shell *):

restorecon -RF /persist

Reboot.

Now everything should work as expected.

*) A root shell is invoked by entering these commands line by line::

adb root
adb shell
[Xperia Z5 Compact Android Development] Shandiiman:
does this rom support gcam?
[Xperia Z5 Compact Android Development] Delfinololo:
Hi Bernie, thank you so much for your works on this device. It's a gift for christmass receiving android 10 as a daily driver on Z5C. I was wondering if there is a telegram group for users of your rom and if not if you would find it cool to create it. It's helpfull for sharing crasch logs or asking for opinions about the new version you release. Now i'm currently on your version of Linege OS 14, but i'm thinking to change to this brand new december update. Do you think this Lineage 17 update is as stable as the 14 version? Thank you again. Happy Holidays!
[Xperia Z5 Compact Android Development] Blueesx:
Hi Bernie,

I followed your instructions and I didn't get it to work.

It said:

suzuran:/ $ restorecon -RF /persist

SELinux: Loaded file_contexts

SELinux: Could not stat /persist: Permission denied.

Do you know how to fix that?

Thanks alot for keeping this phone alive 🙂👍
[Xperia Z5 Compact Android Development] Berni-0815:
Are you really working in a root shell? Is "adb root" (or so) activated in developer options?
[Xperia Z5 Compact Android Development] Blueesx:
Yes, because I followed your instructions with further reducing battery drain by removing system apps with the console. I deleted the apps and for that I had to use the same way of adb root & adb shell.

Mhm. If it's because of adb root I'll try some more later today.

Thank you for the quick reply.
[Xperia Z5 Compact Android Development] Berni-0815:
Then I have only one idea left: Root your device with Magisk (see 1st post) and enter

su

in the shell.
[Xperia Z5 Compact Android Development] Blueesx:
Now it worked. 👍👍 Awesome. Thanks alot.
[Xperia Z5 Compact Android Development] Berni-0815:
Sensors are working again?
[Xperia Z5 Compact Android Development] Blueesx:
Yes, sensors work again 🙂

Brightness is adjusting itself on auto and auto rotation works.

And after restarts and putting the sim in and out I got my network working well too.
[Xperia Z5 Compact Android Development] danielski_234:
On version 20201211 active Bluetooth doesn't seem to use (noticeably) energy – at least if nothing is transfered. Doesn't make a difference if phone is connected to a device or not, not neither if energy saver is on or off, in all these cases battery usage is very low. Tested this with BT-Headset.

If playing music over BT, battery consumption is quiet high*, tested on a JBL "Flip 4" Speaker, Kenwood Car Radio and a Laptop running Linux – the amount of energy used seems to be the same on all (according to battery monitor of "settings" on the phone).

BUT battery usage is almost same as high when only playing music on the phone without any device connected, so i guess that's mostly the power used to decode the music, not for Bluetooth.

Would be interesting how much german corona app uses as it seems continually connecting to all near devices, when i got it right.

No issues until now with phone entering deep sleep (as mentioned above).

*Edit: "quiet high" means 7% in 2.5 hours, screen off, doing nothing else than playing music
[Xperia Z5 Compact Android Development] Berni-0815:
I think so too.

Nearly nothing....
[Xperia Z5 Compact Android Development] username one:
A suggestion for increasing battery life is using Leandroid and Wakeblock. Using both severely decreases battery drain. If someone knows of a better option/combination, please let me know.
[Xperia Z5 Compact Android Development] 1ggn3:
It looks like my phone is messed up then, because over night I lose about 20-40% in flight mode. I can confirm that it enters deep sleep, but it just uses that much power anyway. I honestly don't know why..
[Xperia Z5 Compact Android Development] Berni-0815:
Start from the very beginning:

Flash stock ROM

Clean install LineageOS

Such a high battery comsumption is absolutely not normal!
[Xperia Z5 Compact Android Development] :
I successfully installed this ROM, and it amazes me. Finally, I can enable dark mode!

There are still several problems that annoy me. First, the sound seems to be boosted too much. I would like it to be more silent. Every time I get a notification or someone calls me, I totally get frightened.

My next problem is the battery. Every time I charge, it gets super hot. I reduced consumption, as the developer said. I don't care about this point much, but I'm worried about my phone.

I'll appreciate every idea to fix this.
[Xperia Z5 Compact Android Development] Berni-0815:
That's not normal! My device doesn't get hot.

As I wrote one post before your post; start from the very beginning. You must have messed up something.
[Xperia Z5 Compact Android Development] Delfinololo:
Hi. Thanks for the rom, everything works perfectly, but i noticed that camera can't focus. Any solution?
[Xperia Z5 Compact Android Development] :
You have two options:

1. Use HTC Camera or other 23 mpx camera apps, they focus without issues but viewfinder doesen't work, you have to shoot photos blindly.

2. Use footej camera or open camera and manually adjust focus distance.