yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Sony user 16:
It is a feature that will highlight if an app uses much battery. Seems like it got added to the source code. You can read more here: www.addictivetips.com/android/battery-usage-alerts-in-android

Btw what screen on time do you get?
[Xperia Z5 Compact Android Development] :
I usually charge only to 80% and never drop under 20% (to preserve battery health)

I'm not an heavy user, i can do 6 hours easily (My record using old RR is 7 hours and 50) Edit: i apparently have a screenshot of LineageOS Berni with 9 hours of SoT and 12% left

i use wifi + airplane mode when i'm at home and that's what really saves battery, 5 Hours outside and i lose 40%, 10 hours inside with wifi and i lose only 20%

btw you should try installing the LKT magisk module and disabling big cores. The phone still runs very smooth by only using the efficient cores.

If you want another 15/20 minutes of SoT you need to make a custom kernel with undervolting and adreno idler for the rom
[Xperia Z5 Compact Android Development] brordavid:
Does lkt really works for you?

On my device it gets anything but smooth. At least after a day without a reboot.

Everything lags and scrolling is choppy.

Are you using the magisk module?

Edit: It's not on this rom, I'm using Bernis los14.1.
[Xperia Z5 Compact Android Development] :
I ran into the same problems after trying it a few times... But now... It's smoother than stock while using half the processing power.

You should try uninstalling any kernel manager app (Like kernel adiutor)

Magisk module with balanced settings btw
[Xperia Z5 Compact Android Development] brordavid:
Are you using aospext or los14.1?

The Bluetooth issue is the only thing holding me back from trying this rom. :)
[Xperia Z5 Compact Android Development] :
I'm using aosp extended. I never had to use bluetooth.
[Xperia Z5 Compact Android Development] :
Any info on this?

...Did you fix the issue this way?
[Xperia Z5 Compact Android Development] :
Pocket Detection feature confirmed working in latest build
[Xperia Z5 Compact Android Development] Sony user 16:
Nice to hear:)
[Xperia Z5 Compact Android Development] Sony user 16:
New update!

2019-06-10

Changelog:

-Updated all system security patches to 2019-06-05
[Xperia Z5 Compact Android Development] Sony user 16:
This does sadly not work:crying:
[Xperia Z5 Compact Android Development] N3G4T3:
As reported previously there's Bluetooth and Hotspot issues with the build, I also seem to be having some audio issues, such as, loudspeaker not being loud enough on calls, and not all of the audio going through the device connected by aux (notifications seem to go through phone speakers).

On a positive note though it's mostly functional, USB Tethering seems to work fine, and the ROM has fixed a lot of issues that I had with the stock Sony ROM (navigation bar unresponsiveness, fast battery drain, RAM usage, quiet phone calls, dim display, and overall system unresponsiveness).

Thanks for the time you're putting in.
[Xperia Z5 Compact Android Development] Sony user 16:
Nice to have more testers:)

I am going to look into the audio problem. But I don't have any experience within this area, so it might not get fixed:crying:
[Xperia Z5 Compact Android Development] Sony user 16:
New update!

2019-07-31

Change log:

-Updated all system security patches to 2019-07-05

-Added support for Kcal Advanced display driver
[Xperia Z5 Compact Android Development] :
Any chance of getting undervolting in the next version?

Amazing work :good:
[Xperia Z5 Compact Android Development] Sony user 16:
Maybe, I will try my best

Because I think it would improve the temperatures quite well.
[Xperia Z5 Compact Android Development] :
It definitely does. Coming from resurrection remix w/Undervolting i really miss that, heat is much worse in this rom. I remember getting -200mV of stable undervolting wich is huge.

I am thinking about buying an xz1 compact, this might change my decision
[Xperia Z5 Compact Android Development] username one:
Will there be support for Gapps?
[Xperia Z5 Compact Android Development] Sony user 16:
Gapps is fully supported, just download the open gapps zip file and flash it in TWRP.
[Xperia Z5 Compact Android Development] :
Are you still developing the rom?

Is kernel undervolting going to be available?
[Xperia Z5 Compact Android Development] Sony user 16:
Yea I'm still working on this rom:). A new update will be released when I got the September security patch in the build.

I've been trying to add the undervolting feature but with my lack of experience and time have I not been able to get it to work:crying:. I have looked at both Androplus kernel sources and green kernel, but with no success.
[Xperia Z5 Compact Android Development] :
Is it possible at least to add governors i/o schedulers and other stuff like adreno idler?

Or is it a painful process to modify the kernel?

Also, did berni try to help with bluethooth and other bugs?
[Xperia Z5 Compact Android Development] Sony user 16:
New update!

2019-09-11

Changelog:

-Updated all system security patches to 2019-09-05
[Xperia Z5 Compact Android Development] Sony user 16:
New update!

2019-10-08

Changelog:

-Implemented Voltage Control, Many thanks to mountaser halak and GreyLeshy ;)
[Xperia Z5 Compact Android Development] :
I can't believe it...

thanks, you are the best

Edit: how long was it tested? is it stable? do you have a voltage table to use?
[Xperia Z5 Compact Android Development] Sony user 16:
I have not been working with voltages on phones for a long time so I am still learning, but I tested with a -50 millivolts on the big cores for about half a day with no random reboots...

Btw this is the same Voltage Control feature as in the RR ROM and Green kernel.
[Xperia Z5 Compact Android Development] :
Undervolting is indeed working.

With big cluster disabled it took 4 minutes of stress testing (while charging) to reach 43C. Impressive.

I'm using Grey Leshys voltage table
[Xperia Z5 Compact Android Development] :
Is it possible to add Spectrum support? It would be very useful.

https://github.com/frap129/spectrum/blob/master/README.md
[Xperia Z5 Compact Android Development] Sony user 16:
I am sorry to say this but I think it takes too much time to setup the profiles(which I don't have)... But I may try it in the future.
[Xperia Z5 Compact Android Development] :
My bad, I thought profiles could be edited via the spectrum app without needing to be pre-programmed
[Xperia Z5 Compact Android Development] Sony user 16:
I'm not sure, but what I can see do I need to edit the profiles in the ramdisk... Here is an example from frap129 him self: https://github.com/frap129/angler/blob/dev/or/anykernel/ramdisk/init.spectrum.rc
[Xperia Z5 Compact Android Development] :
That doesen't look bad. It should work by changing write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor electron/relaxed to write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive.

The last four lines (adreno_idler ones) can be deleted since we don't have adreno idler (wich would be great to add btw, green kernel has it)

Also, is it possible to edit the file after the rom is built and installed? I have spent a lot of time changing kernel settings and i learned what most settings do.
[Xperia Z5 Compact Android Development] Sony user 16:
Yea I thought so too. But I don't know how it would react to other lines like write /sys/devices/system/cpu/cpu0/cpufreq/electron/hispeed_freq 960000. It may be device specific for frap129 device...

I am not an expert but from my experience no... You compile the source code to make a computer understand it. Afterwards all of the code is not text readable after the compiling:crying:
[Xperia Z5 Compact Android Development] :
You just need to change electron to interactive.

Angler is Nexus 6P, wich has the same SoC as z5 compact, all the frequencies you read (like 960000) are the exact same as our device. There is no reason it won't work, all those governor settings will work on any sd810 device. You can find them with kernel adiutor > cpu > governor settings.

I tried many governor profiles for nexus 6p with EX Kernel Manager and they all work as expected, everything matches. Spectrum does the same thing, but you can change profiles on the fly via quick settings wich is very helpful on such an inefficient device
[Xperia Z5 Compact Android Development] Sony user 16:
Okay, I will try:)
[Xperia Z5 Compact Android Development] Sony user 16:
New update!

Testing only!!!

The ROM file can be found in "Adreno Idler (Experimental)" folder in both mega and gdrive. Adreno Idler may work but I need more testing...

2019-10-17

Changelog:

-Implemented Adreno idler

-Updated all system security patches to 2019-10-05
[Xperia Z5 Compact Android Development] :
So we are porting the whole Green Kernel now? what's next? Overclocking? :good:
[Xperia Z5 Compact Android Development] :
Unfortunately Adreno Idler doesen't seem to be working, no matter wich settings i tried i couldn't get the gpu to run under 180 mhz
[Xperia Z5 Compact Android Development] Sony user 16:
But that's not what Adreno Idler should do right?

Adreno Idler only calculates the load and uses the lowes frequency more often than msm-adreno-tz. It's not an underclock.

And the lowest available frequency is 180 mhz.

Or am I wrong:confused:
[Xperia Z5 Compact Android Development] :
The gpu will stay at 180 even without adreno idler.

What adreno idler does is bringing the gpu down to 27 Mhz when idling, wich isn't working here.

So yes, it is an underclock.
[Xperia Z5 Compact Android Development] Sony user 16:
Ok,

Then I misunderstood...

I am sorry to say this but I have no idea (right now) how to fix this problem:(
[Xperia Z5 Compact Android Development] Sony user 16:
Sorry for the inconvinience, but here comes a quick fix. It is working on my z5c and ramps the frequency down to 27 mhz:)

Still in testing tho...

You find it in the same folder, build date is: 2019-10-21
[Xperia Z5 Compact Android Development] :
Can confirm Idler is working :good:
[Xperia Z5 Compact Android Development] :
Edit: Adreno idler isn't really working, it's more like somehow you added the 27 mhz frequency as a selectable one (this didn't happen with green kernel on stock rom and also, how did you do that? can selectable frequencies be added to cpu as well?)

The result is that the gpu will run at 27 mhz but only rarely (at least on my device)

One way of making it work is by setting GPU initial frequency to 27 mhz with ex kernel manager (or other apps that have this, kernel adiutor doesen't), maybe you can make that as default setting to fix?
[Xperia Z5 Compact Android Development] Sony user 16:
I will try too make 27 MHz the default:)

For me, the GPU goes down to 27 MHz when I do something small demanding like scrolling. But when I don't touch the screen it goes back to 180 MHz is it the same for you?
[Xperia Z5 Compact Android Development] :
Yes, and it should do the opposite.

Btw is it possible to add Green Kernel's overclocking? It's very useful to make the performance of the more efficient cores better (i completely disable the A57 cores since they turn the phone into a furnace)
[Xperia Z5 Compact Android Development] Sony user 16:
I don't know, I will look at the process of adding the feature...

But it's not really what I created the ROM for. I created the ROM for battery life and frequent security updates:)
[Xperia Z5 Compact Android Development] :
Battery life isn't great for me, how many hours of usage are you getting? Can you attach battery stats? At this point it might just be that my battery is getting old

Great job btw, thanks for everything :svetius:
[Xperia Z5 Compact Android Development] Sony user 16:
I am not using my z5c as my daily driver. So my stats may not be correct. Right now I don't got any more stats than that it draws about 10.25%/h screen on and 0.55 screen off. I don't know if this is good or not but it's actually much better than my op6:)
[Xperia Z5 Compact Android Development] :
How long ago did you buy it?

Does it get warm with usage?

i get probably 25%/h, and that's with big cores disabled and every trick i know to save battery
[Xperia Z5 Compact Android Development] Sony user 16:
I think I bought it in December 2015. But I don't charge it over 85% and I aim to never get bellow 20%.

With my light usage and Under volt, thermal throttling, under clock, and an aggressive adreno idler + big cores turned of. It never gets above 41 degrees and most of the time stays stable at 32 degrees. Of cores GPS NFC and other features that drains battery are turned of.

Edit:

I use 10% brightness:)
[Xperia Z5 Compact Android Development] Sony user 16:
New update!

2019-11-10

Changelog:

-Changed default GPU freq to 27Mhz (For Adreno Idler)
[Xperia Z5 Compact Android Development] beflythis:
Awesome ROM. I check back here every few months for ROM updates / new ROMs and yours was a pleasant surprise! Using last 24 hrs with no bugs except Bluetooth (would love ot see you prioritize that fix). Clean, fast, great battery life. Great compatibility with Magisk and substratum with no issues. A+ all around.

And happy to see you rolling out forward security updates, too. Well done and thanks for all the work!!!
[Xperia Z5 Compact Android Development] beflythis:
Only frequent / annoying bug I am getting (didn't see listed) was an issue with mobile data not properly reconnecting / engaging after leaving WiFi. No amount of enabling/disabling mobile data will trigger it. Phone has to be airplane mode and off, then restarted (to avoid bluetooth crash bug).
[Xperia Z5 Compact Android Development] Sony user 16:
I don't have a sim card in my z5c right now... But I will test it as soon as I get one. And then I will try to fix the problem:)

Just don't get your hopes up because I might not be able to fix it.
[Xperia Z5 Compact Android Development] :
i can't replicate this issue. lte enables as soon as i turn off wifi

By "leaving wifi" do you mean getting out of the wifi range so it disconnects or just disabling wifi?

Also turning airplane mode off doesen't enable bluetooth for me
[Xperia Z5 Compact Android Development] beflythis:
I'm technically data roaming as i have a US phone package in Canada.... not sure if that changes the reproduction ability?

Leaving Wifi - turning off or going out of range. Neither will enable phone data. If I have Wifi off and reboot the phone, no phone data. Literally the only way to enable it is to toggle airplane mode off/on which then feeds me the repetitive bluetooth bug.

What are the odds of getting bluetooth operable in this ROM? Not having calls in car is a pretty big daily use deterrent. Otherwise it's perfect.
[Xperia Z5 Compact Android Development] Sony user 16:
I'm not using the z5c as my daily driver so now when I will travel outside my country on holiday, do I not take it with me... Thus am I not going to be able to test the roaming issue. But you can try turning the roaming toggle off/on.

The Bluetooth issue is something neither I or berni knows how to solve right now. But I am working on it. The odds = low:(

Thanks:)
[Xperia Z5 Compact Android Development] Sony user 16:
New version coming out soon...

I've had some technical problems but now I'm up and building again;)

I am also going to change account for personal reasons. My new account will be DevelLevel
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-02-24

Changelog:

-security patches updated to 2020-02-05, Thx [MENTION=7749536]Berni-0815[/MENTION]

-general AEX updates

I have also managed to get on step closer to getting bluetooth to work. Tho the only noticeable user experience is that "Bluetooth Share has stopped" dialogue appears less frequent and it is a longer delay after you press on the bluetooth switch... Of course this only happens if you try to enable bluetooth.

Sources are now linked in the first post:)
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-02-29

Changelog:

-Implemented spectrum profiles (experimental)

ROM file can be found in "Spectrum (experimental)" folder in both mega and drive.
[Xperia Z5 Compact Android Development] :
I am facing very low screen brightness with this build, at maximum it's just enough for indoor usage, and auto brightness is very dim aswell.
[Xperia Z5 Compact Android Development] DevelLevel:
Interesting...

This has to be related to spectrum. Because I have not changed anything else.

Have you tried to switch profile?

try with performance.

---------- Post added at 01:55 PM ---------- Previous post was at 01:33 PM ----------

The init.spectrum.rc file only has one line (to every profile) affecting brightness, which is

write /sys/class/leds/lcd-backlight/max_brightness 255

and only the battery profile is limited to a backlight brightness of 100. All the other profiles are at max (255).
[Xperia Z5 Compact Android Development] :
Yes, i tried every profile. Now i installed the non-spectrum build and everything works normally
[Xperia Z5 Compact Android Development] DevelLevel:
Okay,

I think I've found a fix. Simply removing the backlight related line... Build coming out later today day:)

Thx for reporting the issue.
[Xperia Z5 Compact Android Development] :
You didn't program any profile right?

and the init.spectrum.rc can't be accessed after the rom is built?
[Xperia Z5 Compact Android Development] DevelLevel:
No I used Frap129 files for the angler.

Unfortunately do I not think it is possible to edit the file because of the way / is mounted in android. I've tested but with no success. The file is located at /init.spectrum.rc
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-03-01

Changelog:

-spectrum brightness fix

ROM file can be found in "Spectrum (experimental)" folder in both mega and drive.
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-03-26

Changelog:

-No major changes, I've only upstreamed some patches from lineage os sources.

Rom file can be found as usual

I've also managed to get bluetooth working on this rom:), but it's in BETA stage. To make bluetooth work I had to change many files in the android source and I am using the STOCK AOSP sony device trees slightly modified. The stock sony kernel is also used. This rom is UNTESTED but I know that bluetooth does work with speakers. But unfortunately does the internal speakers on the phone not work. I appreciate further reports like if calling/messaging is working. (sound will not work if you don't use a bluetooth device)

The bluetooth working rom file can be found in "Beta (bt)" folder in both mega and Gdrive
[Xperia Z5 Compact Android Development] CYC1711:
Beta (bt) version cannot detect my sim card
[Xperia Z5 Compact Android Development] DevelLevel:
Oh,

Well that's not good. I think it's because of the change in device tree. I am working on a new build with the Lineage device trees but to make bluetooth work I have to change a lot of things in the kernel.

Thx for the info:good:
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-05-15

Changelog:

-security patches updated to 2020-04-05
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-06-13

Changelog:

-Security patches updated to 2020-05-05

-Implemented "zen" and "fifo" i/o schedulers, credits to [MENTION=8041676]GreyLeshy[/MENTION]
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-06-15

-Implemented "Chill" and "BioShock" governors, credits to [MENTION=8041676]GreyLeshy[/MENTION]

Other:

-New TWRP 3.4.0-0 can be found under "Installation:" section

-New AEX kernel compiled with Linaro toolchain 6.5.0 (ROM comes with 4.9.x) can be found where TWRP are found

!! Note !!

You need flash a kernel or ROM after you flash TWRP
[Xperia Z5 Compact Android Development] Sony user 16:
New update!

2020-07-07

Changelog:

-Security patches updated to 2020-06-05
[Xperia Z5 Compact Android Development] mrrocketdog:
[MENTION=8694857]Sony user 16[/MENTION] , DLing now. thank you for the update.:good:

dave
[Xperia Z5 Compact Android Development] mrrocketdog:
ok. finally got flashed and set up. very nice. one small issue is that my data connection is always showing "H" instead of LTE. anyone know what i am doing wrong or a fix?

hep is appreciated. :)
[Xperia Z5 Compact Android Development] Murtie:
Hi,

I am new to the z5 compact e5803.

I plan to flash it but don't know which rom has the best battery performance.

How is ROM] [7.0] [Stock] [. 33] [3.7 b7] [Deodex] [DeBloat] [Font] [Stereo] [Vulkan ™] Xperia compared to v4.6 aospextended?
[Xperia Z5 Compact Android Development] LzBz:
Check if your "preferred network type" is actually set to LTE.
[Xperia Z5 Compact Android Development] DevelLevel:
Hello,

I have not tried "[ROM][7.0][Stock][.33][3.7 b7][Deodex][DeBloat][Font][Stereo][Vulkan™] Xperia Loop™" so I can not say anything about it. But the biggest difference which you can tell right away is that it has not been updated in a while, which means it does have an older security patch. It is based on stock ROM which means that you can expect some similar results battery wise as stock (most likely a bit better because of the debloat, custom kernel and more). AEX, on the other hand, has a later security patch and is based on pure stock AOSP. Be aware that Bluetooth does not work on AEX.

The only thing you really can do is to try out the ROMs your self, use it for a day and compare the battery life. Or see if someone else has tried the different ROMs.

Regards,

DevelLevel
[Xperia Z5 Compact Android Development] Murtie:
Ok
[Xperia Z5 Compact Android Development] DevelLevel:
A user requested me to implement Boeffla wakelock blocker into the kernel, so here comes a test build before I include it with the ROM.

Compiled with Linaro toolchain-4.9.

The kernel zip file can be found in the "Kernel" folder in both Mega and Gdrive.
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

2020-08-02

Changelog:

-Safetynet passing, credits to Didgeridoohan on Github and his MagiskHidePropsConf module

-Kernel version updated to 3.10.89, credits to TARKZiM on Github

-Implemented boeffla wakelock blocker
[Xperia Z5 Compact Android Development] :
This happens sometimes when wiping and flashing a new rom, it's not the roms fault.

You have to flash the device back to stock with flashtool and then reinstall the rom.

Btw, which app do you use for boeffla wakelock blocker? i couldn't find any and didn't bother to ask here.
[Xperia Z5 Compact Android Development] :
working for me using gapps, probably an issue with your microg installation
[Xperia Z5 Compact Android Development] DevelLevel:
I will see what I can do about wakelocks and the intelli driver...

But I think that core control (disabling cores) does work, at least with FKM and kernel adiutor.

I don't have much time for android development right now, but i will release a new update soon.
[Xperia Z5 Compact Android Development] DevelLevel:
New update!

Changelog:

-Security patches updated to 2020-10-05

-Boeffla wakelock blocker [LENGTH_LIST_WL] patch, thanks to djb77, also credits to NetRoot for the idea

---------- Post added at 11:45 PM ---------- Previous post was at 11:39 PM ----------

Well done!

But maybe you should post this in a thread of your own (this is a separate project):)
[Xperia Z5 Compact Android Development] AlexanderDX:
Hola soy nuevo y tengo tres sony xperia z5 compact que gal es esta rom y si me ayudan a intalarlo muchas gracias.

Me enctan en sony z5 compact