1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-02 12:03:29 +02:00
Commit Graph

890 Commits

Author SHA1 Message Date
cpfeiffer
7618ec39a2 Use try-with-resources for db access 2020-01-29 20:01:20 +01:00
cpfeiffer
f24dc0c1cb Cleanup file handling a bit 2020-01-29 20:01:20 +01:00
cpfeiffer
4293db5514 Cleanup toast/logging 2020-01-29 17:37:54 +01:00
Andreas Shimokawa
1c91c037a8 Merge branch 'master' into fossil-q-hr 2020-01-29 17:22:21 +01:00
Daniel Dakhno
132d97ee95 created UI to design custom widgets 2020-01-19 04:01:57 +01:00
Andreas Shimokawa
a4ebe17191 Huami: Enable alarm snooze enable/disable for all devices 2020-01-13 08:08:54 +01: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
vanous
7394b1cce3 Add-Buttons-Events-Config (#1761) 2020-01-08 19:58:31 +01:00
dakhnod
b04ff78e90 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr 2020-01-07 21:02:44 +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
cpfeiffer
00830218e7 Q HR: Allow specifying key during discovery 2020-01-03 12:24:34 +01:00
Da Pa
35dbbd6a31 Merge branch 'master' into y5_patch_test
# Conflicts:
#	GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/jyou/TeclastH30/TeclastH30Coordinator.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/DeviceSupportFactory.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/DeviceHelper.java
#	app/src/main/res/values/strings.xml
2020-01-01 06:55:54 +02:00
dakhnod
c4d63a80e1 added menu handling and error status 2019-12-31 03:14:20 +01:00
dakhnod
6f012c2109 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr 2019-12-30 21:46:41 +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
mamutcho
037c037032 Add option to force time sync. 2019-12-23 13:33:39 +02:00
mamutcho
57df6ec703 Auto time calibration 2019-12-23 11:29:09 +02:00
mamutcho
e6049438e7 Code cleanup and bug fixes 2019-12-21 18:48:19 +02:00
mamutcho
8d7f170c70 Add support for Watch X Plus with same MAC as Watch 9 2019-12-18 23:09:26 +02:00
mamutcho
f7e7cfaa0c Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-16 19:52:14 +02:00
License Bot
171f283ca8 Update license headers 2019-12-15 22:09:02 +01:00
mamutcho
0d8428437c Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-15 18:28:19 +02:00
dakhnod
a256decfd0 initial commit 2019-12-15 14:58:19 +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
c89a651573 Bangle.js: minor cleanups in coordinator 2019-12-14 12:16:23 +01:00
mamutcho
74df3ffeb1 Code optimizations 2019-12-13 23:45:38 +02:00
mamutcho
068033ad8e Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-12 19:32:55 +02:00
mamutcho
be8cac2c6f Merge branch 'master' of https://github.com/mamutcho/Gadgetbridge 2019-12-12 19:27:56 +02:00
Andreas Shimokawa
b78239e7be Fossil Q: Remove tasker code and dependency 2019-12-11 22:14:20 +01:00
mamutcho
632f46bc8b Bug fixes 2019-12-11 19:38:12 +02:00
Gordon Williams
9856536243 ask before bonding 2019-12-09 14:31:08 +00:00
Gordon Williams
77658c702f remove debug filtering 2019-12-09 10:26:30 +00:00
Gordon Williams
fb70da856a Merge branch 'master' of github.com:gfwilliams/Gadgetbridge 2019-12-09 10:13:02 +00:00
License Bot
1dc8c26e2a Update license headers 2019-12-06 22:51:43 +01:00
dakhnod
b1b4100852 extracted some string resources 2019-12-04 00:59:43 +01:00
dakhnod
f4a0f0ce8f Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-12-04 00:48:26 +01:00
dakhnod
d5cd59ae6b improved sorting performance 2019-12-04 00:46:02 +01:00
dakhnod
8e27556cd4 removed printStackTrace 2019-12-04 00:36:42 +01:00
dakhnod
21358fece4 removed Toast#makeText in favour of GB#toast 2019-12-04 00:25:08 +01:00
dakhnod
d355b509d4 added comment 2019-12-04 00:22:19 +01:00
dakhnod
3bbc7a9046 fixed string comparison 2019-12-04 00:19:48 +01:00
dakhnod
f3dc0225ec fixed string switch 2019-12-04 00:18:12 +01:00
dakhnod
4462c52ebb fixed null comparison 2019-12-04 00:09:38 +01:00
Gordon Williams
103e3568c6 Adding notification handling 2019-11-29 17:01:57 +00:00
Gordon Williams
d978d3ff94 first compile with Bangle.js - very basic 2019-11-28 18:02:47 +00:00
Daniel Dakhno
02ee886934 Merge branch 'fossil-q-hybrid' of github.com:dakhnod/Gadgetbridge into q-hybrid-hr 2019-11-26 02:12:11 +01:00
dakhnod
2bba2c449f fixed some syncing issues (hopefully) 2019-11-24 00:44:14 +01:00
FYG_license_bot_ignore_me
8e5c4b4602 Update license headers 2019-11-23 21:53:22 +01:00
dakhnod
e1aa88d22a added some logging 2019-11-21 23:22:55 +01:00
mamutcho
e03fd4357e Add initial Watch X non-plus support 2019-11-20 20:38:02 +02:00
Daniel Dakhno
a56d180531 added second timezone button function 2019-11-20 18:59:13 +01:00
Daniel Dakhno
a7c10bed42 added alarm settings 2019-11-20 00:56:09 +01:00
mamutcho
0cffd0f54c Bump Gadgetbridge version to 0.39
Redesign Settings page
Ready to pull request
2019-11-19 20:53:19 +02:00
mamutcho
e3f838afa0 Bump version ot 0.39
Redesign Settings page
2019-11-19 20:51:37 +02:00
Mamut
aefe7017f0
Merge pull request #1 from Freeyourgadget/master
Version to 0.39.0
2019-11-19 12:26:33 +02:00
mamutcho
71ff71cb2c Some fixes 2019-11-18 19:10:56 +02:00
Daniel Dakhno
03e8925d9e fixed unknown button setting exception 2019-11-17 15:56:44 +01:00
mamutcho
be47541a5e Add new features
- Inactivity reminder
- Missed call reminder
- Watch language
2019-11-17 14:33:26 +02:00
Daniel Dakhno
ca18e1fe34 added button index hint 2019-11-17 05:03:23 +01:00
Daniel Dakhno
e04cd474dc user can now assign a few more functions to buttons 2019-11-17 04:55:12 +01:00
Daniel Dakhno
7f5c432b82 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-11-17 01:13:00 +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
Daniel Dakhno
63b4ffe555 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into q-hybrid-fossil-api 2019-11-14 04:58:32 +01:00
Daniel Dakhno
161236f3a2 fixed file upload bug 2019-11-14 04:56:34 +01:00
mamutcho
24439008ab Add watch power mode and DND 2019-11-10 23:15:13 +02:00
mamutcho
3a2b718f09 Blood Pressure calibration 2019-11-09 22:16:10 +02:00
mamutcho
bf3889e519 work progress 2019-11-08 19:24:50 +02:00
mamutcho
33f18036d3 FIXES:
- Cleaned code for repeat watch vibration during phone ring.
- On my samsung phone and Bulgarian language, when call is ended, on watch shows notification with name "Phone" and vibrates until disconnect from app. Finally managed to fix it.
ADD:
- Add setting for ignore/reject phone call with device button.
- Add setting for ignore/reject phone call with shake device. (duplicates button action) P.S. to apply needs to reconnect device.
- Add setting for sending Missed call if call is missed.
- Add setting for continious vibration while phone ringing.
NEED MORE TESTING:
- When phone alarm trigger - send notification on watch. Works on samsung phone. Don't have other phones for testing.

P.S. To apply altitude calibration, need to disconnect and reconnect watch
2019-11-06 23:56:24 +02:00
mamutcho
81997e7725 FIXES:
- Fixed setting for repeat watch vibration during phone ring. (code need to be cleared and optimised)
- On my samsung phone, when call is ended, on watch shows notification with name "Phone" and vibrates until disconnect from app. I tryed to fix it, but don't know is it successful.
ADD:
- Add command for cancel notification, e.g. when answer phone call.
- Add blood pressure calibration status.
NEED MORE TESTING:
- On watch preserve small phone icon near bluetooth icon only when call is missed, in other cases clear it.
- When phone alarm triger - send notification on watch

P.S. To apply altitude calibration, need to disconnect and reconnect watch
2019-11-06 00:14:29 +02:00
mamutcho
54f4bbeeef Add Device settings - altitude
Add repeat notification on phone call - need to refine
Add command for cancel text notification
2019-11-04 00:41:48 +02:00
mamutcho
fb08af6d04 Add Device settings (screen on, time format, disconnect reminder, find my phone).
Changed device icon.
2019-11-02 22:24:00 +02:00
Andreas Shimokawa
2b0656c9c0 Amazfit GTS: Enable flashing firmware (untested) 2019-10-31 15:30:05 +01:00
Daniel Dakhno
d690dff5ca fixed nah nah. 2019-10-30 16:43:29 +01:00
Daniel Dakhno
c09683de3d implemented nah. 2019-10-30 16:42:44 +01:00
Daniel Dakhno
25a67b2ebb updated some requests, still dunno why some files time out... 2019-10-30 02:50:00 +01:00
Manuel Ruß
0159657bd5 - AmazfitGTS Run basic functionalities (read data, ...) 2019-10-29 22:44:03 +01:00
mkusnierz
4069021924 Retrieve historical HR data from Watch X Plus and save to DB (WIP). 2019-10-28 22:55:34 +01:00
Daniel Dakhno
06d7568249 added some requests and logic 2019-10-28 12:35:22 +01:00
mkusnierz
7f085681c3 Added blood pressure measurement request and response handling.
Added heart rate history fetching (watch doesn't return data yet).
Steps data is saved to DB.
2019-10-27 18:04:38 +01:00
Daniel Dakhno
7710b9ea2a Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into q-hybrid-abstraction 2019-10-25 14:35:05 +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
Daniel Dakhno
187600b076 added abstraction layer 2019-10-24 19:44:35 +02:00
mkusnierz
45054bbcd9 Extracted some commons for Lenovo watches 2019-10-23 22:07:38 +02:00
HardLight
d627577e6f Mi Band 4: Enable Emoji Font setting 2019-10-23 20:14:02 +03:00
dakhnod
a2060470f8 changed parameter from byte to enum 2019-10-21 15:14:32 +02:00
mkusnierz
4601d827ae Display calibration button for Watch X Plus
Use calibration activity from Watch9 for now
Partial heart rate history handling (WIP)
2019-10-20 10:34:29 +02:00
dakhnod
2a96f762af added option to track notification count with activity hand 2019-10-20 01:42:31 +02:00
dakhnod
b6c744c8c6 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-19 23:55:55 +02:00
mkusnierz
34d9bccb86 Retrieve steps count
Tried to set weather, but without success
Handle ACK response
Enabled alarms
2019-10-18 23:36:56 +02:00
mkusnierz
290a90ec0e Handle notifications with long body 2019-10-18 09:42:31 +02:00
mkusnierz
cf61ab9d38 Fixed battery level parsing from response
Added basic notification support
2019-10-18 00:02:53 +02:00
Cre3per
395f63d3c1 makibes hr3 now pairs/bonds.
that way gb can reconnect after the band was disconnected.
2019-10-17 14:33:05 +02:00
Cre3per
45184c4bbc makibes hr3 should now support the english version 2019-10-17 14:33:05 +02:00
Daniel Dakhno
0d60d308aa Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-16 14:57:22 +02:00
Andreas Shimokawa
5caa8e9097 Amazfip Bip Lite: Support firmware installation
Closes #1681
Closes #1682
2019-10-15 20:34:09 +02:00
Maciej Kuśnierz
2acb65b745 Merge https://github.com/Freeyourgadget/Gadgetbridge
# Conflicts:
#	README.md
2019-10-13 00:18:00 +02:00
Andreas Shimokawa
074994d24b Merge branch 'master' into fossil-q-hybrid 2019-10-12 20:47:19 +02:00
Andreas Shimokawa
7b5e333601 Skip service scan if supported device could be recognized without uuids during discovery 2019-10-12 20:15: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
80c902e568 Amazfit Cor 2: Enable Emoji Font setting and 3rd party HR access 2019-10-12 13:04:33 +02:00
Cre3per
c4f4f5081d added vibrator to FindPhoneActivity.
added device settings for find phone.
makibes hr3 now uses GBDeviceEventFindPhone.
2019-10-12 12:44:38 +02:00
Cre3per
4437220c54 makibes hr3.
added quite hours.
2019-10-12 12:44:38 +02:00
Cre3per
5570ac8349 makibes hr3.
added fakeBattery.
fixed string comparison using operator.
2019-10-12 12:44:38 +02:00
Cre3per
1262970494 makibes hr3.
added lost reminder support.
2019-10-12 12:44:38 +02:00
Cre3per
4c98d8537f makibes hr3.
added hud to device settings.
2019-10-12 12:44:38 +02:00
Cre3per
cd3558cd50 makibes hr3.
fixed long notifications a a nullptrexception.
added vibration timeout.
added step history download.
2019-10-12 12:44:38 +02:00
Cre3per
da1a72c6c6 makibes hr3.
implemented deleteDevice.
implemented heart rate history download.
cleaned up sample handling.
2019-10-12 12:44:38 +02:00
Cre3per
c0a6566410 makibes hr3.
corrected alarm slot count.
2019-10-12 12:44:38 +02:00
Cre3per
40696cb3e6 makibes hr3.
added multi-byte command support.
now uploading personal data to the watch.
2019-10-12 12:44:38 +02:00
Cre3per
fe667ffdd8 added makibes hr3 todo and heart rate constants 2019-10-12 12:44:38 +02:00
Cre3per
0a7639877b fixed alarm repetition 2019-10-12 12:44:38 +02:00
Cre3per
8b7d853097 merged.
added makibes hr3 OnSharedPreferenceChangeListener.
added makibes hr3 reverse find device (find phone).
added makibes hr3 heart rate/steps/firmware version.
2019-10-12 12:44:38 +02:00
dakhnod
a2a0bc08dd Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-11 22:35:50 +02:00
Andreas Shimokawa
5c3c81fe6f do not recogize bip lite as bip 2019-10-10 21:21:19 +02:00
Daniel Dakhno
009888b688 fixed coordinator to filter device specific service 2019-10-10 02:06:37 +02:00
Daniel Dakhno
52ca3d3625 fixed coordinator to filter device specific service 2019-10-10 01:24:17 +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
dakhnod
ea1653d616 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-05 19:09:07 +02:00
dakhnod
59e318dee1 notification does not requre hands any more 2019-10-05 18:59:52 +02:00
Andreas Shimokawa
21a287f6b1 Makibes HR3: Make settings per-device
Also so some minor cleanups on Makibes HR3 code
2019-10-02 23:45:19 +02:00
Cre3per
7409281c5a very basic makibes hr3 support 2019-10-02 23:06:33 +02:00
dakhnod
b20963348d Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-09-25 00:22:57 +02:00
dakhnod
f912ae28a2 adjusted settings activity 2019-09-25 00:19:59 +02:00
Andreas Shimokawa
814f322e2a Amazfit Bip: Recogize Amazfit Bip Lite as Amazfit Bip 2019-09-20 21:51:04 +02:00
Sebastian Kranz
194f5b04ae Enable the unicode emoji support, even if the zetime has only some of the most used emojis on board. 2019-09-14 00:20:07 +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
vanous
cf28ee48f4 add .apply() 2019-09-07 22:41:35 +02:00
vanous
975b698564 remove preference keys when deleting device 2019-09-07 22:41:35 +02:00
Nephiel
b40c3ade85 Amazfit Bip: Add emoji support when using custom font firmware 2019-08-31 22:32:18 +02:00
Andreas Shimokawa
b38b83377c Mi Band 2: enable third party hr sensor access setting
This works but since the Mi Band 2 has no "status" menu or activities, live activity has
to be started (charts swipe to right), but that spams the database...
2019-08-28 10:11:15 +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
aec3d21216 Mi Band 4: remove unsupported DND setting from settings menu 2019-08-22 10:20:45 +02:00
ksiwczynski
0f6ef140e2 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge 2019-08-17 02:07:55 +02:00
Andreas Shimokawa
02d02d2329 Add Initial Mijia LYWSD02 support (Smart Clock with Humidity and Temperature Sensor)
This only sets the time on connect.
2019-08-02 23:49:14 +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
dakhnod
8db0812ed0 fixed settings bug 2019-08-01 22:39:34 +02:00
dakhnod
b089ad7531 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-29 00:56:32 +02:00
Andreas Shimokawa
124d03d171 Mi Band 4: Enable music info support (displays now on the band) 2019-07-28 14:34:04 +02:00
Andreas Shimokawa
261ddee707 Mi Band 4: Support setting date format (for built-in watchfaces) 2019-07-26 21:05:16 +02:00
Andreas Shimokawa
8d567c1e6d fix build 2019-07-26 19:37:00 +02:00
dakhnod
1e936e4a85 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-26 17:57:12 +02:00
dakhnod
50483dd271 added UI elements and Activity data fetch 2019-07-26 16:43:38 +02:00
dakhnod
0b572505b3 removed DeviceSupportService hack 2019-07-26 16:42:53 +02:00
Andreas Shimokawa
8449e55f9e Amazfit Cor: Fix empty menu on Amazfit Cor 2
Fixes #1563
2019-07-26 08:57:41 +02:00
dakhnod
ef692498af Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-25 11:12:50 +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
dakhnod
ed651ac976 fixed vibration setting 2019-07-21 17:09:14 +02:00
dakhnod
62feefb67e reworked settings, nearly removed DeviceSupport Hack 2019-07-21 16:47:17 +02:00
dakhnod
f5c8ea39b1 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-18 11:24:15 +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
root
09f6cada87 Fossil Q hybrid and Skagen support added
Opening this branch for the second time inorder to purge certain files form the repo
2019-07-14 19:45:40 +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
b6a015c18b move low-latency setting for Mi Band to per-device settings (only for Mi Band 1) 2019-06-05 12:48:33 +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
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
5e254baaa1 ZeTime: Do not include all the normal preferences again
This behavious was confusing, you could endlessly access ZeTime preferences from ZeTime prefrences from ZeTime preferences
2019-05-24 22:15:39 +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
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
6b72292812 Recoginze "Xiaomi Band 3" as Mi Band 3
When running newer Firmwares (since 2.2.0.12) it is possible that devics name themselves "Xiaomi Band 3".
After a factory reset? Related to target market?

Closes #1517
2019-05-18 21:03:50 +02:00
Andreas Shimokawa
34b4943918 Also export and import device specific preference files 2019-05-09 14:55:37 +02:00
Andreas Shimokawa
58dca9a897 Amazit Cor 2: Add device specific warning when installing firmware (untested)
Also remove some Mi Band'ism from strings
2019-05-09 12:54:14 +02:00
Andreas Shimokawa
41e607ce9b Amazfit Cor 2: Give own device type id, support flashing the firmware **UNTESTED** 2019-05-09 12:42:59 +02:00
Andreas Shimokawa
f7fe3a836f Mi Band 3: Support flashing latest Japanese-Korean font file
This increases the supported file size to 2.0MB.
Somehow it is confusing that the new file is version 1 and the old version 2.
Also according to firmare.json both are version 1....
2019-05-07 11:13:48 +02:00
Andreas Shimokawa
6d28af1132 Mi Band 2: enable per-device pairing keys
Now enabled for all Huami devices
2019-05-02 22:40:28 +02:00
Andreas Shimokawa
bb161aff59 Amazfit Cor: Also recognize "Amazfit Band 2" as Cor 2019-05-02 22:26:20 +02:00
Andreas Shimokawa
77c76a7bd3 Mi Band 3: enable per-device pairing keys 2019-05-01 21:56:36 +02:00
Andreas Shimokawa
86270c0592 Try to enable Amazfit Cor 2 support but just using Amazfit Cor code.
Related to #1500
2019-05-01 19:51:32 +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
9aadb2f2fd Update license headers 2019-04-21 18:53:10 +02:00
Daniele Gobbetti
7c918ee191 Add UI to invoke device specific settings Activity
Currently the icon in the card is hidden for all devices, since the
functionality is not implemented yet
2019-04-21 15:59:39 +02:00
Johannes Schmitt
f92626f4a5 moved BFH-16 in JYOU "group" 2019-04-20 22:00:50 +02:00
Sophanimus
c7a6dc4b01 improvements 2019-04-20 22:00:50 +02:00
Sophanimus
070a132780 updated Copyright notes 2019-04-20 22:00:50 +02:00
Sophanimus
1e127c4de0 removed unnecessary space 2019-04-20 22:00:50 +02:00
Sophanimus
deb4d3a0ee reordered functions in BFH16DeviceCoordinator 2019-04-20 22:00:50 +02:00
Sophanimus
0b1f3ee1d7 added Copyright notes 2019-04-20 22:00:50 +02:00
Sophanimus
1087a53216 some functions do now work
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
Sophanimus
6faf9fdae8 noticed similarities to JYOU, copyed JYOU functions, adapted heartrate, blood presure and satiation values
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
Sophanimus
2c1f87c81b added BFH16DeviceSupport
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
Sophanimus
3ca589f730 BFH-16 Device-discovery working
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
ksiwczynski
76427a3848 Watch X Plus discovery 2019-03-14 03:58:57 +01:00
cpfeiffer
c9f1c110b0 Merge remote-tracking branch 'github/pr/1292' 2019-03-04 22:10:23 +01:00
Sebastian Kranz
0da866f70a Change user goal distance preference to use meters instead of km. 2019-03-04 07:16:56 +01:00
Sebastian Kranz
71a1605445 Add function to save some big chunk of code at the preference listeners. 2019-03-04 06:34:10 +01:00
jfgreffier
072dcd28ec
Merge branch 'master' into master 2019-03-01 11:33:18 +01:00
Sebastian Kranz
e0399a056f Write heart rate alarm limits, when changed instead of on connect. - Missing reading of that preference. 2019-02-21 09:19:05 +01:00
Sebastian Kranz
6a04c78b0e Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into zetime 2019-02-20 14:24:59 +01:00
Sebastian Kranz
a7553188f9 Reading the device preferences from the watch and set them in the ZeTime menu. 2019-02-20 14:09:21 +01:00
License Bot
8e4be724e1 Update license headers (fix duplicates) and contributors list 2019-02-13 21:01:14 +01:00