yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Berni-0815:
Just tested OpenCamera. Directly after start it focuses as expected. When I tap on the screen it sometimes shows a red rectangele, sometime a green. Don't know what's going wrong. But in all cases it focuses.
[Xperia Z5 Compact Android Development] Berni-0815:
Same here and the app can't be installed in the normal way.

rm ServiceMenu.apk :angel:
[Xperia Z5 Compact Android Development] udaemon:
hi Pete, thanks for sharing your experience and hints! I tried what you suggested: flashing stock rom. unfortunately, the phone stuck in a bootloop after flashing with flashtool. tried it with two different roms I found in the net (E5823_32.4.A.1.54_FR.ftf and XPERIASITE.PL_Z5_Compact_E5823_7.1.1_32.4.A.1.54_Germany). the device booted shortly before the sim unlock screen would appear. at least, it played the particular sound. but then the screen turned black and the led flashed red and it started over again.

:confused:
[Xperia Z5 Compact Android Development] petefoth:
Ouch! I had a similar problem on a XZ1 Compact when I tried flashing some different ROMs and needed to get back to stock. I then followed instructions at https://www.getdroidtips.com/install-stock-firmware-sony-xperia-using-xperifirm-flashtool/ which said that, when flashing using flashtool, you should wipe DATA, CACHE, and APPSLOG. I hadn't been doing that: doing it allowed the phone to boot successfully into stock firmware.

Maybe that will help for you. If not, then I'm not sure what to suggest, except perhaps to try a few times: flashing with flashtool hasn't always worked first time for me.

Good luck!
[Xperia Z5 Compact Android Development] &(*):
Are you using xperifirm? I suggest fixing the bootloader by rolling it back to M (32.2.A.5.11) or even Lollipop if need be (will be under service exchange I believe). You have a 5823, you might have to switch it to a 5803 which is simple (will provide instructions, but doubt that is the case at the moment). Get TWRP back on there via fastboot and wipe and then get xperifirm for flashtool and flash a firmware gathered from those repos based on versions available. Make sure before you flash the firmware that you exclude the simlock.ta if flashtool does not do so by default.

Strange that someone reported the servicemenu.apk was working the 14.1 thread. I wonder if they had sonyframework installed already?
[Xperia Z5 Compact Android Development] Toedi:
Camera not working after Video call

I ran into a camera issue and wanted to firstly report it, and secondly ask for help ^^

During a videocall over Telegram, the cam stucked onto a single frame and I was not able to recall over video anymore. After the call, severall attempts to start the cam among different apps didn't work:

Stock-camera app keeps on crashing.

Telegram won't do anything after tapping on the camera icon.

I downloaded the opencamera app but it told my it was not able to access the camera (Gives error-ID 0 and suggests that another app is using the camera)

Severall restarts and wiping the cache didn't work either.

Any suggestion in how to fix this issue?

Cheers

Edit: Flashlight is also not executable :(
[Xperia Z5 Compact Android Development] Spyop3:
Installed the last version from 2020-11-12 and still got the huge consumption with Bluetooth on. Look at the screenshot you can clearly notice when I deactivate bluetooth and reboot the phone

I saw that you tired something Berni in last build clearly it's not right yet. Please don't give up you rom rocks !!!

config: password protected with schema, no fingerprint registered, nothing connected to Bluetooth

[IMG="screenshot battery"]https://i.ibb.co/yR68d02/Screenshot-20201115-150959-Settings.png[/IMG]
[Xperia Z5 Compact Android Development] udaemon:
yes, that helped quite well - thanks!! accessed the service menu and checked the microphones. the main microphone on the bottom doesn't work, the upper one does. now I (just) can be certain that it's a hardware problem.
[Xperia Z5 Compact Android Development] Shmee007:
I enable encryption and it works BUT you need to use an old version of TWRP to wipe
[Xperia Z5 Compact Android Development] Berni-0815:
Which version of TWRP are you talking about?

And which partitions are you wiping?
[Xperia Z5 Compact Android Development] Shmee007:
Hi Bernie

I followed these steps (Wiped as suggested in the post)

https://www.reddit.com/r/LineageOS/...hose_with_encryption_problems_on_los_151_try/

I used TWRP 2.8.7 I managed to track down, that actually worked on the Z5C

https://xdaforums.com/z5-compact/orig-development/twrp-z5-compact-t3235161

Cheers
[Xperia Z5 Compact Android Development] beflythis:
booted. installed TWRP 3.3.1, fresh wipe, flashed LOS and did NOT install TWRP, and after a few minutes it booted successfully. I think it was not installing TWRP? conflict of boot files? /armchairdev

thanks for all the feedback... i'll post some results shortly.
[Xperia Z5 Compact Android Development] beflythis:
had some kind of weird GPS issue (wasn't working properly in waze) so did a wipe and re-flash, and after almost 24hrs of proper setup and configuration.... loving it!

Huge thanks to berni and others bringing these recent builds to a legacy device.... I'd LOVE to see more of the stock level of quality of camera come to LOS for this phone.... because if that happens, it means you can spend just $300 USD on a kick ass phone capable of running today's latest OS's.... compact, great camera, great battery life - all at a fraction of the cost of $900 flagship phones you see today.

Right now quality of camera is the only purchasing driver mandating new hardware purchases.... but sure there is work to be done here that can cannibalize even better camera hardware [with how good the stock Sony cameras are].

Thnx again for the work and looking fwd for future builds. You guys rock.
[Xperia Z5 Compact Android Development] Spyop3:
Bellyfish do you also experiment poor autonomy when activating bluetooth ?

Else I'm 100% with you it's an amazing port done by Berni and the team :)
[Xperia Z5 Compact Android Development] beflythis:
can you clarify "poor autonomy"?. the only device I BT connect with [typically] is my car and I haven't yet had any calls.

That said, I think I noticed the music player (can't recall if native or from the gAPPS, but believe native music player or google) kept crashing (?) in the background while playing media from the external storage [while the phone was locked and connected via 3.5mm to a speaker]. Played fine for about 10m, then every 30seconds it would crash (stop playing and need to be re-played).
[Xperia Z5 Compact Android Development] Spyop3:
You will instantly notice the difference

without bluetooth activated (bluetooth off in setting pane), I get without using the phone 5 days autonomy

with bluetooth activated (not connected, just on in settings pane), I get about 1 day

You can turn on bluetooth anytime it will start affecting battery right away but if you want to notice something from deactivating it you must reboot right after

[MENTION=297280]berni[/MENTION] I also noted that bluetooth never appears in battery consumption stats. If you need me to test more or give you log just ask me what to do this Z5c is not my daily yet so I can flash and try

looking around I found this link or this seems sometime needed for the settings "config_fingerprintWakeAndUnlock" to work properly
[Xperia Z5 Compact Android Development] beflythis:
interesting; i've left it on as i typically do, but haven't noticed above average battery drain. that said, also immediately turned on the LOS "battery saver" which is more usable than other battery savery modes [taht dilute your display or are so aggressive they make the device undesirable to use when in battery save mode].

downloaded and using OpenCamera; still images actually coming out above expectation (great surprise); however when I switch to video, screen goes black and no video can be recorded.
[Xperia Z5 Compact Android Development] Berni-0815:
That seems to be normal. BT seems to be an android system member.

I'll take a look into it asap.

But, what's the problem with fingerprint? We've disabled fingerprint sensor when the device is in deep sleep mode.

Is that not working?

Or is that not wanted?

I really don't know what you're meaning.
[Xperia Z5 Compact Android Development] Berni-0815:
But without BT activated, the Corona warning app does not work!!!!

That means, here in Germany, BT is needed all the time!!!!
[Xperia Z5 Compact Android Development] Ryu--X:
I tried with the new version and once again it worked.

I also tried to send and receive Mms. No prob

I didn't try to erase the apn but i also think it may not be related..
[Xperia Z5 Compact Android Development] LzBz:
First off: thanks for your amazing work Berni!

I installed the ROM yesterday and wanted to share my findings so far:

- GPS took a while to find a signal first, but is working fine overall in google maps

- I'm getting 1.6gb RAM usage with pico gapps. Most of the time it's super responsive though. But I can confirm the phone sometimes nearly freezing, after random amounts of time.

- The freezing also happens, when it's locked, if that happens, the phone is running pretty hot and the screen won't come on. If I try turning it on a couple of times, it shuts down with the led blinking red 4 times. The Battery usage graph shows gaps for those time periods, but indicates an unusually high battery loss.
[Xperia Z5 Compact Android Development] :
I don't think that's an issue with this ROM, It also happens to me every time i reboot on aospextended (loses 5/10% every time).
[Xperia Z5 Compact Android Development] LzBz:
Hm, it's not happening on my z5c running los 14.1
[Xperia Z5 Compact Android Development] Ryu--X:
Does anybody can confirm making and receiving calls are working well ?

[MENTION=239351]bernie[/MENTION] I was thinking : my provider still does not use volte (but the provider of the other phone does)
[Xperia Z5 Compact Android Development] LzBz:
Calls work for me, both in and out with german vodafone. I just get that 'no network available' message after hanging up.
[Xperia Z5 Compact Android Development] noobynoob7:
Maaan Berni, hab meinen alten Account ausgegraben um mich verflixt nochmal zu bedanken! Krass, dass hier noch was passiert. Läuft sowas von gut! Vielen Dank wirklich für deine unermüdliche Arbeit.
[Xperia Z5 Compact Android Development] :
I just installed your ROM and it's great!

Can't wait for future improvements.

Thanks for your work on this
[Xperia Z5 Compact Android Development] Berni-0815:
Will test it asap; I'm very busy atm...
[Xperia Z5 Compact Android Development] Berni-0815:
You're welcome!

Same here.

Yea, same here... :( It seems that it's running our of memory...

That should be reviewed. Please follow these steps: Klick

Steps 1, 2 and 10 are not necessary because this rom is booting. I need these ramoops files to see what's crashing!
[Xperia Z5 Compact Android Development] Lehil:
Now this thread looks promising! :fingers-crossed:

Even though I use stock ROM atm, still sometimes the laging red flashing reboot occurs to me. Yet it could be some third party stuff leaking memory.

Currently I use my Z5C as my primary phone, so I need SMS and camera functionality, but if you manage to implement them, I'll gladly download your ROM :angel:

Thanks for all your work!
[Xperia Z5 Compact Android Development] jonathan_lau:
I got a Z5C as secondary device, installed LOS 14.1 on it, and the device is faster than expected :D Looking forward to install this ROM on it as well!

Great work :)
[Xperia Z5 Compact Android Development] brodo:
Looks very promising! Thank you! :good:

I did a clean flash without Gapps or anything and the RAM usage of Android-OS is still 1.1 GB. Without having anything else installed it's not too bad, but if it stays on this level I reckon it will be unusable. LOS14.1 demanded about 600 MB only for the OS which is already way too much for a 2GB device.

(btw: I always wondered about the purpose of a 64-bit system on a smartphone with 2 GB ram. It's not necessary to adress all the ram like with 4 GB or more but instead it eats up more ram, which is really scarce here, than a 32-bit OS. More computational power... sure, but do we need this in a pocket device? I have a z3c with LOS16.0 (32-bit obviously) on it and most times it feels snappier than the z5c with LOS14.1. :confused: )
[Xperia Z5 Compact Android Development] Berni-0815:
We're working on it.

Since we're not professional devs it could take a long time to fix bugs. Please remember, we do all that in our spare free time. :angel:
[Xperia Z5 Compact Android Development] Berni-0815:
No way! No outgoing calls possible. :crying:
[Xperia Z5 Compact Android Development] brodo:
I'm aware of that! And I didn't intend to complain. Maybe it came across wrong. It's clear that this is still wip, so this was just my experience with this build (and Android in general). It is good to hear though that you are optimistic about the ram usage going down :)

I'd like to be of more help but giving pointless comments is all I can do at the moment :rolleyes:
[Xperia Z5 Compact Android Development] MCGARCI88:
Amazing work!

Thanks a lot, i'm building a z5c rom based on lineage 17.1, but I was unable to create the rom because i haven't the tree source, I'm very happy because there are pepole like you that works in the z5c, an amazing smartphone, sorry my english;)
[Xperia Z5 Compact Android Development] Berni-0815:
No, it's all ok! No worries.

Just did a clean flash. 1,7 GB RAM usage without gapps!! :eek: That's way too much for this device...

Android 10 in general uses very much RAM.

As I said, that's ok.
[Xperia Z5 Compact Android Development] Berni-0815:
It's ok. You don't want to see my spanish... :cool:
[Xperia Z5 Compact Android Development] Berni-0815:
I need an experienced java programmer!
[Xperia Z5 Compact Android Development] Spyop3:
Thx for your answer and sorry if I'm not clear.

To wrap up

When I have no bluetooth activated everything fine, wonderful autonomy of 5-6 days (cause device enter deep sleep).

When I activate bluetooth (not connect just turn on), autonomy goes disastrous at 1 day (cause the device don't enter deep sleep)

I thought, as previously said, it has to do with the fingerprint reader but maybe it's unrelated. On my phone I don't use it (never register fingerprint), so it doesn't vibrate or sound when I touch power key.

Config: version of 20201112, wifi on, mobile data on, microG, no apps

See here I started bluetooth on, then stopped it and reboot (flatline), then start it again
[Xperia Z5 Compact Android Development] Berni-0815:
Hmmm. My device enters deep sleep even with BT activated and the battery lasts several days.
[Xperia Z5 Compact Android Development] :
This happens on my device as well
[Xperia Z5 Compact Android Development] Spyop3:
Interesting just reflash wiping data dalvik cache system and internal storage put result tomorrow ;)
[Xperia Z5 Compact Android Development] Berni-0815:
Then present LOGs, please.

My z5c has been charged over night and is powered on since six hours and lost about 14% of battery since then. I think that's a good result.

Please keep in mind that I'm using our German Corona warn app that uses BT and checks other devices from time to time. And my iPhone is laying next to my z5c. That means, they are staying in BT contact.

Something in your environment must trigger BT permanently and doesn't let the device go into deep sleep. I don't have another idea.
[Xperia Z5 Compact Android Development] :
I sent a logcat to you via PM.

There are no bluetooth devices found.

I didn't do any extended testing, i just turned on bluetooth, then turned it off after a minute and checked with cpufloat if the phone entered deep sleep when turning the screen off and it doesen't, rebooting fixes it.
[Xperia Z5 Compact Android Development] Spyop3:
After the reinstall, I confirm problem still there

I tried to investigate doesn't seem linked to a wrong wake_lock from what I can see with wakelock detector

I also send you in pm my logcat

If you need some other config or test just ask I can do
[Xperia Z5 Compact Android Development] Berni-0815:
[MENTION=2702055]Spyop3[/MENTION]
[MENTION=7835385]TheVan28[/MENTION]

You are right and I was wrong! I would like to apologize for that.

Bluetooth actually drains the battery faster than expected!

I have to investigate further. In the meantime, I ask everyone for useful advice on where to look.
[Xperia Z5 Compact Android Development] Spyop3:
No apologies needed really, you're helping us so much with your work :)

It's in fact good news, it means the problem is not device specific and you can reproduce.

As for reasons, I don't know if it's still fingerprint scanner linked in the logcat I saw nothing of the kind
[Xperia Z5 Compact Android Development] Berni-0815:
At first I had the impression that everything was going well for me and therefore I probably didn't take the reports too seriously.

Yes. At the moment I'm building a version with the original BT and WIFI drivers. On september 23th I've update to the latest drivers (Klick). Maybe that causes the issues?

I'll see later...
[Xperia Z5 Compact Android Development] Berni-0815:
Short answer: Broadcom BT is trash and there is no solution! I'm sorry.
[Xperia Z5 Compact Android Development] Max8719:
With the latest update the fingerprint works now like in lineage 14.1. :good:
[Xperia Z5 Compact Android Development] beflythis:
can't recall if reported or not, but video recording is not working in opencamera (black screen).
[Xperia Z5 Compact Android Development] Berni-0815:
Hmmm. Just tested it; works as expected: Taking pictures and recording videos with both cameras.

Sometime I think, there must be different hardware revisions of the same device. I have no other explanation...
[Xperia Z5 Compact Android Development] Spyop3:
Oh no that's a bummer :(

---------- Post added at 08:56 PM ---------- Previous post was at 08:54 PM ----------

Works also on my side just tested it. Maybe complete clean install will save you
[Xperia Z5 Compact Android Development] cdannebe:
power consumption

At first

many many thanks

to Berni-0815 for this great job. Here is my short history of flashing your ROM (2020-11-12).

Used LOS14.1 for several years and always I was looking for a newer version of Android

Installed TWRP 3.2.1 as suggested: success

Made Backups of my pictures, videos, system image, SMS, contacts, calendars etc. Just copied the pictures and videos, the rest I forgot to copy to my PC :mad:

installed the ROM and GAPPs (pico), wipe the caches (DALVIK etc.): success

reboot and set up the system: success

realize that the system crashed my SD-Card (lost my backups, except pictures and videos). Yes, it was my fault, I forgot to copy the backups to my PC: partial success

installed all the apps I need: success

surprised about the high power consumption. Before using your ROM, the battery life was about 2 days. Now I have about 16 hours from 100% to 1% and the device is always warm. I have installed a CPU frequency analyzer. From time to time one core increases the clock rate, but mostly all the others seem to sleep. The next thing is that the device feels much warmer than before when charging!

Maybe I am the only one who has this problem, but if not: Berni-0815 if you need more information or support, please ask. I don't know much about Android, but I can operate a console to some extent.

Any ideas regarding the last item?

Christian
[Xperia Z5 Compact Android Development] Berni-0815:
Then something went wrong! It's known that bluetooth causes higher battery consumption. But not in this way...
[Xperia Z5 Compact Android Development] vgerardo72:
Excelent Work!

Hi Berni, I wanted to thank you for the excellent work you did; I've been testing the rom for a couple of days and it works very well: GPS, Calls, Wifi, etc.

The only issue I detected is when I change the network type to LTE (4g), the connection is intermittent and lost. But in 3g it works without any problem.

Also, I wanted to ask you if is feasible to enable VolTE?
[Xperia Z5 Compact Android Development] 1ggn3:
I've posted something like this in the 15.1 thread around here and here. Bluetooth power is absolutely messed up, it wasn't like this with 14.1. But there must something else as well.

As expected, the difference in power consumption between "cpu in c state and idling" and "soc/cpu in deep sleep" is not that high. My current guess is that some random peripheral doesn't want to sleep, but I dont't know as well :confused:
[Xperia Z5 Compact Android Development] beflythis:
also reporting very high battery consumption noted for the first time last night; phone ate through ~50% over a few hours of what should have been deep sleep; woke up to 2%. That's the first time I've seen it that aggressively draining since using this build.
[Xperia Z5 Compact Android Development] 1ggn3:
I just did a fresh install, full wipe, and the device lost about 3-5 %/h in my limited test with radio and wifi on. Something is clearly wrong with your install.

Did you wipe /data? Sometimes you have to, sometimes not, when in doubt, clear it.

Have you enabled Bluetooth? It will continue to drain battery if it was enabled once, even if you turn it off. You need to reboot with bt off so it won't wake the cpu anymore.

Since your phone gets warm, it's not just waking up in background, but something seems to actively run. Maybe it's google that tries to update something and got stuck? Just a guess.
[Xperia Z5 Compact Android Development] Spyop3:
Just thought about that again, are you not using the same bluetooth driver than in stock ?

Cause there is no problem on them in stock

(More for my technical curiosity)
[Xperia Z5 Compact Android Development] cdannebe:
Hi Berni,

you mean reflash could solve the issue?

Greetings from Saxony ;), Christian
[Xperia Z5 Compact Android Development] Berni-0815:
Oh! That should not happen. I'll take a look into it asap.

No. VoLTE caused huge problems with radio itself. So we removed all of ims stuff (necessary for VoLTE)
[Xperia Z5 Compact Android Development] Berni-0815:
Sure!

I know. But the software that uses BT is not the same. We are not able to work around a buggy BT driver.
[Xperia Z5 Compact Android Development] Berni-0815:
Maybe, maybe not. Try it. And try to wipe /data
[Xperia Z5 Compact Android Development] Lexvox:
Great work! Thanks for keeping this phone running!

I've been using it as my daily driver and except for battery life (I changed it a few months back but not sure If the cell is any good) the rom runs quite well. Some wierd glitches here and there but nothing really that doesn't work.

I flashed pico gapps and the google integration is 8/10 witg most stuff working but just a handfull of niceties missing. Magisk works, Viper4Android works. I want to try the installation again with aroma gapps to see if it fixes those missing 'niceties'.

Also prolly a noob question but since this device now has android 10 it should support treble and thus gsi's? If so how hard would it be to get an equally stable build of Evo X together?

I really like the package Evo X offers and I would love to see it on thjs device.

If someone could lead me though it I might even give it a shot myself, although I have zero experience building roms.

All in all nice rom and keep up the good work. Thanks.
[Xperia Z5 Compact Android Development] kummeli:
I tried this ROM. Otherwise it worked well, but HDMI seems to have a serious but. Removing the cable or closing the display (TV) freezes the phone, requiring the 30 second power-key and volume-up reboot. So, it's back to 14.1, which works very well, and better with each update - it also has HDMI issues, but not anymore (thanks for that great version!)
[Xperia Z5 Compact Android Development] Berni-0815:
What are "gsi's" and what is "Evo X"?
[Xperia Z5 Compact Android Development] florstat:
Is there any plan to make this an official build now that camera is working? It would be great.
[Xperia Z5 Compact Android Development] Berni-0815:
There is not such a plan.