1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 23:21:34 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util
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
..
calendar Make calendar blacklist configurable per device 2022-07-05 19:58:21 +02:00
gpx Refactor and extend GpxParser 2023-05-14 14:19:48 +01:00
language add CroatianTransliterator 2023-03-21 20:00:28 +00:00
protobuf Utils: added simple Protobuf creator 2022-09-15 01:40:05 +02:00
.gitignore Mi2: Initial support for wear location, hr during sleep and date format #323 2016-11-13 01:44:52 +01:00
AlarmUtils.java Handle one shot alarm for Fossil watch 2022-06-12 08:50:46 +02:00
AndroidUtils.java Add menus to share GPX, raw summary, raw details 2023-05-14 16:10:25 +01:00
ArrayUtils.java adding FitPro bands support 2021-09-21 16:37:19 +02:00
BcdUtil.java update license headers 2021-01-10 23:38:13 +01:00
BitmapUtil.java Xiaomi Smart Band 7: Initial support 2022-08-19 23:13:27 +02:00
BondingInterface.java Improved logging in bonding and tried to recover from weirdness 2021-05-30 01:00:48 +03:00
BondingUtil.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
CheckSums.java Change CRC16 method 2021-11-13 21:43:05 +01:00
CRC32C.java update license headers 2021-01-10 23:38:13 +01:00
CryptoUtils.java Mi Band 6: Sync alarms set on the watch like on Amazfit Bip U and others 2022-02-02 12:57:25 +01:00
DateTimeUtils.java Introduce generic TimeSamples for recorded data 2023-05-22 22:15:35 +00:00
DeviceHelper.java Sony WH-1000XM5: Initial support 2023-05-06 16:03:48 +01:00
ECDH_B163.java Dirty port tinyECDH to Java, remove ndk dependencies 2022-09-27 10:51:14 +02:00
EmojiConverter.java update license headers 2021-01-10 23:38:13 +01:00
FileUtils.java Remove KitKat support 2022-09-10 12:04:16 +02:00
FormatUtils.java Refactor formatting of distance strings 2021-12-30 07:55:20 +01:00
GB.java Bangle.js: Bump flavor targetSdkVersion to 31 2023-05-30 00:25:20 +02:00
GBPrefs.java Device FlipperZero: added basic support for the Flipper Zero (#2840) 2022-09-04 23:05:57 +02:00
GridAutoFitLayoutManager.java Fossil Hybrid HR: Add watchface preview images in the app manager 2022-06-17 14:45:10 +02:00
ImportExportSharedPreferences.java fix saving app notification/pebble blacklist preferences on import 2023-03-18 17:54:55 +00:00
JavaExtensions.java update license headers 2021-01-10 23:38:13 +01:00
LimitedQueue.java update license headers 2021-01-10 23:38:13 +01:00
MapUtils.java Xiaomi Smart Band 7: Initial support 2022-08-19 23:13:27 +02:00
NotificationUtils.java Zepp OS: Fix notification icons for work profile apps 2022-12-08 18:14:07 +00:00
Optional.java Fix calls to unsupported API functions 2022-10-02 16:04:14 +02:00
PebbleUtils.java update license headers 2021-01-10 23:38:13 +01:00
PendingIntentUtils.java Bangle.js: Bump flavor targetSdkVersion to 31 2023-05-30 00:25:20 +02:00
Prefs.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
RtlUtils.java update license headers 2021-01-10 23:38:13 +01:00
StringUtils.java Zepp OS: Add gpx route file upload 2023-05-14 14:20:39 +01:00
SwipeEvents.java update license headers 2021-01-10 23:38:13 +01:00
TimePreference.java update license headers 2021-01-10 23:38:13 +01:00
UriHelper.java update license headers 2021-01-10 23:38:13 +01:00
Version.java Fossil HR: fixed version calculation 2022-08-27 01:44:41 +02:00
WebViewSingleton.java Remove KitKat support 2022-09-10 12:04:16 +02:00
WidgetPreferenceStorage.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
XTimePreference.java update license headers 2021-01-10 23:38:13 +01:00
XTimePreferenceFragment.java update license headers 2021-01-10 23:38:13 +01:00
ZipFile.java Amazfit GTR 4/GTS 4: Add AGPS Updates 2023-01-05 11:31:51 +00:00
ZipFileException.java Amazfit GTR 4/GTS 4: Add AGPS Updates 2023-01-05 11:31:51 +00:00