1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-16 15:09:26 +01:00

Extra QUERY_ALL_PACKAGES permission required for SDK 30 (which Play Store needs)

This commit is contained in:
Gordon Williams 2022-06-15 09:00:46 +01:00
parent 1eab878c8e
commit ae3fc3ed48
2 changed files with 7 additions and 0 deletions

View File

@ -160,6 +160,10 @@ android {
resValue "string", "about_activity_title", "@string/about_activity_title_banglejs_main" resValue "string", "about_activity_title", "@string/about_activity_title_banglejs_main"
resValue "string", "about_description", "@string/about_description_banglejs_main" resValue "string", "about_description", "@string/about_description_banglejs_main"
resValue "string", "gadgetbridge_running", "@string/gadgetbridge_running_banglejs_main" resValue "string", "gadgetbridge_running", "@string/gadgetbridge_running_banglejs_main"
targetSdkVersion 30 // SDK 30 needed for play store
// SDK 30 stops us querying package names - https://developer.android.com/training/package-visibility
// which we need for getting app name from notifications. We have to request android.permission.QUERY_ALL_PACKAGES
// as well for SDK 30
} }
} }

View File

@ -31,6 +31,9 @@
<uses-permission <uses-permission
android:name="android.permission.MEDIA_CONTENT_CONTROL" android:name="android.permission.MEDIA_CONTENT_CONTROL"
tools:ignore="ProtectedPermissions" /> tools:ignore="ProtectedPermissions" />
<!-- SDK 30 https://developer.android.com/training/package-visibility for getting app name from notifications -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<!-- Used for background service --> <!-- Used for background service -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />