1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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"
18        package="com.android.frameworks.mockingservicestests">
19
20    <uses-sdk android:targetSdkVersion="31" />
21
22    <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
23    <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
24    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
25    <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
26    <uses-permission android:name="android.permission.HARDWARE_TEST"/>
27    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
28    <uses-permission android:name="android.permission.MANAGE_APPOPS"/>
29    <uses-permission android:name="android.permission.MONITOR_DEVICE_CONFIG_ACCESS"/>
30    <uses-permission android:name="android.permission.WRITE_ALLOWLISTED_DEVICE_CONFIG"/>
31    <uses-permission android:name="android.permission.READ_WRITE_SYNC_DISABLED_MODE_CONFIG"/>
32    <uses-permission android:name="android.permission.WAKE_LOCK"/>
33    <uses-permission
34        android:name="android.permission.OVERRIDE_COMPAT_CHANGE_CONFIG_ON_RELEASE_BUILD"/>
35    <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
36    <uses-permission android:name="android.permission.MANAGE_GAME_ACTIVITY" />
37    <uses-permission android:name="android.permission.SET_ALWAYS_FINISH" />
38    <uses-permission android:name="android.permission.MANAGE_USERS" />
39    <uses-permission android:name="android.permission.USE_BIOMETRIC_INTERNAL" />
40
41    <!-- needed by MasterClearReceiverTest to display a system dialog -->
42    <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>
43
44    <!-- needed by TrustManagerServiceTest to access LockSettings' secure storage -->
45    <uses-permission android:name="android.permission.ACCESS_KEYGUARD_SECURE_STORAGE" />
46
47    <!-- needed by GameManagerServiceTest because GameManager creates a UidObserver -->
48    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
49
50    <application android:testOnly="true"
51                 android:debuggable="true">
52        <uses-library android:name="android.test.runner" />
53        <activity
54            android:name="android.service.games.GameSessionTrampolineActivityTest$TestActivity" />
55    </application>
56
57    <instrumentation
58        android:name="androidx.test.runner.AndroidJUnitRunner"
59        android:targetPackage="com.android.frameworks.mockingservicestests"
60        android:label="Frameworks Mocking Services Tests" />
61</manifest>
62