From ae3fc3ed4841d41f30c3a5a2af1d00c9d55d635c Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 15 Jun 2022 09:00:46 +0100 Subject: [PATCH] Extra QUERY_ALL_PACKAGES permission required for SDK 30 (which Play Store needs) --- app/build.gradle | 4 ++++ app/src/main/AndroidManifest.xml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 15a94424f..6e9fad295 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -160,6 +160,10 @@ android { resValue "string", "about_activity_title", "@string/about_activity_title_banglejs_main" resValue "string", "about_description", "@string/about_description_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 } } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0e0ab834b..6721ef0f3 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -31,6 +31,9 @@ + + +