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

291 Commits

Author SHA1 Message Date
Andreas Shimokawa
425bf48df5 Amazfit Bip S: whitelist fw 2.1.1.16 2020-06-29 16:36:16 +02:00
Andreas Shimokawa
c1b6f5f4f5 Amazfit Bip S: fix installation of latest res (96) 2020-06-29 00:17:23 +02:00
Dmytro Bielik
496460502b Initial support for Amazfit T-Rex 2020-06-24 18:43:23 +03:00
Andreas Shimokawa
5d58a2f583 Work around music controls being disabled since last commit on Amazfit Cor (we do not get a music app started event before we haven't sent music information - weird) 2020-06-22 18:35:22 +02:00
Andreas Shimokawa
6b20f62e0f Huami: Use music control code from Bip S for all devices
needs testing and cleanup for all devices
2020-06-22 18:06:40 +02:00
Zhong Jianxin
55f9c8f519 Huami: Avoid cutting multibyte chars in half 2020-06-22 10:12:10 +02:00
Zhong Jianxin
c3a9cf858e Amazfit Bip S: Allow longer notification message 2020-06-16 13:41:26 +08:00
Andreas Shimokawa
26b7932153 Mi Band 4: Whitelist FW 1.0.9.58 2020-06-13 22:18:18 +02:00
Andreas Shimokawa
0229d24092 Mi Band 4 (possibly others): Fix detected RES version being always 69 for non-whitelisted res files
Fixes #1886
2020-06-12 23:24:26 +02: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
99b7764709 Amazfit Bip S: Support flashing firmware and res 2020-06-11 19:24:45 +02:00
Andreas Shimokawa
25c749bab9 Amazfit Bip S: Support flashing fonts and setting high MTU 2020-06-11 13:29:41 +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
2f8634ce66 Shamelessly assume Bip S is using one of the newer fireware install code 2020-06-08 16:43:39 +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
c0558c570c Huami: Check if musicSpec/stateSpec is null 2020-06-08 16:16:33 +02:00
Zhong Jianxin
8d145917f5 Huami: Use equals to compare musicspec/statespec 2020-05-19 23:08:46 +08: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
fefcf2d2b9 ZeTime: Fix setting the watch language and make the setting accessible from the per-device configuration menu
This did not work at all before, it was supposed to take the language from
Gadgetbridge App settings or the phone's default settings, but nothing was ever
sent to the watch.
2020-05-05 00:34:59 +02:00
Andreas Shimokawa
94358e79b0 Amazfit GTR/GTR Lite: enable setting menu items (untested) 2020-05-03 20:16:35 +02:00
Andreas Shimokawa
dbba6f04b1 Add support for Amazfit GTR Lite (untested and incomplete)
See #1694
2020-05-02 23:40:07 +02:00
Andreas Shimokawa
33a1dbd1cd Amazfit GTS: Fix setting menu items with low mtu 2020-04-29 14:44:58 +02:00
Andreas Shimokawa
a851bb5cf1 Amazfit GTS: support setting menu items 2020-04-22 17:10:49 +02:00
Andreas Shimokawa
12d5f1d88b Amazfit GTR/GTS: Fix flashing watchfaces and _maybe_ firmware/res update (still untested) 2020-04-14 23:09:03 +02:00
Andreas Shimokawa
89017ac58f Huami: Disable air quality indicator on Huami devices instead of showing 0
Thanks @ponyzucker

Closes #1834
2020-04-08 12:02:47 +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
Andreas Shimokawa
ea606713d7 Huami: Igore all-day events when syncing calendar events 2020-03-20 17:21:20 +01:00
Andreas Shimokawa
8cf7e259aa Huami: Fix crash when calendar event desctription or title was null
Fixes #1813
2020-03-04 23:13:57 +01:00
cpfeiffer
eb8e37d3a6 Sanity check for alarms index to avoid AIOOBE 2020-02-26 22:25:03 +01:00
Andreas Shimokawa
9a114f640b Huami: Make experimental calendar sync feature optional 2020-02-24 14:19:06 +01:00
Andreas Shimokawa
bffb8e8f87 Huami: send upcoming calendar events as reminder
TODO: make this optional, fix title not being displayed, do it proberly like we do on pebble
2020-02-19 09:41:50 +01:00
Andreas Shimokawa
71b76c8e8f Huami: add unused and untested co to send upcoming calender events as notifications 2020-02-18 22:20:57 +01:00
Andreas Shimokawa
3226d61ecd Mi Band 4: Make high MTU support optional
Fixes #1766
2020-02-04 10:04:01 +01:00
Dmitry Markin
b36fe52a65 Mi Band 2: properly stop a call notification when text notifications are disabled 2020-01-21 13:49:17 +03:00
Dmitry Markin
10c9b07c69 Control alarm snooze mode on MiBand2 2020-01-12 12:02:04 +03: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
vanous
7394b1cce3 Add-Buttons-Events-Config (#1761) 2020-01-08 19:58:31 +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
1c82c4e8e1 Huami: make time format 12h/24h configurable (was automatic before)
Fixes #1736
2020-01-04 23:40:50 +01:00
vanous
50defa1eb6 Add broadcast sender/receiver to ConfigureAlarms/HuamiSupport
This is to prevent discrepancies if user edits alarms in Gadgetbridge
and also on the device at the same time.
2019-12-29 11:07:42 +01:00
Andreas Shimokawa
ca324b4d41 prepare release 2019-12-28 00:33:03 +01:00
Andreas Shimokawa
b1ada7a25c Amazfit Cor: whitelist firmware 1.2.7.32 2019-12-27 23:54:53 +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
Andreas Shimokawa
9983a0f18e Mi Band 3: Whitelist FW 2.4.0.32 2019-12-27 10:35:42 +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
Andreas Shimokawa
21eada4caa Allow to set alarms to unused when long tapping
This helps clearing up a cluttered alarms list on devices like the Mi Band 4

Difference between disabling and setting to usused:
Unsused alarms cant be enabled from the Band, disabled can.

Closes #1747
2019-12-24 01:27:57 +01:00
Andreas Shimokawa
72ffbca2ff Make "reserve alarm for calender" per-device and only allow for Mi Band 1/2
This avoids a lot of bugs and confision regarding alarms
2019-12-14 23:48:02 +01:00
Andreas Shimokawa
68a9bcc167 Mi Band 4: Whitelist FW 1.0.7.14 2019-11-23 22:50:34 +01:00
FYG_license_bot_ignore_me
8e5c4b4602 Update license headers 2019-11-23 21:53:22 +01:00
Andreas Shimokawa
e5f5a671bd Amazfit Bip: Make vibration after button action work 2019-11-21 13:24:06 +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
2b0656c9c0 Amazfit GTS: Enable flashing firmware (untested) 2019-10-31 15:30:05 +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
Manuel Ruß
0159657bd5 - AmazfitGTS Run basic functionalities (read data, ...) 2019-10-29 22:44:03 +01:00
Andreas Shimokawa
42312bba60 Amazfit GTR: remove menu item settings, since we do not know how to do this yet 2019-10-28 15:41:55 +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
4110f0764a Amazfit GTR: enable firmware flashing for those who dare (untested) 2019-10-24 22:35:57 +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
cbd47a81cc Amazfit GTR: initial support for testing 2019-10-24 21:41:11 +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
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
8d27ad1996 another try at bip lite support 2019-10-09 21:33:55 +02:00
Andreas Shimokawa
b5e9727dcd Make some more settings per-device settings
- All ID115 settings migrated, allowing removal from settings activity
- All timeformat settings for all devices migrated
- All wrist location settings for all devices migrated (now you can have a mi band 3 on the left wrist and a bip  on the right wrist :P)

Also deduplicated some strings from zetime/generic preferences
2019-10-05 22:35:30 +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
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
876515f1fd Amazfit Cor: support custom emoji font
This commit refactors code and implements a custom device specific string
filter, which does nothing by default.
The implementation in HuamiSupport does the custom emoji conversion.

The setting has been moved from devicesettings_amazfitbip.xml to an extra file
As soon as there is a custom font for Mi Band 2/3/4 it is sufficient to add
"devicesettings_custom_emoji_font.xml" to the list of supported settings
in the appropriate coordinator and everything will work.
2019-09-14 00:05:39 +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
ce9eab8def Mi Band 4: really fix sending weather location
Really fixes #1609
2019-08-31 22:14:50 +02:00
Andreas Shimokawa
8f4489a21c Mi Band 4: Fix call notifcation not stopping when call gets answered or rejected on the phone
This changes the way to how to stop call notification for all Huami device back to Mi Band 2
Also clean up unused code

Fixes #1612
2019-08-29 08:32:29 +02:00
Andreas Shimokawa
243eec042d Mi Band 3/4, Amazfit Bip/Cor: Add setting to expose the HR sensor to 3rd party apps
Closes #1606
2019-08-27 11:13:45 +02:00
Andreas Shimokawa
da2e073dc2 Mi Band 4: Whitelist latest stable and beta firmware 2019-08-25 20:23:53 +02: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
c1145e1244 Mi Band 4: Support flashing the V2 font that came with beta FW 1.0.6.00
Only tested with 1.0.6.00
It now contains new characters like äöüß and others.
2019-08-21 23:24:51 +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
b5ea3ca591 Hexdump sports activity packets for better analysis
type 2 seems to be pause, 3 resume.
type 8 and seems to be related to swimming activites
2019-08-13 23:02:10 +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
aefd7520f3 Mi Band 3/4, Amazfit Cor/Bip: set language immediately when changing it (not only on connect)
Helps testing
2019-08-02 00:11:11 +02:00
Andreas Shimokawa
97540d734f Mi Band 3/4: Allow enabling the "NFC" menu where supported
Pretty useless, because we do not support NFC - but nice for testing
2019-08-01 23:07:28 +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