1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-04 20:12:27 +02:00
Commit Graph

57 Commits

Author SHA1 Message Date
Sebastian Krey
2bf4f14b98 New Amazfit GTS 2 Mini activity Outdoor Trekking/Hiking (#2528)
New Huami Amazfit GTS 2 Mini activity for Outdoor Trekking/Hiking.

Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2528
Co-authored-by: Sebastian Krey <skrey@noreply.codeberg.org>
Co-committed-by: Sebastian Krey <skrey@noreply.codeberg.org>
2021-12-28 13:46:17 +01:00
Andreas Shimokawa
e1b04f6a5c Huami: support old version of new chunked protocol used on Amazfit Bip U at least
This is used for setting world clock and setting canned messages for call rejection.
This PR implements setting the canned messages, but unfortunately the feature is somehow not "unlocked"
2021-12-23 18:06:58 +01:00
Andreas Shimokawa
eb8284f079 Mi Band 6: Fix watchface installation 2021-09-02 13:26:35 +02:00
Andreas Shimokawa
117cd57463 Mi Band 6: Support sending encrypted packets on new firmware 2021-09-02 11:21:05 +02:00
Andreas Shimokawa
44fcd454a0 Mi Band 6: Make new auth protocol a setting for now 2021-08-26 10:59:53 +02:00
Andreas Shimokawa
2c06e5d39c Mi Band 6 auth: add test, fix crypto 2021-08-26 10:59:53 +02:00
Andreas Shimokawa
d352624629 Mi Band 6 auth: first full but nonworking version 2021-08-26 10:59:53 +02:00
Andreas Shimokawa
1c6f055bef Mi Band 6 auth: Working jni call to generate keys 2021-08-26 10:59:53 +02:00
Andreas Shimokawa
9bd8424f83 Mi Band 6 auth: first experiments 2021-08-26 10:59:53 +02:00
Andreas Shimokawa
8d21ae1177 Amazfit GTS2/GTR2: Fix installing watchfaces
Needs some more testing, but looks promising
2021-05-16 14:29:47 +02:00
Andreas Shimokawa
5765407366 Amazfit Bip S: support flashing of new AGPS files with UIHH header
We do not know how to generate them yet.
But it was confirmed working with a file we reconstructed from a bluetooth hci dump
2021-05-11 12:10:40 +02:00
License Bot
1b5402dcb4 update license headers 2021-01-10 23:38:13 +01:00
Andreas Shimokawa
0e88adbaf7 Mi/Amazfit Band 5: Support flashing watchfaces 2020-11-20 22:03:23 +01:00
Andreas Shimokawa
247366bf9d Amazfit Bip S: Implement new Firmware update mechanism introduced with Firmware 2.1.1.50
This is probably mandatory for other devices now also!
2020-09-28 12:05:09 +02:00
Andreas Shimokawa
715fb67859 Do summary parsing on the fly if raw binary data is available 2020-08-18 10:39:44 +02:00
Andreas Shimokawa
28a3ab1518 Huami: save raw summary data in new binary blob column for later interpretation 2020-08-16 22:50:59 +02:00
Andreas Shimokawa
e73c881aa9 Revert "swap +/- :)"
This reverts commit e027f3d526.
2020-08-14 22:54:39 +02:00
vanous
c21206fbe4 Swapping min/max elevation 2020-08-14 22:53:00 +02:00
Andreas Shimokawa
e208549d1d Decode a bit more for new acticity summaries (Bip S)
This also adds disabled code to create a binary dump for better analysis
2020-08-11 00:06:24 +02:00
vanous
e027f3d526 swap +/- :) 2020-08-10 18:27:30 +02:00
vanous
4a4362eec4 Use textViews. Remove groups from data. 2020-08-10 10:56:54 +02:00
Andreas Shimokawa
555eb34575 Start to support activity summary version 518
Incomplete, lot of missing stuff. no swimming, etc.
2020-08-10 00:19:13 +02:00
vanous
ec3334f037 move averageStride to Activity 2020-08-09 21:56:58 +02:00
vanous
bce85beb21 Use localized names and dates. Pass only needed data between activities.
Better display view. Cleaning up.
Add km/h and calculate speed to it.
Special casing calc not per key but per unit
solved min/maxPace, localized several missing labels.
totalStride is Total strides in m. Fix missing start_label
2020-08-09 21:56:31 +02:00
vanous
c3887ddb86 minimum working version 2020-08-09 21:56:25 +02:00
Andreas Shimokawa
94afcba363 Add text column to BaseActivityData for storing unstructured data to be displayed later
As a test first test, this currently only stores the average heart rate.
2020-08-07 23:12:29 +02:00
Andreas Shimokawa
ef09e24482 Amazfit GTS: Fix broken activity data on Firmware 0.0.9.xx
Fixes #1924
2020-07-22 11:03:30 +02:00
Andreas Shimokawa
c437347236 Amazfit GTR/GTS: Fix connection for new firmware
This change does not do any harm on other Huami devices it seems
2020-07-05 17:07:43 +02:00
License Bot
d6fa5d0dd5 Update license headers 2020-01-09 10:44:32 +01:00
Andreas Shimokawa
6548802abc fix regression from latest commit where Mi Band 3 could not longer connect 2019-12-26 23:26:08 +01:00
Andreas Shimokawa
45c40825f3 Mi Band 4: Support MTU that gets reported from the Band
In my case that boosts the MTU from 23 to 247, firmware updates and watchface
istallations are extremely fast. This also affects notifications, weather etc.
2019-12-26 23:05:13 +01:00
FYG_license_bot_ignore_me
8e5c4b4602 Update license headers 2019-11-23 21:53:22 +01:00
Andreas Shimokawa
8fefd1b49e * Mi Band 4/Amazfit Bip Lite: Trim white spaces and new lines from auth key 2019-10-12 19:04:12 +02:00
Andreas Shimokawa
89c7066d32 Widget: Only signal new data only when syncing activity data (not on fetching logs etc), do the same for Mi Band 1 2019-09-16 22:25:58 +02:00
Andreas Shimokawa
8eb494ab85 Widget: some cleanups
- use LocalBroadcastManager when broadcasting new data event
- use constants for actions everywhere and move them
2019-09-01 22:09:09 +02:00
vanous
957d441859 Add Status and Alarms widget
Squashed commits from #1604
2019-09-01 21:35:53 +02:00
Andreas Shimokawa
d7c6fad235 Mi Band 4: decode swim info (not used yet)
After swimming a lot on the sofa and desk this seems right and in line with the data displayed on the band
swimming styles I got so far are breast and freestyle. Others are probably missing.

Might be correct for Cor also (I don't have one)
2019-08-15 11:14:41 +02:00
Andreas Shimokawa
13b078aadd fix verison typo (before I get a PR again :P) 2019-08-14 19:40:10 +02:00
Andreas Shimokawa
c17c3ed341 Improve parsing and debug output for activity summaries from Mi Band/Amazfit 2019-08-14 19:24:09 +02:00
Andreas Shimokawa
f99bc0de64 Move another file from AmazfitBip to Huami which is no longer Bip specific 2019-08-13 22:20:18 +02:00
Andreas Shimokawa
ff7886765f Add Swimming to sport activity types, rename some AmazfitBip stuff to Huami (these were things introduced with the bip but working with other devices now also) 2019-08-13 22:04:52 +02:00
Andreas Shimokawa
17599a797a remove unused imports 2019-07-25 22:33:41 +02:00
Andreas Shimokawa
31db568832 Mi Band 4: Fix RES and FW update 2019-07-25 22:18:48 +02:00
Andreas Shimokawa
b6e78c1b9c Mi Band 4: Support flashing watchfaces
FLASHING FIRMWARE/RES/FONT IS STILL UNTESTED
2019-07-25 20:51:28 +02:00
Andreas Shimokawa
a60268c05c Mi Band 4: Bring your own key support (blindly done, I dont have my key)
THIS STILL REQUIRES MI FIT AND YOUR EXTRACTED KEY

HOWTO:
1) press + button in Gadgerbridge
2) LONG PRESS Mi Band 4
3) Tap "Auth Key"
4) Enter your key prefixed with 0x (eg. 0x112233445566778899aabbccddeeff00)
5) Go back
6) Tap Mi Band 4

Success? You tell me.
2019-07-23 08:56:26 +02:00
Andreas Shimokawa
08e7d728c2 Huami: Migrate some settings to device specific settings
- Migrate language setting
- Migrate menu items setting
- Migrate lastsync timestamp from prefixed global shared prefercence

All settings should be automatically be converted (e.g. Amazfit Bip settings to all paired Amazfit Bip devices) and then deleted.

Cor Settings aleady completely vanished from the global settings menu.

When migration is done we will have a much cleaner settings menu. Will also remove confusion that some Cor settings have to be done in Bip settings.
2019-05-20 16:36:06 +02:00
Andreas Shimokawa
34b4943918 Also export and import device specific preference files 2019-05-09 14:55:37 +02:00
Andreas Shimokawa
db48707764 Add a device specific settings activity, currently used for setting the auth key for Amazfit Bip/Cor
When connecting to a new device, a random key gets generated, which can be
looked up from the device specific settings (accessible via the gear icon in
the device card in the main activity). Old devices keep their 0123456789@ABCDE
key, they have to be re-paired to change that.
During pairing, long-pressing the device candidate in the discovery activity
will also start the device specific settings activity, where the auth key
can be set manually priror to pairing. This is usefull to keep the ability to
pair one device with multiple android devices.

Fixes #1308
2019-04-21 21:25:33 +02:00
License Bot
beedb653e6 Update license headers 2019-02-13 20:43:31 +01:00
Daniele Gobbetti
75d3dffb14 Migrate to androidx support libraries and bump compile SDK version
"Optimize imports" has been run on all source files, there might be
unrelated changes, but these should be harmless.
2019-01-26 16:00:56 +01:00