1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-02 01:36:23 +02:00
Commit Graph

87 Commits

Author SHA1 Message Date
José Rebelo
07357305cb Huami: Unify recorded data fetching in HuamiSupport 2023-05-20 20:44:18 +01:00
Oleg Vasilev
007f070125 huami: implement repeated activity fetching
Currently, huami only attempts to fetch activities once.

Since sports activity fetching creates an Operation twice per every fetch, we
need to pass around fetchCount variable to keep track of how many fetches has
occured.

Tested on my Amazfit GTR 4.

Signed-off-by: Oleg Vasilev <me@svin.in>
2023-03-11 15:02:00 +00:00
NekoBox
2df6ce2aed Huami: implement proper find device. 2022-09-26 19:18:41 +02:00
José Rebelo
2efc564d21 Huami: Add preference to overwrite band settings on connection 2022-09-10 23:24:27 +02:00
José Rebelo
7512147c34 Huami: Display native alarm notification 2022-07-05 19:57:13 +02:00
dakhnod
4a8523f790 multi-device-support (#2526)
this PR aims to add device for multiple connected devices at once.

A lot of stuff already works, some things need to be done:

- [x] change DeviceCommunicationService to hold multiple devices and supports
- [x] implement connect / disconnect logic
- [x] widgets, not really suited for multiple devices, so far
- [x] change the notification to show multiple devices
- [ ] change GBDeviceService#onFindDevice and similar API functions to target individual devices, not all connected.
- [x] move auto-reconnect setting to device settings
- [x] fix music event crash
- [x] work out behaviour when pressing "connect" from notification
- [ ] handle service crashes
- [ ] suit coordinator methods for multiple devices of same kind
- [x] change ACL_CONNECTED receiver to connect to devices that are not currently registered in DeviceCommunicationService
- [ ] adjust after-boot auto-connection logic
- [ ] fix hanging device support. Device says disconnected, GB says connected
- [x] firmware updater doesn't work

My attempt to make onFindDevice work was to change the arguments to ```EventHandler#onFindDevice(GBDevice device, boolean start)```.
The Problem is that this forces the device-specific implementations to also accept GBDevice as an argument.

Co-authored-by: Daniel Dakhno <dakhnod@gmail.com>
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-authored-by: dakhnod <dakhnod@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2526
Co-authored-by: dakhnod <dakhnod@noreply.codeberg.org>
Co-committed-by: dakhnod <dakhnod@noreply.codeberg.org>
2022-06-14 18:05:41 +02:00
License Bot
1b5402dcb4 update license headers 2021-01-10 23:38:13 +01:00
Andreas Shimokawa
f178c478c9 Amazfit Bip: Also make shortcuts sortable 2020-11-07 22:48:34 +01:00
Andreas Shimokawa
d20e6516c8 Humai: Implement menu sorting for remaining devices (except Mi Band 2) 2020-11-07 22:48:34 +01:00
Bot
40852d3641 Fixed a bunch of misspellings and formatting 2020-08-26 14:37:40 +03:00
Andreas Shimokawa
8400568aed Amazfit Bip S: support flashing GPS firmware, whitelist tonlesap 2.1.1.08 firmware, res, gps, font 2020-06-12 16:58:02 +02:00
Andreas Shimokawa
1f8826329c Amazfit Bip S: For firmware update distinguish dth and tonlesap variants
This is done by comparing the firmware version (2 assumed for tonlesap, 4 for dth)

This could have been done properly by comparing the hardware revision, but there are so many hardware revisions during a huami device lifecycle, we could not catch up.
2020-06-12 16:14:35 +02:00
Andreas Shimokawa
8e08a9d660 Support flashing newer GPS ALM and support flashing GPS CEP on Bip S 2020-06-11 12:16:57 +02:00
Andreas Shimokawa
7d0243e61d move Bip S file 2020-06-08 16:38:03 +02:00
Andreas Shimokawa
4326419209 Amazfit Bip S: allow flashing watchfaces (untested, and probably wont work) 2020-06-08 16:36:54 +02:00
Zhong Jianxin
44a9ce0267 Amazfit Bip S: Music support 2020-06-08 16:16:33 +02:00
Zhong Jianxin
fc39221782 Amazfit Bip S: Support setting shortcuts 2020-05-14 10:05:49 +08:00
Zhong Jianxin
0e888aba3a Amazfit Bip S: Fix setting display items 2020-05-14 10:05:39 +08:00
Zhong Jianxin
f06c9fb8e7 amazfit bip s: Fix incoming call notification 2020-05-13 23:24:03 +02:00
Andreas Shimokawa
e844f81056 Huami: If no menu items were ever configured with Gadgetbridge use our default and do not disable everything on connect
Fixes #1853
2020-05-12 22:42:19 +02:00
Andreas Shimokawa
1a57c4db68 Amazift Bip Lite: Allow relaxing firmware checks to allow flashing of the regular Bip firmware (for the brave)
Closes #1819
2020-03-27 11:01:33 +01:00
Andreas Shimokawa
f04c9aed29 Amazfit Bip S: Fix empty notifications
Was reported to work in  #1822
2020-03-26 23:27:35 +01:00
Andreas Shimokawa
c66e9450d3 Try to blindly enable Amazfit Bip S
This is an initial bringup it will most probably fail in some areas

Related: #1822
2020-03-23 11:02:22 +01:00
License Bot
d6fa5d0dd5 Update license headers 2020-01-09 10:44:32 +01:00
Andreas Shimokawa
7c15ddb471 Amazfit Bip: Remove RES file limit (for BipOS) 2020-01-08 22:44:21 +01:00
Andreas Shimokawa
378475aa3d Amazfit Bip: Bump res size limit for Bip OS 0.5.2 2020-01-08 00:10:32 +01:00
Andreas Shimokawa
3bf72f957a Huami: get alarms at connect and save changes to database, react to on-device changes immediatly when device is connected 2019-12-27 22:19:17 +01:00
Andreas Shimokawa
f958f3a54d Amazfit Bip: Whitelist BipOS 0.5.1 (non-latin) 2019-12-27 14:42:00 +01:00
FYG_license_bot_ignore_me
8e5c4b4602 Update license headers 2019-11-23 21:53:22 +01:00
Andreas Shimokawa
18d78bf05d Amazfit Bip: Correct BipOS version 2019-11-18 21:53:03 +01:00
Andreas Shimokawa
d60ceffb81 Amazfit Bip: Whitelist BipOS 0.5 firmware/res (non-latin) 2019-11-16 21:47:14 +01:00
Andreas Shimokawa
25bb16b0c3 Make button action setting per-device, enable for amazfip bip
TODO:
- preference migration
- support vibration on bip
2019-11-14 12:33:36 +01:00
Andreas Shimokawa
a3cd99a4a3 Huami: move notification code from AmazfitBipSupport to HuamiSupport
probably fix notifications on GTS
2019-10-31 14:28:24 +01:00
Andreas Shimokawa
3b42bdd42a Amazfit Bip: Whitelist FW 1.1.6.34 (non-latin)and 1.1.6.32 (latin) 2019-10-26 23:56:04 +02:00
Andreas Shimokawa
c2c240d7be Amazfit GTR: Enforce auth key input when pairing, try to fix notifications 2019-10-24 21:51:10 +02:00
Andreas Shimokawa
5caa8e9097 Amazfip Bip Lite: Support firmware installation
Closes #1681
Closes #1682
2019-10-15 20:34:09 +02:00
Andreas Shimokawa
4bf37ea70f Mi Band 4/Amazfit Bip Lite: Display a toast and do not try to pair if there was no auth key supplied 2019-10-12 19:44:45 +02:00
Andreas Shimokawa
8d27ad1996 another try at bip lite support 2019-10-09 21:33:55 +02:00
MyTimeKill
a0e3e060cc
Amazfit Bip: Whitelist fw 1.1.6.30 latin, res and latin ft 2019-10-03 22:18:01 +09:00
MyTimeKill
8df99bf5bd
Amazfit bip: Support flashing latest latin font 2019-10-02 18:00:34 +09:00
Andreas Shimokawa
d07ca6faa6 Mi Band 4: Fix location not being updated on the Band
Also move generic code from AmazfitBipSupport to HuamiSupport where is belongs
Fixes #1609
2019-08-25 09:56:06 +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
0fd4d523a0 Amazfit Bip: Whitelist new firmware versions I tested 2019-08-07 17:24:01 +02:00
Andreas Shimokawa
5ff5561772 Mi Band 4: Fix notification icons and cut-off text 2019-07-24 09:33:53 +02:00
Andreas Shimokawa
9042966a40 Mi Band 4: Fix empty notifications
Icon still missing
2019-07-23 22:42:30 +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
DerFetzer
dd067eddd7 Amazfit Bip: Add new latin languages 2019-05-14 20:58:07 +02:00
Andreas Shimokawa
665b1b6b5a Bip: whitelist FW 1.1.5.16
Closes #1459
2019-03-17 18:26:47 +01:00
cpfeiffer
8d6a9d98da Silence lgtm error messages
If the index would indeed be out of bounds, we would simply catch the exception and deal with that.
2019-02-27 20:52:16 +01:00