From c0bfff4c6d8db79b7868e0cf8173a112d2e51309 Mon Sep 17 00:00:00 2001 From: mvevitsis <12841042+mvevitsis@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:52:11 -0800 Subject: [PATCH 1/2] Update AndroidManifest.xml Remove unnecessary permissions --- app/src/main/AndroidManifest.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 460b40c..fa86d0a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,12 +1,13 @@ - - + + - From 3eafd1a643b5f0a4ff3f78411cd36e57494e08f7 Mon Sep 17 00:00:00 2001 From: mvevitsis <12841042+mvevitsis@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:53:38 -0800 Subject: [PATCH 2/2] Update SplashScreen.kt Change which permissions are checked at launch to reflect permissions removed when targeting Android 12 --- .../com/github/roarappstudio/btkontroller/SplashScreen.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/github/roarappstudio/btkontroller/SplashScreen.kt b/app/src/main/java/com/github/roarappstudio/btkontroller/SplashScreen.kt index e4daed5..03e5c93 100644 --- a/app/src/main/java/com/github/roarappstudio/btkontroller/SplashScreen.kt +++ b/app/src/main/java/com/github/roarappstudio/btkontroller/SplashScreen.kt @@ -10,9 +10,9 @@ class SplashScreen: Activity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - if (checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) { + if (checkSelfPermission(Manifest.permission.BLUETOOTH_SCAN) != PackageManager.PERMISSION_GRANTED) { requestPermissions( - arrayOf(Manifest.permission.ACCESS_COARSE_LOCATION), 0 + arrayOf(Manifest.permission.BLUETOOTH_SCAN), 0 ) } else { @@ -30,4 +30,4 @@ class SplashScreen: Activity() { finish() } -} \ No newline at end of file +}