1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-30 00:36:26 +02:00
Commit Graph

166 Commits

Author SHA1 Message Date
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
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
5ff5561772 Mi Band 4: Fix notification icons and cut-off text 2019-07-24 09:33:53 +02:00
Andreas Shimokawa
044f6c11cd Mi Band 4: WIP firmware update preparation
Nothing works yet
2019-07-23 23:49:21 +02:00
Andreas Shimokawa
9042966a40 Mi Band 4: Fix empty notifications
Icon still missing
2019-07-23 22:42:30 +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
8d50e8ef08 Mi Band 3: Allow setting date format in per-device settings
Closes #1544
2019-07-16 23:48:08 +02:00
Andreas Shimokawa
f7a4b3c06a Mi Band 3: whitelist firmware 2.4.0.20
Closes #1557
2019-07-16 16:24:45 +02:00
Andreas Shimokawa
ce0bd27111 remove useless condition 2019-06-22 21:10:19 +02:00
Andreas Shimokawa
d48d3cdea3 Add untested Mi Band 4 support (basically runs on Mi Band 3 code)
This is COMPLETELY untested, we do not have the device.
2019-06-12 23:44:01 +02:00
Andreas Shimokawa
d779310962 Move "activate display on lift wrist" and "rotate wrist to switch info" to per-device settings
"activate display on lift wrist" for Mi Band 2/3, Cor, Bip
"rotate wrist" only for Mi Band 2
2019-06-05 16:00:18 +02:00
Andreas Shimokawa
16090f0e21 Move fake device offset to Mi Band 1 preferences, remove support for other devices
Reasons for removal:
- I doubt we honored the offset correctly for new features anyway that are available on newer devices
- Newer devices have a display always displaying the wrong time
2019-06-05 14:11:44 +02:00
Andreas Shimokawa
d2988f987f Mi Band 3: Whitelist FW 2.4.0.12
Closes #1530
2019-06-05 12:29:25 +02:00
Andreas Shimokawa
78dd7ef153 Mi Band 3: Fix setting menu items with 2.4 firmware and add support for the new timer menu 2019-05-29 15:53:44 +02:00
Andreas Shimokawa
12e16ac04a add ignoring calls support to Amazfit Bip (probably Cor also and maybe Mi Band 3) 2019-05-25 22:19:19 +02:00
Andreas Shimokawa
93f288b936 Move "Do not disturb" settings from Mi Band / Amazfit settings to per-device settings (Mi Band 2 and Mi Band 3 only) 2019-05-24 23:47:57 +02:00
Andreas Shimokawa
d1ba702e75 add more settings migration for settings that are now per-device 2019-05-23 23:24:49 +02:00
Andreas Shimokawa
3440485a51 Mi Band 2: move settings to per-device settings 2019-05-23 21:33:35 +02:00
Andreas Shimokawa
34e0c4e8bc remove swipe unlock settings from cor (can only be set from the band itself) 2019-05-22 19:04:38 +02:00
Andreas Shimokawa
038f101a12 Migrate more settings to per-device settings
Also add icons.
2019-05-22 10:49:59 +02:00
Andreas Shimokawa
9bfef4cf4f Make per-device settings more versatile, move more settings
This allows to construct per-device settings by device type very easily

device coordinators just do the following to declare which setting they support,
the settings activity is then composed at runtime.

@Override
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
     return new int[]{
            R.xml.devicesettings_miband3,
            R.xml.devicesettings_swipeunlock,
            R.xml.devicesettings_pairingkey
    };
}
2019-05-22 00:42:22 +02:00
Andreas Shimokawa
49667451d7 Mi Band 3: fix setting language (regression after todays refactoring) 2019-05-20 23:27:17 +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
6031586131 Mi Band 3 NFC: Whitelist FW 1.7.0.4
Closes #1470
2019-05-09 15:43:57 +02:00
Andreas Shimokawa
34b4943918 Also export and import device specific preference files 2019-05-09 14:55:37 +02:00