From 9e07eab08f1d7049cf674c692b72216c5306a373 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Mon, 22 Mar 2021 15:33:01 -0600 Subject: [PATCH] Request new Bluetooth runtime permissions. An upcoming platform change is introducing a new "Nearby devices" runtime permission which contains the new BLUETOOTH_CONNECT and BLUETOOTH_SCAN permissions. We have logic in place to use to translate the older BLUETOOTH and BLUETOOTH_ADMIN permissions into these new runtime permissions, but modern apps will need to pivot to requesting them directly as part of targeting Android S. This change requests both the old and new permissions to avoid breakage while the new permission enforcement is being phased in. Bug: 181813006 Test: atest CtsPermission2TestCases Test: atest CtsPermission3TestCases Test: atest CtsStatsdAtomHostTestCases Change-Id: I0a6ff040520deaa7c7a6fecd83e8608a9bf28c4a --- AndroidManifest.xml | 2 ++ tests/anomaly-tester/AndroidManifest.xml | 4 +++- tests/componenttests/AndroidManifest.xml | 4 +++- tests/uitests/AndroidManifest.xml | 2 ++ tests/unit/AndroidManifest.xml | 2 ++ 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index eeb969464b5..6a4b8d56aa5 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -19,6 +19,8 @@ + + diff --git a/tests/anomaly-tester/AndroidManifest.xml b/tests/anomaly-tester/AndroidManifest.xml index d6f68a892c1..3c5fb1fc1c6 100644 --- a/tests/anomaly-tester/AndroidManifest.xml +++ b/tests/anomaly-tester/AndroidManifest.xml @@ -19,6 +19,8 @@ + + @@ -49,4 +51,4 @@ android:label="Settings Test Cases"> - \ No newline at end of file + diff --git a/tests/componenttests/AndroidManifest.xml b/tests/componenttests/AndroidManifest.xml index 54ea3746d97..fb6c26f09a8 100644 --- a/tests/componenttests/AndroidManifest.xml +++ b/tests/componenttests/AndroidManifest.xml @@ -20,6 +20,8 @@ + + @@ -37,4 +39,4 @@ android:label="Settings Test Cases"> - \ No newline at end of file + diff --git a/tests/uitests/AndroidManifest.xml b/tests/uitests/AndroidManifest.xml index dc6fc15d1cd..1072754be2b 100644 --- a/tests/uitests/AndroidManifest.xml +++ b/tests/uitests/AndroidManifest.xml @@ -26,6 +26,8 @@ + + diff --git a/tests/unit/AndroidManifest.xml b/tests/unit/AndroidManifest.xml index 616e6a9076a..7ef7ae1d2ba 100644 --- a/tests/unit/AndroidManifest.xml +++ b/tests/unit/AndroidManifest.xml @@ -19,6 +19,8 @@ + +