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

2760 Commits

Author SHA1 Message Date
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
0399bc048c Mi Band 3: Whitelist Firmware 2.3.0.6 2019-05-07 10:43:26 +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
f6095f56ae Merge remote-tracking branch 'github/pr/1503/work_profile' 2019-05-02 21:59:51 +02:00
Andreas Shimokawa
77c76a7bd3 Mi Band 3: enable per-device pairing keys 2019-05-01 21:56:36 +02:00
Andreas Shimokawa
67ac8dd335 Merge remote-tracking branch 'github/pr/1502/device_casio_improve_no_ble_scan' 2019-05-01 21:26:22 +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 Böhler
aa6b0b7d5f Also check work profile for number lookup 2019-05-01 15:13:08 +02:00
Andreas Böhler
e82ac8dfd7 Make use of GattServer in BtLEQueue, improve initialization sequence, improve pairing sequence and fix a few bugs 2019-05-01 15:04:02 +02:00
Matej Drobnič
580d70e910 add pebblekit extension for reopening last app 2019-04-23 20:12:53 +02:00
Andreas Shimokawa
f01c9414f5 fix a few warnings 2019-04-21 22:08:14 +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
Daniele Gobbetti
2a8fe5c3a0 Fix searching in application name when blacklisting.
The filter pattern is forced to lowercase, so also che application names
should be.

Fixes #1482
2019-04-21 21:21:21 +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
JoSch
7200538993 Update DeviceSupportFactory.java
changed indent of MISCALE2
2019-04-20 22:00:50 +02:00
Sophanimus
7acc3580dd added comment 2019-04-20 22:00:50 +02:00
Sophanimus
e86bc80016 improvements 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
cpfeiffer
39388f48a9 Merge remote-tracking branch 'github/pr/1456' 2019-03-17 21:06:23 +01:00
Andreas Shimokawa
4638acf2d3 Add setting to enable voip call support (default off)
There were too many bugs reported, so make that optional
2019-03-17 19:02:18 +01:00
Andreas Shimokawa
665b1b6b5a Bip: whitelist FW 1.1.5.16
Closes #1459
2019-03-17 18:26:47 +01:00
Nick Spacek
ccafda7f00 Adds default namespace declaration and fixes attribute use of namespace. 2019-03-16 11:12:35 -03:00
criogenic
ff5ebe697b Update DeviceSupportFactory.java
Insert break in CASIOGB6900 case.
2019-03-07 19:20:06 +01:00
Andreas Shimokawa
46567b1e87 Fix build
(...because we did not merge PRs in the correct order)
2019-03-05 22:32:49 +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
cpfeiffer
e6ebe8b2bd Don't crash on share when log file does not exist (#1444) 2019-02-28 22:04:05 +01:00
cpfeiffer
f3a7861fdb Fix some lgtm warnings 2019-02-28 21:57:45 +01:00
cpfeiffer
ebdf385baa Temporarily add back CasioGATTServer so that we can merge #1404 2019-02-27 21:36:00 +01:00
cpfeiffer
930a3ad9b2 Merge remote-tracking branch 'github/pr/1404' 2019-02-27 21:06:50 +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
Andreas Böhler
c091828205 Rename getActionSize() -> getActionCount() and make it abstract 2019-02-27 19:08:54 +01:00
Andreas Böhler
325add3f0a Remove duplicate queue
# Conflicts:
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java
2019-02-27 09:27:50 +01:00
Sebastian Kranz
4f80a4327f BUGFIX: setting alarms - create alarms with correct message and edit alarms, if they are already on the watch. The watch can handle much more than 3 alarms, but for now 3 should be sufficient. 2019-02-22 08:02:46 +01:00
Sebastian Kranz
c31d0c164c BUGFIX: activity timestamps were 1 hour off compared to UTC time. 2019-02-21 09:24:51 +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
40ebb7487c Fix error after merging master trunk, which have a different alarm handling, now. 2019-02-20 14:55:07 +01:00
Sebastian Kranz
c05ae32ed3 Add dumy onReadConfig function override, to satisfiy changes I made. 2019-02-20 14:53:58 +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
Andreas Böhler
88ac816393 Fix queue handling if only server or client operation is present 2019-02-18 20:20:57 +01:00
Andreas Böhler
6577ad69b0 Add initial support for Gatt server in BtLEQueue 2019-02-18 20:20:57 +01:00
cpfeiffer
373e38eace Merge remote-tracking branch 'github/pr/1424' 2019-02-13 23:06:34 +01:00
License Bot
8e4be724e1 Update license headers (fix duplicates) and contributors list 2019-02-13 21:01:14 +01:00
License Bot
beedb653e6 Update license headers 2019-02-13 20:43:31 +01:00
Andreas Shimokawa
c66fade081 Amazfit Bip: Support disconnect notifications
Might also work with Cor, did not work with Mi Band 3
2019-02-13 13:06:42 +01:00
Taavi
054c9722a7
Added a try-catch to not crash on de-emojifying 2019-02-13 04:26:04 +02:00
Andreas Shimokawa
095b2f53e5 Mi Band 3: Whitelist Firmware 2.3.0.2 2019-02-11 23:01:28 +01:00
Andreas Shimokawa
55f1dcc57b Amazfit Bip: Whitelist FW 1.1.5.12 2019-02-10 23:09:34 +01:00
Andreas Shimokawa
fd15478a7a Fix alarm corruption after user configured an alarm further down the list, leaving an unconfigured alarm in between configured alarms
This was not fixable though the UI, this commit also heals already corrupted configurations

Fixes #1419
2019-02-09 00:08:07 +01:00
Jean-François Greffier
4321a29e46 MIBCS update from android.support to androidx 2019-01-31 15:49:42 +01:00
jfgreffier
5ab075b373
Merge branch 'master' into master 2019-01-31 15:28:09 +01:00
cpfeiffer
92e92ae792 Merge remote-tracking branch 'github/pr/1396' 2019-01-30 22:20:24 +01:00
Jean-François Greffier
973bd1ad87 MIBCS weight mesure inital support 2019-01-29 22:37:41 +01:00
Andreas Böhler
fd68cf455f Fix misleading comment 2019-01-28 20:31:03 +01:00
Andreas Böhler
9774dbfba9 Read/write connection parameters and try to improve stability 2019-01-28 20:26:19 +01:00
Andreas Böhler
fc17dec87b Add explicit support for GB-6900B, GB-X6900B and GB-5600B 2019-01-28 20:26:02 +01:00
Andreas Böhler
df6547c287 Improve find device service (now always beeps) 2019-01-28 20:25:32 +01:00
Andreas Böhler
510d13037a Add alarm configuration and fix a few small bugs 2019-01-28 20:25:16 +01:00
Andreas Shimokawa
dad7ba7aaa Mi Band 3: Enable fetching sports activities and add "Exercise" type to generic code 2019-01-28 00:22:11 +01:00
Daniele Gobbetti
1832692b22 Skip duplicate notification prevention for apps that do not populate
the "when" field, like some Calendar apps.

Closes #1397
2019-01-26 16:17:51 +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
Jean-François Greffier
2e7c7d8e52 MIBCS discovery 2019-01-23 21:19:25 +01:00
Andreas Shimokawa
4060efeeca Mi Band 3: Whitelist Firmware 2.2.0.42 2019-01-21 23:01:15 +01:00
veecue
09cb8ca0fe
added nofications for VoIP calls 2019-01-19 20:03:01 +01:00
cpfeiffer
0b0d18dd9f Merge branch 'master' into black_whitelist_for_notifications 2019-01-16 23:49:15 +01:00
cpfeiffer
3763a4ef6b Use try-with-resources to close the db 2019-01-13 20:37:37 +01:00
abettenburg
86e92130d2 Updated PullRequest with recommended improvements 2019-01-12 10:00:33 +01:00
abettenburg
51399066a4 Merge remote-tracking branch 'upstream/master' into black_whitelist_for_notifications
# Conflicts:
#	app/src/main/res/values/strings.xml
2019-01-12 09:55:53 +01:00
Andreas Shimokawa
e9982ccd56 remove supportsAlarmConfiguration() in favor of getAlarmSlotCount()
Coordinator that do not support alarms return 0 anyway.
2019-01-11 23:26:00 +01:00
M. Hadi
6e6f5f45e0 Update LanguageUtils.java 2019-01-11 22:28:36 +01:00
M. Hadi
3f06d3c7ed Added some more Persian characters 2019-01-11 22:28:36 +01:00
cpfeiffer
3c0871f474 Improved toast messages for sleep widget 2019-01-11 00:03:17 +01:00
cpfeiffer
51632d16a2 Sleep Widget reacts to clicks now (on Android 8 at least), and...
sends the alarm directly to the wearable.
2019-01-10 23:59:19 +01:00
Andreas Shimokawa
b4bbf6186c Catch SecurityException when Notfication access was not granted when getting media session
Fixes #1387
2019-01-10 17:30:49 +01:00
Johann C. Rode
00dfcd1564 fix typo 2019-01-07 23:53:00 +01:00
Johann C. Rode
f613926ce0 rectify (c) 2019-01-07 23:53:00 +01:00
Johann C. Rode
9d7b1fd6b7 Added support for popular Pebble watchfaces RealWeather and YWeather, fixed some typos 2019-01-07 23:53:00 +01:00
cpfeiffer
903b50c2c5 Improved DB-based alarms
- got rid of GBAlarm
- added migration for prefs-based alarms
- various cleanups
2019-01-07 01:15:49 +01:00
Andreas Böhler
cf870bff8a Add handler thread to poll TX power level, properly use performInitialized(), correctly terminate threads 2019-01-06 11:31:50 +01:00
Andreas Böhler
0009badd71 Fixes from Code Review 2019-01-06 11:31:50 +01:00
Andreas Böhler
76aebd4e20 Add support for displaying music info 2019-01-06 11:31:50 +01:00
Andreas Böhler
81df586fbd Fix music controls 2019-01-06 11:31:50 +01:00
Andreas Böhler
2c2d07067d Add initial support for Casio GB-6900B 2019-01-06 11:31:50 +01:00
cpfeiffer
fb85326939 performConnected() -> builder.qeueue(getQueue()) 2019-01-03 00:44:34 +01:00
jcrode
c69be1f94b Pebble: add support for weather information for watchface M7S
Watchface name: Multifunctional Seven Segment 
Repo: https://github.com/cfg1/pebble-mss
2018-12-27 16:20:29 +01:00
Matthieu Baerts
c239d1767b emoji: only the init can be sync
I applied @cpfeiffer suggestion, then I saw it was already done :)

Here only the init part is set as 'synchronized', very small
optimisation but because this change is ready, why not sharing it :)
2018-12-26 20:52:49 +01:00
cpfeiffer
ad9b45a94d Make EmojiManager initialization synchronized 2018-12-23 23:40:02 +01:00
Matthieu Baerts
e12561dd1d emoji: add missing face_throwing_a_kiss
I just saw that order was wrong and one 'face' emoji was missing.
2018-12-23 23:39:09 +01:00
Matthieu Baerts
22904667b8 emoji: do a lazy initialisation
The goal is not to slowdown the startup but also to do this
initialisation only when it is needed.

Suggested-by: cpfeiffer
2018-12-23 23:39:09 +01:00
Stan Gomin
efd7195725 Avoid KIA Sportage appearing in the list of devices 2018-12-23 12:57:34 +01:00
Matthieu Baerts
c845e16cfa amazfitbit support: fix typo
senderOrTiltle -> senderOrTitle
2018-12-23 12:52:49 +01:00
Matthieu Baerts
ad0dbcb96a emoji: add support for simple emoji
Instead of displaying 'stuck_out_tongue', ':-P' is printed. Only the
common faces with ascii equivalent are mapped.
2018-12-23 12:52:49 +01:00
Matthieu Baerts
8d78c45e7d messages: convert emoji's to supported chars
Some devices don't support emoji's and display a series of `?` chars.
Instead of that, replace them by `:<emoji>:` text, e.g. `A 🐱` is
replaced by `A 🐱`.

This is done by using 'android-emojify' project and their
`EmojiUtils.shortCodify(text);` function.

For more details about this lib released under MIT license:

    https://anitrend.github.io/android-emojify/
2018-12-23 12:52:49 +01:00
Daniele Gobbetti
87d41bf09f Amazfit Cor: Whitelist firmware 1.7.20 and res 69 (stable) 2018-12-19 20:33:41 +01:00
Andreas Shimokawa
a354bdca30 try to satisfy lgtm 2018-12-18 10:26:29 +01:00
Andreas Shimokawa
0e6c0e8926 Mi Band 3: Whitelist FW 2.2.0.14
Closes #1365
2018-12-16 16:11:43 +01:00
Andreas Shimokawa
b020d59f54 Implement factory reset feature in debug activity
Implemented for Mi Band 1/2/3, Cor, Bip

Could be implemented for Pebble by deleting all blobdbs etc

Related to #109
2018-12-16 16:06:12 +01:00
Andreas Shimokawa
198b7cc9c6 Do not display paired devices that were not added to Gadgetbridge or have been deleted from Gadgetbridge
Closes #1360
2018-12-09 20:03:15 +01:00
Andreas Shimokawa
29a5878d22 Mi Band 3: Whitelist FW 2.2.0.12
Closes #1353
2018-12-09 17:55:29 +01:00
Andreas Shimokawa
983bc606a4 Amazfit Bip: Allow flashing latest (beta?) GPS firmware
Closes #1358
2018-12-09 17:26:56 +01:00
AndrewBedscastle
f90ba76fc0 No more hardcoded strings
Save and load packageName as lowercase String
Do not save empty strings as Notification Filter Entry
2018-12-06 15:11:50 +01:00
AndrewBedscastle
c5358bcbdf Merge branch 'upstream_master' into black_whitelist_for_notifications 2018-12-06 12:54:14 +01:00
abettenburg
d6190e6e59 Apps Notification can now be configured to filter notification content based on black- and whitelists
Go to notification blacklist, allow an app if blacklisted, than configure it's behavior with the menu icon on the right hand side.
Should be pretty much self explanatory.

Database Scheme raised to 20
2018-12-03 09:48:16 +01:00
Mormegil
657fc16f80 Enable No1F1 support for a Chinese clone
This cheap Chinese dummy-smart-watch apparently uses the same chip/protocol, but it reports with a different name, so we need to add it to the hardcoded name-based detection.
2018-12-02 23:34:01 +01:00
AndrewBedscastle
a0e6ee490e *** WIP *** 2018-11-30 15:36:20 +01:00
Matthieu Baerts
d60d10ddb1 notif: sanitize strings set by external apps
It seems some apps like Telegram add a lot of Unicode Control sequences
for unknown reasons. Because these strings are set by external apps, it
is safer to sanitize them. For the moment, only Unicode control
sequences are stripped.

Fixes: #1344
2018-11-26 07:33:44 +01:00
Matthieu Baerts
cbe3aa49f1 Apps: added p≡p as generic email app
This app is a fork of K9 Mail with a slightly different design and a
built-in security integration feature.

More details: https://f-droid.org/en/packages/security.pEp/
2018-11-24 12:46:48 +01:00
Andreas Shimokawa
740cf103f6 Initial support for per-device alarms and raising the number of available alarms
TODO:
- Fix alarm widget (how can we get the deviceId?)
- Get rid of GBAlarm in favour of DAO generated Alarm class
- Find better defaults
- Bonus: migrate old preferece based shared settings
2018-11-24 12:16:47 +01:00
Andreas Shimokawa
2facd9df6c Fix endless loop and resulting OOM when RTL support is enabled and a word is exactly the configured max line length
This should be reviewed by the original author
And could be connected to  #1311
2018-11-22 19:02:04 +01:00
Andreas Shimokawa
6f51d96879 bump version, update changelog 2018-11-17 16:43:14 +01:00
Andreas Shimokawa
7cf6a59420 fix everything 2018-11-17 16:35:37 +01:00
Andreas Shimokawa
b228c7b061 bump version, add changelogs 2018-11-15 20:30:15 +01:00
Andreas Shimokawa
59f8e72410 Notification actions refatoring and fixes
- Fixes "Mute, Open, Dismiss" to work again on pebble
- Greatly reduces complexity in PebbleProtocol, since all logic for adding specific reply actions to notification have been moved to generic code

Fixes the rest of #1336 (the part that says "Additionally, dismissing a notification on the watch no longer dismisses it on the Android device")
2018-11-15 15:53:04 +01:00
Andreas Shimokawa
bd874089d0 Ignore group summary of k9 notifications
Fixes part of #1336
2018-11-14 23:59:26 +01:00
Andreas Shimokawa
d6a06d0c16 Amazfit Bip: Whitelist Firmware 1.1.5.04
Closes #1333
2018-11-13 19:34:03 +01:00
Andreas Shimokawa
3207d32818 Amazfit Bip: Whitelist Firmware 1.1.5.02 2018-11-08 17:53:24 +01:00
Andreas Shimokawa
3f062e5732 Amazfit Bip: Attempt fixing GPS tracks recorded with latest firmware 2018-11-08 17:13:00 +01:00
Andreas Shimokawa
10b982f0ea Pebble: Proper fix for crash when no replies are set
Also:
- Support for multiple reply actions with canned replies (there must have been a crash before)
- When no replies are set use the firmware internal defaults

Fixes #1323
2018-11-08 08:36:37 +01:00
Andreas Shimokawa
8b3ba38344 Mi Band 3: Whitelist FW 2.0.0.4 2018-11-08 07:12:49 +01:00
Andreas Shimokawa
78addcb75c Pebble: try to prevent crash when no canned replies have been set 2018-11-07 22:02:58 +01:00
cpfeiffer
5644ae5925 Display measured hr value in Debug activity + cleanup
Fixes #1320
2018-11-05 23:27:29 +01:00
cpfeiffer
7cfe7d900a Comment out excessive logging #1311 2018-11-03 23:26:58 +01:00
Andreas Shimokawa
17a82f09f2 Pebble: Temporarily disable broken autoremove notification feature 2018-11-03 20:49:49 +01:00
Andreas Shimokawa
61872b7bbd Mi Band 3/Amazfit Bip/Amazfit Cor: Send Fahrenheit if units are set to imperial
Closes #1315
2018-11-03 20:44:30 +01:00
Andreas Shimokawa
fcfcc5cb0b Pebble: unify code for 2.x and >= 3.x notification encoding
Not very clean but deduplicated a lot of code which was no longer maintainable twice
2018-11-02 21:10:31 +01:00
cpfeiffer
effffddd8d fixed lgtm warnings 2018-11-02 00:09:30 +01:00
José Rebelo
ca32a2b5ac Start new activity with FLAG_ACTIVITY_NEW_TASK (fixes #1306) 2018-11-01 22:49:02 +01:00
cpfeiffer
7e9a9ca875 Added a TODO 2018-11-01 22:05:38 +01:00
cpfeiffer
435898ebc9 Move MiBand3-ism to MiBand3Support 2018-11-01 22:05:38 +01:00
Daniele Gobbetti
549dfce2e7 Pebble: generalize handling of incoming actions (from watch)
Also add missing casts back to int in NotificationListener
2018-11-01 19:40:26 +01:00
Andreas Shimokawa
7c0c50e960 Pebble: fix non-working SMS reply regression 2018-11-01 19:12:43 +01:00
Andreas Shimokawa
5fc2a704a3 Pebble: Always allow reply action even if untested features are turned off 2018-11-01 17:02:33 +01:00
Andreas Shimokawa
e54f1eaccc SMS: add reply action in generic code (no longer explicitly handled in PebbleProtocol) 2018-11-01 16:58:20 +01:00
Andreas Shimokawa
f05cc83848 Pebble: set MIN_ACTION_LENGTH = 6, which is correct 2018-11-01 16:02:29 +01:00
Andreas Shimokawa
22de76620d Debug: Add button to send a PebbleKit notification 2018-11-01 15:04:16 +01:00
Andreas Shimokawa
f3e16c5b1d Pebble: Fix regression causing "Open on Phone" and "Dismiss" to appear on Pebble notification with no corresponding Android notification (i.e. PebbleKit notifications) 2018-11-01 14:55:14 +01:00