battery log

Rating: 
5
Your rating: None Average: 5 (2 votes)

It's a simple fix/recompile for a batterylog by Lucas Fraser to fix reporting energy readings broken in the app on sailfish 4+

original git: https://github.com/zeburon/sailfish-batterylog

my fork with fixes: https://github.com/mankysee/sailfish-batterylog/tree/release

Screenshots: 
Application versions: 
AttachmentSizeDate
File harbour-batterylog-1.3.3-1.aarch64.rpm125.4 KB11/12/2023 - 03:31
File harbour-batterylog-1.3.3-1.armv7hl.rpm123.66 KB11/12/2023 - 03:31
File harbour-batterylog-1.3.3-2.aarch64.rpm125.45 KB16/12/2023 - 15:28
File harbour-batterylog-1.3.3-2.armv7hl.rpm123.69 KB16/12/2023 - 15:28
Changelog: 

1.3.3

  • Fixed broken energy reporting in sailfish 4
  • added new permissions(actually removed unnecessary prompts about those)
  • new option for log storage duration for 10000 days
  • new option to display last 15 days

Comments

shults's picture

On Xperia 10iii it does not start.

mksfrank's picture

Have you tried both versions, -1 and -2? It can be down to some permissions misconfigure. Though I have no arm64 device to check the app anyway so without some debug information I don't think I can help in any way sadly.

Markkyboy's picture

Pretty simple to remedy (I believe), have a look here; https://github.com/sailfishos/sailjail-permissions there is an example of how a desktop file should look.

mksfrank's picture

thanks! I'll look into it!

ninepine's picture

I'm not clear why this App needs such extensive access permissions to run:

Access Microphone, Bluetooth, Camera, Internet, Location, Media Index, NFC, Play and record audio, Removable media, User directories, Web content.

Are these actually necessary please?

mksfrank's picture

tldr: I don't know :(

As far as my understanding goes this is because of permision system that was introduced in sailfish 4 but wasn't in place when the app was developed(it's last release was back in 2016) and therefore the app don't even know about permissions at all.

I don't have any expirience with sailfish development to be honest and all I've done is changed one file that was responsible for power readings and recompile the program using official guide. So in essence no, almost all of the permissions the program is asking are not required at all.

I can look into the whole permission thing and maybe it's something that I can address but no promises because of my lack of knowledge and to be frankly time :)

I will make sources available this week though so anyone can check the code and see for himself is it secure enough(and maybe I even got some luck and my fixes will be merged into the main program itself).