Commit Graph
14331 Commits
Author SHA1 Message Date
Martin.JM a79468f514 Huawei: Batch inserting sleep data to database 2025-08-17 11:25:29 +02:00
Martin.JM 711e896c11 Huawei: Batch inserting step data to database 2025-08-17 11:25:29 +02:00
Martin.JM 7d66385afb HuaweiTLV: Use format strings 2025-08-17 11:25:29 +02:00
a0z b0721f1de8 Design: update values text color across fragments it improve visibility 2025-08-17 10:24:29 +02:00
José Rebelo 67f016d902 Garmin: Add percentage to progress notification 2025-08-16 14:32:37 +01:00
a0zandJosé Rebelo 13a7e8ebb2 Sleep fragment: add sleep score details, refactor fragment, improve design 2025-08-16 15:22:52 +02:00
José RebeloandJosé Rebelo e59ea27051 Refactor workout details 2025-08-16 15:19:38 +02:00
Me7c7 f76d64b20d Huawei: Changed the sleep prefs and enabled sleep breathing awareness configuration
Sleep breathing awareness can be enabled for some devices.
Information is currently not retrieved from the watch.
2025-08-16 14:54:36 +03:00
dependency-botandJosé Rebelo 878018f412 Update dependency androidx.core:core-ktx to v1.17.0 2025-08-16 12:49:47 +02:00
dependency-bot 8d492333d8 Update protobuf to v4.32.0 2025-08-16 10:41:59 +00:00
dependency-botandJosé Rebelo ddd877c9fb Update dependency org.mockito:mockito-core to v5.19.0 2025-08-16 12:39:31 +02:00
dependency-botandJosé Rebelo a0f55c77b5 Update kotlin monorepo to v2.2.10 2025-08-16 12:09:34 +02:00
dependency-bot 1b2ce0199c Update dependency androidx.fragment:fragment-ktx to v1.8.9 2025-08-16 01:03:11 +00:00
Martin.JM 13a26af518 Sync fixes
- Give stress its own sync flag
- Fix inverted logic for isSyncActive
- Add more info to logs
2025-08-15 22:10:03 +02:00
Martin.JM e34f635943 Fix TOCTOU 2025-08-15 22:10:03 +02:00
Martin.JM 18651a08e7 WIP: Huawei: Diving sync fixes 2025-08-15 22:10:03 +02:00
José Rebelo 4a0a437d7f Amazfit Active: Fix firmware recognition 2025-08-15 21:00:20 +01:00
José Rebelo 5d87eec63d Prevent LOG reuse from AbstractPreferenceFragment 2025-08-15 19:52:14 +01:00
José RebeloandJosé Rebelo 2ecc845a74 Introduce automatic zip export 2025-08-15 20:35:01 +02:00
Me7c7 c45374fd12 Huawei: code cleanup and refactoring 2025-08-15 11:51:04 +03:00
Thomas KuehneandJosé Rebelo 78b78de8e6 delete export files when deleting a device (#5216) 2025-08-14 23:08:14 +02:00
José Rebelo 17dcb95963 Backup and restore file modification times 2025-08-14 21:38:15 +01:00
José Rebelo c1554762f7 Fetch weather from singleton instance
As a follow-up to #5239, avoid moving around a huge amount of data
through intents.
2025-08-14 18:25:12 +01:00
Me7c7andJosé Rebelo 3db92e7711 Charts: additional sleep chart with sleep stages 2025-08-14 18:57:51 +02:00
Thomas Kuehne 3b5ea9bf7f weather: try to reduce risk of TransactionTooLargeException 2025-08-14 09:49:32 +02:00
Thomas Kuehne 21a272cd74 weather: add compressed WeatherGz support to ACTION_GENERIC_WEATHER (#5239)
When receiving the broad cast action `nodomain.freeyourgadget.gadgetbridge.ACTION_GENERIC_WEATHER`

Try to decode bundle extra `WeatherGz` (ByteArray containing GZiped UTF-8 encoded JSON array of weather specifications) first.
If not present fall back to bundle extras `WeatherJson`  (String containing one JSON weather specification) and optional `WeatherSecondaryJson` (String containing JSON array of weather specifications).
2025-08-14 08:35:03 +02:00
José Rebelo 7fe1066be1 Improve clarity on zip export/import error 2025-08-13 23:26:44 +01:00
José Rebelo 4b2fab61a8 Fix OOM crash when exporting large database (#5238) 2025-08-13 22:52:12 +01:00
José Rebelo 263c9137a7 Amazfit Active: Fix firmware recognition 2025-08-12 22:02:00 +01:00
Thomas Kuehne 32204ce606 debug: enable sharing an existing log file even if file logging is currently disabled (#4659) 2025-08-12 21:12:36 +02:00
Me7c7 3f538f15f8 Huawei: fix emphemeris uploading 2025-08-12 18:11:52 +03:00
José Rebelo a44c9036b2 Fix settings activities padding 2025-08-12 14:53:06 +01:00
José Rebelo 71606f1430 Use File.separator to build paths 2025-08-12 12:17:53 +01:00
José Rebelo 2339242c33 Garmin: Fix activity fetch getting stuck on error
If fetch unknown files was enabled, an INDEX_UNKNOWN might sometimes be
received for some of the files, which would make the activity fetch get
stuck as we do not check the isDownloading() state anymore.
2025-08-12 11:01:32 +01:00
Thomas Kuehne 00d3e9b23d implement getAllDeviceDao to enable device specific database exports (#5230) 2025-08-12 11:43:07 +02:00
José Rebelo 2c362412ea Garmin: Ignore empty monitor samples 2025-08-11 21:58:49 +01:00
José Rebelo 3edbb30a0c Garmin: Fix copy of manually imported files 2025-08-11 21:57:00 +01:00
José Rebelo 3d88f0322c Fix training load support on charts 2025-08-11 21:32:08 +01:00
José RebeloandJosé Rebelo 7f20bf698b Garmin: New sync protocol (experimental) 2025-08-11 22:06:05 +02:00
Thomas KuehneandJosé Rebelo 111b705963 add missing @Override annotations 2025-08-11 21:41:25 +02:00
José Rebelo a4fe2bbd4d Polar H9: Initial support 2025-08-11 19:22:14 +01:00
José Rebelo 28fb5732a6 Remove redundant "Activity" group in activity details 2025-08-11 19:12:16 +01:00
José Rebelo 221add17f1 Garmin: Relabel total ascent / descent 2025-08-11 19:11:37 +01:00
Daniele Gobbetti cfaedb1eba Garmin: fix usage of spurious static variable 2025-08-11 15:04:35 +02:00
José Rebelo eef224ca4e Garmin: Set alarms from phone 2025-08-10 23:16:09 +01:00
jrthomas270andJosé Rebelo d6daab8d0d Even Realites G1: Support Notifications and improve disconnections
This change helps improve the connection experience when GadgetBridge is
working as a background task. The glasses must be send a heartbeat
packet every 32 seconds, otherwise they will disconnect. When
GadgetBridge is running in the background there is a 15-20 second delay
between the background handler waking up. This means that when the wake
up time is sceduled for 30 seconds, it often won't be woken up for 45-50
seconds leading to almost immediate disconnect after the user turns off
the screen. The official app gets around this by using a 5 second delay
leading to ~25 seconds of delay in sleep mode, but this over sends when
the phone is awake. Instead of doing that, I maintain the 28 second
delay but I change the background thread to a higher priority so that it
more consistently wakes up within th 32 second BLE limit.

Also added support for Notifications being sent to the glasses.
2025-08-10 22:34:56 +02:00
José RebeloandJosé Rebelo 67613a321c Garmin: Fix activity samples off by 1 minute 2025-08-10 21:11:40 +02:00
José Rebelo 2672295dfc Add ProtobufExtensions 2025-08-10 20:10:28 +01:00
Thomas Kuehne bb710bae92 fix: BatteryInfoProfile complaining about unexpected characteristics 2025-08-10 18:16:58 +02:00
José Rebelo 1bce5ce6cf Revert com.android.tools.build:gradle to v8.11.1
AGP 8.12.0 does not work on F-Droid build servers, as per
https://gitlab.com/fdroid/admin/-/issues/593

This reverts commit cf56c7b9aa.
2025-08-10 12:31:39 +01:00