Closed direc85 closed 3 years ago
Work started in #40
@nephros tested the file with Xperia X10, I tested it with Xperia XA2 (Ultra) - ticked two boxes more.
@nephros tested the file with Xperia X10, I tested it with Xperia XA2 (Ultra) - ticked two boxes more.
Nice! I develop on Xperia 10, so that should usually work. I can also test on Gemini, but as that doesn't have the charge control feature AFAIK that's of little use.
possibility to check box number 3 in #43
Just leaving a note here so I don't forget:
On Xperia10 there is /sys/class/power_supply/bms (Battery Management/Monitoring System??), which has these:
temp_cold
temp_cool
temp_hot
temp_warm
Which seem to set the thresholds for the "health" reporting. Could be used (they are writable), but I'm not sure it's smart to expose them to users.
Anyway, they do help with testing the health alert :)
It really is not a good idea to let users set the tresholds, but nice to know those exist :)
The health and temperature files fortunately are in the same location across my devices (Jolla, X, XA2) and X10, too! Release gets closer and closer :)
The bad news is that Notification.setSound
doesn't exist in only in SFOS 4.0 and later, so I'll have to create a separate branch for the older releases. I'm considering SFOS 3.0, because I just can't get the app sdk installing SFOS 2.2 build engine any more...
Well, I ended up using defines and conditional compiling to reach that goal. I decided to use the legacy code path for SFOS 4 releases, too, since it still works fine (although I still feel it's a bit of a hack...)
Released in commit 1dd00da
Verify functionality on different devices: