1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-26 03:46:49 +01:00
Commit Graph

8335 Commits

Author SHA1 Message Date
José Rebelo
eb7366c7e3 Huami 2021: Prevent duplicated payload logging 2023-06-03 20:25:23 +01:00
José Rebelo
ed3ce6fa9d Huami: Fix stress timestamp off by 1 minute 2023-06-02 23:31:47 +01:00
Aidan Crane
29bf03dceb
Re-added ability to make Mi Band 6 visible in third party apps 2023-05-31 02:42:45 +01:00
Ganblejs
7d1de4a5e8 Bangle.js: Bump flavor targetSdkVersion to 31
This also touches parts of the app not only used for bangle.js.
E.g. pending intents gets new flags from SDK 23 inclusive.
Bluetooth permissions are updated to work on SDK 31.
Permission handling is updated to the new way for doing it with
introduction of a new function. This is called for newer sdk versions.

bump Bangle.js flavor targetSdkVersion to 31

update comments re SDK 31

set the 'exported=true' I introduced to false instead - except for three places

add uses-permission for handling bluetooth in order to work on api >30

add if-blocks adding FLAG_IMMUTABLE to PendingIntents on api >30

add link to bluetooth documentation

Add comment to banglejs manifest. Add requirement annotation to ControlCenterv

bump compileSdkVersion to 31

add "OpenAppSettings" permission popup while working out individual permission popups on android 13

if SDK < 31 do permissions one by one, else send user to app info page to switch permissions manually

working solution, but needs cleaning

do some cleaning, not done though

remove some logging

remove import Log

tweak and remove toasts in new permissions handling

Change conditions `> Build.VERSION_CODES.Q` to `>= Build.VERSION_CODES.R` matching the style used everywhere else

Revert "Change conditions `> Build.VERSION_CODES.Q` to `>= Build.VERSION_CODES.R` matching the style used everywhere else"

This reverts commit 2929629ff43fbb685eb3d15e42459f321f68fa11.

Revert "add if-blocks adding FLAG_IMMUTABLE to PendingIntents on api >30"

This reverts commit ed8e1df7bb8b71fee745fbf9d10747d47c8f6cb8.

Pending intents gets `PendingIntent.FLAG_IMMUTABLE` if `(Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)`.

Bangle.js: undo `@RequiresApi` code R

... to remove error in Android Studio where declared required api was
higher then minSDK version.

Use FLAG_MUTABLE for reply to test notification

This should fix Gadgetbridge crashing when replying to the test
notification from the debug activity. As reported here:
https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2924#issuecomment-917282

Change to use FLAG_IMMUTABLE/_MUTABLE from SDK 23

... as suggested by Android Studio. This is supposed to make the app
more secure by not allowing certain changes to pending intents where
they are not expected. If I understood correctly.

Add PendingIntentUtils class to manage mutability
2023-05-30 00:25:20 +02:00
octospacc
514f983299 Intent API: Update DEBUG_SEND to DEBUG_SEND_NOTIFICATION, and make fields clearer 2023-05-29 23:55:54 +02:00
octospacc
2659a23421 Intent API: Add allow_debug_commands option and receivers for SEND, INCOMING_CALL 2023-05-29 22:57:34 +02:00
José Rebelo
7e15462593 Huami: Migrate activity fetching to repeated fetch operation 2023-05-29 20:11:42 +01:00
José Rebelo
e55a35eced Huami: Persist sleep respiratory rate data 2023-05-27 19:03:43 +01:00
José Rebelo
a1e07b5d1b Huami: Persist PAI samples 2023-05-27 19:02:01 +01:00
José Rebelo
24f78655c2 Huami: Persist heart rate max, resting and manual samples 2023-05-27 18:59:12 +01:00
José Rebelo
592356faf1 OsmAnd: Make navigation instructions configurable 2023-05-26 11:26:22 +00:00
Bilel MEDIMEGH
cc30276f45 Allow launching the calibration activity for Fossil Hybrid smartwatches regardless of the current variant of GB installed 2023-05-26 07:24:31 +00:00
José Rebelo
b4c2fa21bc Extract ShowDurationDialog from ChartsActivity 2023-05-25 23:45:03 +01:00
José Rebelo
79e3df4844 Extract inner classes from AbstractChartFragment
No code changes, will simplify future refactor and reuse.
2023-05-25 23:40:21 +01:00
José Rebelo
b091521155 Mi Band 7: Add preference to display call contact information 2023-05-24 23:47:20 +01:00
José Rebelo
347048dae5 Mi Band 7: Whitelist firmware 2.0.0.2 2023-05-24 23:33:02 +01:00
José Rebelo
a12d95196a Huami: Add AI type field to workout proto 2023-05-23 23:42:46 +01:00
José Rebelo
9d966c8179 Huami: Add max HR fetch operation (no db persistence) 2023-05-23 22:35:24 +01:00
José Rebelo
c79a833bbf Huami: Add PAI fetch operation (no db persistence) 2023-05-23 22:25:58 +01:00
José Rebelo
733e5dd290 Huami: Map UTC offset in HR and respiratory rate fetch operations 2023-05-23 00:05:03 +01:00
Martin Boonk
fd9efdcb72 Bangle.js: Match default interval from resource file 2023-05-22 22:17:10 +00:00
Martin Boonk
88161bed91 Bangle.js: Inform user if GPS set to off in settings 2023-05-22 22:17:10 +00:00
Martin Boonk
71d058ec78 Bangle.js: Set default value for GPS event interval like the internal GPS does 2023-05-22 22:17:10 +00:00
Martin Boonk
d4bcbc52fb Bangle.js: Fix typo 2023-05-22 22:17:10 +00:00
Martin Boonk
a57a8cc7ca Bangle.js: Fix location listener not being cleaned up when waiting for reconnect 2023-05-22 22:17:10 +00:00
José Rebelo
3f87bfadd4 Huami: Add queued fetch operations 2023-05-22 22:15:35 +00:00
José Rebelo
23e9a3deb1 Huami: Persist stress and SpO2 data 2023-05-22 22:15:35 +00:00
José Rebelo
25038d965f Introduce generic TimeSamples for recorded data 2023-05-22 22:15:35 +00:00
Gordon Williams
788cb15500 Based on Play Store crash reports and stack traces, add a null check to try and avoid crashes 2023-05-22 13:38:04 +01:00
Gordon Williams
82778c46a5 Bangle.js: ensure we can return to appsmanagementactivity after having opened another window
Attempting to handle file open and close dialogs from the WebView
2023-05-22 13:13:50 +01:00
Andreas Shimokawa
55e7f6595b fix build after rebase 2023-05-21 22:50:52 +02:00
Ernst
56e1efaa3d Fixed typo in "continue" turn and added roundabout left,right and offroute turns 2023-05-21 22:50:52 +02:00
Andreas Shimokawa
9ccd898d42 add supportNavigation() to cooridinator 2023-05-21 22:50:52 +02:00
Andreas Shimokawa
e7c048551f Infinitime: Fix icon mapping 2023-05-21 22:50:52 +02:00
Andreas Shimokawa
4cad3b3837 InfiniTime: support navigation app 2023-05-21 22:50:52 +02:00
Andreas Shimokawa
93b9ee735c add missing file 2023-05-21 22:50:52 +02:00
Andreas Shimokawa
d7e2f1ff8c make use of onSetNavigationInfo() in osmand receiver.
This is not implemented anywhere, purely preparing for further experiments
2023-05-21 22:50:52 +02:00
Andreas Shimokawa
48dee7486f add onSetNavigationInfo() to device interface 2023-05-21 22:50:52 +02:00
Andreas Shimokawa
6379036559 subscribt to voice info also 2023-05-21 22:50:52 +02:00
José Rebelo
473dcbec13 OsmAnd: Replace IOsmAndAidlInterface unneeded functions 2023-05-21 22:50:52 +02:00
Andreas Shimokawa
0d1a1f8a9f experiment with osmand
add osmand license note to readme
Cleanup unneeded aidl and java
2023-05-21 22:50:52 +02:00
José Rebelo
3a5d5dfbb0 Huami: Add sleep respiratory rate fetch operation (no db persistence) 2023-05-21 21:14:29 +01:00
José Rebelo
07357305cb Huami: Unify recorded data fetching in HuamiSupport 2023-05-20 20:44:18 +01:00
José Rebelo
8cda2f74e8 Extract NonSwipeableViewPager to standalone class 2023-05-19 21:24:27 +01:00
Gordon Williams
757e36ebd6 Bangle.js: Add message size limitation to Calendar and Messages - stops huge data streams being sent out esp for calendar events 2023-05-19 10:46:37 +01:00
Gordon Williams
0debd26a37 Add null pointer check based on Google Play store reports:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
2023-05-19 09:44:10 +01:00
José Rebelo
36d2fde49b Zepp OS: Improve weather models 2023-05-18 23:39:24 +01:00
José Rebelo
2b6a79f462 Zepp OS: Manage contacts on watch 2023-05-17 23:43:29 +01:00
José Rebelo
f68e4c865b Huami: Add stress, SpO2, heart rate fetch operations (no db persistence)
Introduce a reusable abstract logic for repeated fetch operations.

Add fetch operations for the following:
- Stress (manual and automatic)
- SpO2 (normal and sleep)
- Heart rate (manual and resting)
2023-05-17 21:56:54 +01:00
Arjan Schrijver
0bba156bec Deduplicate icon retrieval code 2023-05-17 14:09:17 +02:00
José Rebelo
b1a9adadc3 Intent API: Add dataTypes parameter for activity sync 2023-05-16 21:34:05 +01:00
José Rebelo
76d99f1c33 Zepp OS: Start new GPX segments on pause/resume 2023-05-14 16:22:32 +01:00
José Rebelo
a8b9d22313 Add menus to share GPX, raw summary, raw details 2023-05-14 16:10:25 +01:00
José Rebelo
9851493cf1 Zepp OS: Add gpx route file upload 2023-05-14 14:20:39 +01:00
José Rebelo
01ec74602a Refactor and extend GpxParser 2023-05-14 14:19:48 +01:00
José Rebelo
87c91fb9b0 Debug Activity: Allow pairing current device as companion 2023-05-13 17:07:02 +01:00
José Rebelo
e1cccd6953 Zepp OS: Refactor code for alarms, notifications, calendar, canned messages 2023-05-10 23:33:23 +01:00
Andreas Shimokawa
a61c9391a4 bump version, update changelogs 2023-05-10 15:27:31 +02:00
陈少举
f04f5acc37
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2020 of 2020 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/zh_Hans/
2023-05-10 11:50:13 +02:00
arjan-s
0bf487a9b5
Translated using Weblate (Dutch)
Currently translated at 100.0% (2020 of 2020 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nl/
2023-05-10 11:50:12 +02:00
Ihor Hordiichuk
8800aa17f1
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (2020 of 2020 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/uk/
2023-05-10 11:50:12 +02:00
Yaron Shahrabani
cdbebf35cf
Translated using Weblate (Hebrew)
Currently translated at 100.0% (2020 of 2020 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2023-05-10 11:50:11 +02:00
Vincèn PUJOL
13eb762f77
Translated using Weblate (French)
Currently translated at 100.0% (2020 of 2020 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/fr/
2023-05-10 11:50:10 +02:00
Manuel-Senpai
9113125ac4
Translated using Weblate (Spanish)
Currently translated at 100.0% (2020 of 2020 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/es/
2023-05-10 11:50:09 +02:00
arjan-s
9a4a6e4726
Translated using Weblate (Dutch)
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nl/
2023-05-08 22:45:40 +02:00
Ihor Hordiichuk
ad7baa2fa2
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/uk/
2023-05-08 22:45:40 +02:00
kirill blaze
ea811237c1
Translated using Weblate (Russian)
Currently translated at 84.6% (1704 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/ru/
2023-05-08 22:45:40 +02:00
Oleg
fb8edc7f33
Translated using Weblate (Russian)
Currently translated at 84.6% (1704 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/ru/
2023-05-08 22:45:40 +02:00
glemco
abf1d0b291
Translated using Weblate (Italian)
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/it/
2023-05-08 22:45:40 +02:00
Yaron Shahrabani
12dce8dca1
Translated using Weblate (Hebrew)
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2023-05-08 22:45:40 +02:00
nautilusx
a2dc32a8da
Translated using Weblate (German)
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/de/
2023-05-08 22:45:40 +02:00
陈少举
fb40350db9
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/zh_Hans/
2023-05-08 22:45:40 +02:00
Vincèn PUJOL
c59b0732ee
Translated using Weblate (French)
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/fr/
2023-05-08 22:45:40 +02:00
gallegonovato
ca698faa9d
Translated using Weblate (Spanish)
Currently translated at 100.0% (2014 of 2014 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/es/
2023-05-08 22:45:40 +02:00
DAWID
7459228974
Translated using Weblate (Polish)
Currently translated at 96.2% (1938 of 2013 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/pl/
2023-05-08 22:45:40 +02:00
Vincèn PUJOL
1f6a683295
Translated using Weblate (French)
Currently translated at 100.0% (2013 of 2013 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/fr/
2023-05-08 22:45:40 +02:00
Arjan Schrijver
f727f2fdcb Fossil/Skagen Hybrids: Pair watch to phone, fixes repeating confirmation request 2023-05-08 22:44:43 +02:00
José Rebelo
e0d481bb36 Sony WH-1000XM5: Add power off, fix battery, fix speak-to-chat fetch 2023-05-06 17:41:10 +01:00
José Rebelo
7b3fbeb4af Sony WH-1000XM5: Initial support 2023-05-06 16:03:48 +01:00
José Rebelo
e4933a0b42 Sony Headphones: Improve unit tests 2023-05-06 14:41:28 +01:00
陈少举
fec2838986
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2013 of 2013 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/zh_Hans/
2023-05-05 13:51:37 +02:00
arjan-s
207b9753b5
Translated using Weblate (Dutch)
Currently translated at 100.0% (2013 of 2013 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nl/
2023-05-05 13:51:37 +02:00
Yaron Shahrabani
dcb2203c02
Translated using Weblate (Hebrew)
Currently translated at 100.0% (2013 of 2013 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2023-05-05 13:51:36 +02:00
Manuel-Senpai
e0fa3749eb
Translated using Weblate (Spanish)
Currently translated at 100.0% (2013 of 2013 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/es/
2023-05-05 13:51:36 +02:00
Ihor Hordiichuk
787e8de1b5
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (2013 of 2013 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/uk/
2023-05-03 22:50:46 +02:00
Linerly
c863c5a699
Translated using Weblate (Indonesian)
Currently translated at 100.0% (2011 of 2011 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/id/
2023-05-03 21:50:53 +02:00
arjan-s
48d7518f20
Translated using Weblate (Dutch)
Currently translated at 100.0% (2011 of 2011 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nl/
2023-05-03 21:50:53 +02:00
Ihor Hordiichuk
70e98c2e9a
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (2011 of 2011 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/uk/
2023-05-03 21:50:53 +02:00
Vincèn PUJOL
fbd84d2c59
Translated using Weblate (French)
Currently translated at 100.0% (2011 of 2011 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/fr/
2023-05-03 21:50:53 +02:00
陈少举
5dd138d616
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2011 of 2011 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/zh_Hans/
2023-05-03 21:50:53 +02:00
Yaron Shahrabani
e1415eab31
Translated using Weblate (Hebrew)
Currently translated at 100.0% (2011 of 2011 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2023-05-03 21:50:53 +02:00
gallegonovato
fdede4e5d7
Translated using Weblate (Spanish)
Currently translated at 100.0% (2011 of 2011 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/es/
2023-05-03 21:50:52 +02:00
glemco
72bd4671e0
Translated using Weblate (Italian)
Currently translated at 100.0% (2010 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/it/
2023-05-03 21:50:52 +02:00
glemco
93e02a576d
Translated using Weblate (Italian)
Currently translated at 99.2% (1995 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/it/
2023-05-03 21:50:52 +02:00
Linerly
38730d03ec
Translated using Weblate (Indonesian)
Currently translated at 100.0% (2010 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/id/
2023-05-03 21:50:52 +02:00
陈少举
88bb594a36
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2010 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/zh_Hans/
2023-05-03 21:50:52 +02:00
arjan-s
dabd0c2821
Translated using Weblate (Dutch)
Currently translated at 100.0% (2010 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nl/
2023-05-03 21:50:52 +02:00
Ihor Hordiichuk
7316992019
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (2010 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/uk/
2023-05-03 21:50:52 +02:00
Yaron Shahrabani
96f64ea4c8
Translated using Weblate (Hebrew)
Currently translated at 100.0% (2010 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2023-05-03 21:50:52 +02:00
Manuel-Senpai
6f01ec24aa
Translated using Weblate (Spanish)
Currently translated at 100.0% (2010 of 2010 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/es/
2023-05-03 21:50:52 +02:00