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 <split-permission> 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
80 lines
4.2 KiB
XML
80 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.settings.tests.unit">
|
|
|
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
|
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
|
|
<uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
|
|
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
|
|
|
<application android:debuggable="true">
|
|
<uses-library android:name="android.test.runner" />
|
|
<activity android:name="com.android.settings.tests.BluetoothRequestPermissionTest"
|
|
android:exported="true"
|
|
android:label="Bluetooth Perm Test" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity android:name="Operator" android:label="Operator Hook Test"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.OPERATOR_APPLICATION_SETTING" />
|
|
</intent-filter>
|
|
<meta-data android:name="com.android.settings.title" android:resource="@string/operator_settings_title" />
|
|
<meta-data android:name="com.android.settings.summary" android:resource="@string/operator_settings_summary" />
|
|
<meta-data android:name="com.android.settings.icon" android:resource="@drawable/ic_settings_applications" />
|
|
</activity>
|
|
<activity android:name="Manufacturer" android:label="Manufacturer Hook Test"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.settings.MANUFACTURER_APPLICATION_SETTING" />
|
|
</intent-filter>
|
|
<meta-data android:name="com.android.settings.title" android:resource="@string/manufacturer_settings_title" />
|
|
<meta-data android:name="com.android.settings.summary" android:resource="@string/manufacturer_settings_summary" />
|
|
<meta-data android:name="com.android.settings.icon" android:resource="@drawable/ic_settings_applications" />
|
|
</activity>
|
|
|
|
<service android:name="com.android.settings.accounts.TestAuthService"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.accounts.AccountAuthenticator" />
|
|
</intent-filter>
|
|
<meta-data android:name="android.accounts.AccountAuthenticator"
|
|
android:resource="@xml/authenticator" />
|
|
</service>
|
|
|
|
</application>
|
|
|
|
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
|
|
android:targetPackage="com.android.settings"
|
|
android:label="Settings Test Cases">
|
|
</instrumentation>
|
|
|
|
</manifest>
|