blob: 04dcef8a69930181cb1ef222d71a67d48f058a46 [file] [log] [blame]
Santos Cordon76faae52013-12-12 18:55:50 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Ihab Awadc17294c2014-08-04 19:23:37 -070018 coreApp="true"
Tyler Gunn7cc70b42014-09-12 22:17:27 -070019 package="com.android.server.telecom.tests"
Tyler Gunn84253572014-09-02 14:50:05 -070020 android:debuggable="true">
Yorke Lee7c65acd2014-06-04 11:11:03 -070021
Yorke Lee1cbe7022015-08-31 18:22:15 -070022 <uses-sdk
23 android:minSdkVersion="23"
Thomas Stuartb9694ff2022-09-27 15:02:26 -070024 android:targetSdkVersion="33" />
Yorke Lee1cbe7022015-08-31 18:22:15 -070025
yongnamcha63690322022-09-22 09:43:48 +000026 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
xiaotonj7478a782023-10-30 15:25:21 -070027 <uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING" />
Ihab Awadb63b57e2015-03-22 22:12:28 -070028 <!-- TODO: Needed because we call BluetoothAdapter.getDefaultAdapter() statically, and
29 BluetoothAdapter is a final class. -->
30 <uses-permission android:name="android.permission.BLUETOOTH" />
Thomas Stuartb9694ff2022-09-27 15:02:26 -070031 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
wescande63628112021-08-16 16:47:48 +020032 <uses-permission android:name="android.permission.BLUETOOTH_PRIVILEGED" />
Ihab Awadb63b57e2015-03-22 22:12:28 -070033 <!-- TODO: Needed because we call ActivityManager.getCurrentUser() statically. -->
34 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
Hall Liu9156bae2016-12-01 17:40:29 -080035 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
Ihab Awadb63b57e2015-03-22 22:12:28 -070036 <uses-permission android:name="android.permission.MANAGE_USERS" />
Tyler Gunnb1a95a72014-07-23 14:08:19 -070037
Tyler Gunn42ef8082015-11-24 15:34:34 -080038 <!-- Used to access TelephonyManager APIs -->
39 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
tonyzhu919ffa92018-10-01 16:28:52 +080040 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
Tyler Gunn42ef8082015-11-24 15:34:34 -080041
Kurt Dresner933add52020-10-01 17:53:32 -070042 <!-- Used to access Projection State APIs -->
43 <uses-permission android:name="android.permission.READ_PROJECTION_STATE"/>
44
Grace Jiaba2e1742021-04-21 17:01:53 -070045 <!-- Used to access PlatformCompat APIs -->
46 <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG" />
47 <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE" />
Grant Menkecc4f8bb2024-07-02 16:06:55 -070048
Grace Jia383126c2022-11-30 15:27:20 -080049 <!-- Used to register NotificationListenerService -->
50 <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
Grace Jiaba2e1742021-04-21 17:01:53 -070051
Grant Menkecc4f8bb2024-07-02 16:06:55 -070052 <!-- Used to query the audio framework to determine if a notification sound should play. -->
53 <uses-permission android:name="android.permission.QUERY_AUDIO_STATE"/>
54
Tyler Gunn84253572014-09-02 14:50:05 -070055 <application android:label="@string/app_name"
56 android:debuggable="true">
Santos Cordon76faae52013-12-12 18:55:50 -080057 <uses-library android:name="android.test.runner" />
Santos Cordon76faae52013-12-12 18:55:50 -080058 </application>
59
60 <!--
61 The prefered way is to use 'runtest':
Tyler Gunn7cc70b42014-09-12 22:17:27 -070062 runtest telecom-unit
Santos Cordon76faae52013-12-12 18:55:50 -080063
64 runtest is a wrapper around 'adb shell'. The low level shell command is:
Tyler Gunn7cc70b42014-09-12 22:17:27 -070065 adb shell am instrument -w com.android.server.telecom.tests/android.test.InstrumentationTestRunner
Santos Cordon76faae52013-12-12 18:55:50 -080066
67 To run a single test case:
Santos Cordonf78a72f2016-01-21 22:10:32 +000068 adb shell am instrument -w -e class com.android.server.telecom.tests.unit.FooUnitTest \
69 com.android.server.telecom.tests/android.test.InstrumentationTestRunner
Santos Cordon76faae52013-12-12 18:55:50 -080070 -->
KOUSHIK PANUGANTI7d111662019-03-15 15:46:39 -070071 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
Ihab Awadb63b57e2015-03-22 22:12:28 -070072 android:targetPackage="com.android.server.telecom.tests"
73 android:label="Telecomm application tests"
Tyler Gunn84253572014-09-02 14:50:05 -070074 android:debuggable="true"/>
Santos Cordon76faae52013-12-12 18:55:50 -080075</manifest>