1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-03 02:06:21 +02:00
Gadgetbridge/app/src/main
MrYoranimo b902ee96c3 Xiaomi: improve battery level and charger status processing
Because the reporting of battery state is inconsistent between different
models, the device's battery state was not correctly processed in GB.

For at least the firmware on the Xiaomi Watch S1 Active, the charger
state is broadcast through a separate message from the message
containing the battery level. Even though the battery level was
requested by GB upon receiving this broadcast, the charger state got
discarded as it was expected to also be included in the result of the
subsequent request.

This patch changes the name of the `Charger` message to `DeviceState`
and includes more fields that may be presented by some device models.
Furthemore, the broadcast is cached so that the charger state can be
processed from this cache instead of the battery level response message.
2023-12-06 11:56:13 +01:00
..
aidl OsmAnd: Replace IOsmAndAidlInterface unneeded functions 2023-05-21 22:50:52 +02:00
assets Fossil/Skagen Hybrids: Update navigationApp to version 1.0 2023-11-02 16:33:21 +01:00
java Xiaomi: improve battery level and charger status processing 2023-12-06 11:56:13 +01:00
proto Xiaomi: improve battery level and charger status processing 2023-12-06 11:56:13 +01:00
res Xiaomi: Use display items labels from watch 2023-12-05 18:20:02 +00:00
AndroidManifest.xml Remove scanning intensity preference and legacy discovery activity 2023-10-06 22:16:58 +01:00
lint.xml Lint: Ignore missing and extra translations 2023-10-08 21:46:37 +01:00
project.properties