1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 20:10:15 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities
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
..
appmanager Fossil/Skagen Hybrids: Add app/watchface downloading from watch to app manager 2023-01-07 23:07:34 +01:00
charts Extract ShowDurationDialog from ChartsActivity 2023-05-25 23:45:03 +01:00
devicesettings Zepp OS: Manage contacts on watch 2023-05-17 23:43:29 +01:00
AboutActivity.java Add commit id into About screen 2021-12-30 10:40:40 +01:00
AboutUserPreferencesActivity.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
AbstractFragmentPagerAdapter.java Update license headers 2020-01-09 10:44:32 +01:00
AbstractGBActivity.java Add black background to Dark Theme 2021-07-06 21:04:27 +02:00
AbstractGBFragment.java Update license headers 2020-01-09 10:44:32 +01:00
AbstractGBFragmentActivity.java Update license headers 2020-01-09 10:44:32 +01:00
AbstractListActivity.java Make Sports Activities list use Activity List style 2020-10-17 14:55:12 +02:00
AbstractSettingsActivity.java Activity Card: React to User settings. Unify step length 2021-12-05 10:34:55 +01:00
ActivitySummariesActivity.java Zepp OS: Implement workout fetching 2022-10-02 16:07:21 +02:00
ActivitySummariesChartFragment.java Extract inner classes from AbstractChartFragment 2023-05-25 23:40:21 +01:00
ActivitySummariesFilter.java Rework the Daily Widget: 2020-12-20 19:01:00 +01:00
ActivitySummariesGpsFragment.java Refactor and extend GpxParser 2023-05-14 14:19:48 +01:00
ActivitySummaryDetail.java Add menus to share GPX, raw summary, raw details 2023-05-14 16:10:25 +01:00
AlarmDetails.java Fixed a bunch of warnings 2020-08-26 09:38:31 +02:00
AndroidPairingActivity.java Update license headers 2020-01-09 10:44:32 +01:00
AppBlacklistActivity.java Reworking notification management 2021-10-10 11:49:13 +02:00
AppCompatPreferenceActivity.java Migrate to androidx support libraries and bump compile SDK version 2019-01-26 16:00:56 +01:00
BatteryInfoActivity.java SuperCars: fix periodicDataSender, add tricks 2022-10-04 00:04:53 +02:00
BatteryInfoChartFragment.java Extract inner classes from AbstractChartFragment 2023-05-25 23:40:21 +01:00
CalBlacklistActivity.java Make calendar blacklist configurable per device 2022-07-05 19:58:21 +02:00
ConfigureAlarms.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
ConfigureContacts.java Zepp OS: Manage contacts on watch 2023-05-17 23:43:29 +01:00
ConfigureReminders.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
ConfigureWorldClocks.java Zepp OS: Add World Clocks 2022-11-07 10:31:41 +01:00
ContactDetails.java Zepp OS: Manage contacts on watch 2023-05-17 23:43:29 +01:00
ControlCenterv2.java Bangle.js: Bump flavor targetSdkVersion to 31 2023-05-30 00:25:20 +02:00
DataManagementActivity.java AutoExporter changes for better operation and troubleshooting. 2022-03-06 13:03:59 +01:00
DebugActivity.java Bangle.js: Bump flavor targetSdkVersion to 31 2023-05-30 00:25:20 +02:00
DiscoveryActivity.java No functional changes, only run "Reformat code" 2022-11-27 19:02:52 +01:00
DiscoveryPairingPreferenceActivity.java Discovery activity: set scanning sensitivity to level 2 2022-06-13 06:11:26 +02:00
ExternalPebbleJSActivity.java Fixed a bunch of misspellings and formatting 2020-08-26 14:37:40 +03:00
FindPhoneActivity.java Amazfit GTR 4: Initial support 2022-10-22 22:03:49 +02:00
FwAppInstallerActivity.java Huami: Improve large firmware zip file handling 2022-09-06 00:54:57 +02:00
GBActivity.java Update license headers 2020-01-09 10:44:32 +01:00
GpxReceiverActivity.java Add null pointer check based on Google Play store reports: 2023-05-19 09:44:10 +01:00
HeartRateDialog.java add Heart icon (trigger heart measurement) to device action icons 2021-08-08 11:12:08 +02:00
HeartRateUtils.java Update license headers 2020-01-09 10:44:32 +01:00
InstallActivity.java Update license headers 2020-01-09 10:44:32 +01:00
NotificationFilterActivity.java Update license headers 2020-01-09 10:44:32 +01:00
NotificationManagementActivity.java Add fallback ping tone 2022-08-13 20:12:26 +02:00
OpenFwAppInstallerActivity.java Add device menu item to get to the FW/App Installer via an explanation activity 2022-07-12 10:50:41 +02:00
ReminderDetails.java Mi Band 3: Add support for Reminders 2021-12-11 22:39:18 +01:00
SettingsActivity.java Xiaomi Smart Band 7: Initial support 2022-08-19 23:13:27 +02:00
SleepAlarmWidgetConfigurationActivity.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
VibrationActivity.java Update license headers 2020-01-09 10:44:32 +01:00
WakeActivity.java Bangle.js: extending intents functionality (continuation) 2022-09-19 21:52:40 +02:00
WidgetAlarmsActivity.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
WidgetConfigurationActivity.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
WorldClockDetails.java Zepp OS: Add World Clocks 2022-11-07 10:31:41 +01:00