José Rebelo
a32b756972
Revert "Sony LinkBuds S: Initial support"
...
This reverts commit f2aaf5aecf
.
It looks like the protocol changed, as per the comments in !2990
2022-12-09 21:27:49 +00:00
José Rebelo
21f217b698
Zepp OS: Fix notification icons for work profile apps
2022-12-08 18:14:07 +00:00
José Rebelo
f2aaf5aecf
Sony LinkBuds S: Initial support
2022-12-07 20:14:33 +00:00
José Rebelo
07194cd8fb
Amazfit GTS 4 Mini: Initial support
2022-12-03 13:27:48 +00:00
José Rebelo
be900f13d8
Zepp OS: Fix NPE when no weather data is available
2022-12-02 21:13:25 +00:00
Daniele Gobbetti
5d6109a4fb
No functional changes, only run "Reformat code"
2022-11-27 19:02:52 +01:00
Daniele Gobbetti
7f24ba8ffb
Drastic rewrite of discovery activity.
...
- get rid of pre-lollipop BLE discovery (nowadays we support only lollipop and above) and related preference
- get rid of the sequenced BT-then-BLE-scan that wasn't working reliably anyway and was causing a recursion
- add a caching layer for already processed devices (the same device is found multiple times during discovery)
- add a caching layer for device name in GBDeviceCandidate (many coordinators will ask for it, and it's a very expensive operation)
2022-11-27 18:59:22 +01:00
José Rebelo
5d78b778e3
Zepp OS: Fix app and watchface install
...
Fix the regression introduced by 1c93ffc3e
2022-11-25 21:42:47 +00:00
TaaviE
091fd07c7b
Fixed PineTime WeatherSpec handling
2022-11-22 07:01:39 +00:00
José Rebelo
1c93ffc3e5
Amazfit GTR 4: Fix and whitelist firmware 3.17.0.2
2022-11-22 07:00:41 +00:00
José Rebelo
6c94ecce2e
Zepp OS: Fix automatic default values for byte list preferences
2022-11-12 20:32:38 +00:00
gsbhat
5e6480ad19
GTR2 Activate display upon lift only working when scheduled #2252
2022-11-12 22:22:17 +05:30
José Rebelo
8f3ed69ea7
Amazfit GTS 4: Initial support
2022-11-09 17:29:46 +01:00
José Rebelo
2a47dc863a
Huami: Allow activity fetch timestamps to be sent in seconds
2022-11-07 19:37:28 +01:00
narektor
2216b6b76a
Galaxy Buds2 support ( #2853 )
...
Mostly copied from the Buds Pro as those earbuds have a similar feature set and mostly the same protocol.
Co-authored-by: narektor <narektor@noreply.codeberg.org>
Co-committed-by: narektor <narektor@noreply.codeberg.org>
2022-11-07 19:34:41 +01:00
José Rebelo
164c5e52a4
Zepp OS: Add World Clocks
2022-11-07 10:31:41 +01:00
MPeter
4c14dd5f72
fix indentation
2022-11-05 11:26:24 +01:00
MPeter
15803eedea
Add a few more comments
2022-11-04 19:17:54 +01:00
MPeter
a0782d318b
fix bug where reading files of ZIP archive out of order would not make them available
2022-11-04 19:17:54 +01:00
MPeter
ffcb67636e
remove unused variable
...
forgot to include in previous commit
2022-11-04 19:17:53 +01:00
MPeter
db37222171
temporarily fix version identification
2022-11-04 19:17:52 +01:00
MPeter
96f87cf913
persist metadata in class, move validity check to isValid() function
2022-11-04 19:17:52 +01:00
MPeter
c7841b4947
use ZipFile utility for reading the ZIP file instead of custom logic
...
merge conflict fix
2022-11-04 19:17:32 +01:00
MPeter
56d087da2f
allow ZipFile to accept InputStreams
2022-11-04 19:12:59 +01:00
MPeter
e7bd1620fe
Huami2021FirmwareInfo: use ZipFile functions where possible, separate firmware type handling to different functions for readability.
...
merge conflict fix
2022-11-04 19:12:53 +01:00
MPeter
81ef7698f6
ZIP utility class overhaul
2022-11-04 19:09:04 +01:00
MPeter
ee7b76517a
refactor zip utility functions
2022-11-04 19:09:04 +01:00
MPeter
ce18a5a6f8
moved ZIP file handling functions to a utility class
...
merge conflict fix
2022-11-04 19:04:58 +01:00
José Rebelo
01b457895a
Amazfit Band 7: Initial support
2022-10-31 12:04:18 +00:00
José Rebelo
fffb1462c7
Zepp OS: Fix notification icon for SMS
2022-10-31 12:01:45 +00:00
Hasan Ammar
ef50599179
Skagen Gen 6 Hybrid HR: Add support for 38mm watches.
...
Tested against https://www.watchstation.com/en-ca/products/jorn-38mm-gen-6-hybrid-smartwatch---silver-stainless-steel-mesh/SKT3301.html
2022-10-30 22:00:14 +01:00
José Rebelo
3a72a11e17
Debug Activity: Add confirmation dialog before removing device preferences
2022-10-30 09:37:42 +00:00
José Rebelo
f7074c327d
Huami 2021: Add missing cast to chunked type
...
Missed this file in the last commit.
2022-10-29 18:44:15 +01:00
José Rebelo
003dd6ce32
Allow media notifications to bypass app list
2022-10-29 15:20:03 +02:00
José Rebelo
cd59511aad
Zepp OS: Refactor config, fix health on GTR 3 and GTS 3
...
The config refactor in addf7ff6a
broke health settings on GTR3 and GTS3
- GTS 3 and GTR 3 health configs use protocol v1. The only difference
seems to be that the steps goal is a SHORT instead of an INT.
- It needs a refactoring from the ground up to better handle different
versions, but this is enough to get the GTR 3 and GTS 3 working.
2022-10-29 14:17:40 +01:00
José Rebelo
6cc3579e9c
Zepp OS: Refactor file upload, fix notification icons > 56x56px
...
- File uploads are split in chunks, with the size dictated by the
watches. There seem to be 2 protocol versions, without any noticeable
differences
- Extract the file upload logic to a standalone class. This makes it
easier to keep track of concurrent requests, each of which have their
own session id
- Icons larger than 8KB will end up split in multiple chunks - we now
handle that correctly
- Notification icons are also requested in 2 different formats, but
the actual encoding seems to be the same, with only a different id
2022-10-28 23:37:22 +01:00
José Rebelo
bc2d5aa16d
Zepp OS: Change default fetch operation time unit resolution to minutes
...
Reverts the default behavior introduced by 1335f0bd8
since it was
causing issues on the GTR 3, but keeps it optional as a developer
option.
2022-10-27 23:51:02 +01:00
José Rebelo
08a41f655c
Zepp OS: Map strength training, basketball and cricket activity types
2022-10-23 20:46:14 +01:00
José Rebelo
9c82180930
Zepp OS: Do not change GATT Callback unless explicitely set
2022-10-23 10:11:23 +01:00
José Rebelo
addf7ff6a6
Amazfit GTR 4: Initial support
2022-10-22 22:03:49 +02:00
José Rebelo
e2d9a927d9
Sony Headphones: Fix pause when taken off
2022-10-22 13:23:13 +01:00
José Rebelo
8fdfbfa97c
Sony WF-1000XM4: Initial support
2022-10-22 13:14:50 +01:00
José Rebelo
d4ba532b11
Sony Headphones: Refactor V1 protocol to simplify V2 implementation
2022-10-22 11:14:23 +01:00
José Rebelo
1dca054853
Sony WH-1000XM2: Initial support
2022-10-20 23:48:02 +01:00
José Rebelo
2c182418fe
Sony Headphones: Fix setting surround mode
2022-10-20 23:47:17 +01:00
Gordon Williams
55cbac5f8f
Squashing some build warnings. Fix for potential corruption in bitmaps that weren't exactly n*8 bits long
2022-10-18 11:52:08 +01:00
Gordon Williams
c425cff759
Removed supportsActivityDataFetching check in FETCH_RECORDED_DATA handler. This
...
fixes a regression for Bangle.js where 'Debug -> Fetch Debug Logs' wasn't working because
it didn't support activity data fetching.
see https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2526#issuecomment-648446
2022-10-18 08:25:14 +01:00
Arjan Schrijver
c547a33724
Fossil/Skagen Hybrids: Update known watch app versions
2022-10-17 21:42:42 +02:00
Arjan Schrijver
50aee4c235
Skagen Hybrids: Allow firmware installation
2022-10-17 21:42:16 +02:00
José Rebelo
1335f0bd86
Zepp OS: Fix fetching workouts shorter than 1 minute
...
Since GB would always round down the time precision to the minute,
workouts shorter than 1 minute would be fetched over and over again.
2022-10-16 22:08:13 +01:00