xref: /aosp_15_r20/frameworks/base/tests/TrustTests/AndroidManifest.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2022 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19          package="android.trust.test"
20          android:targetSandboxVersion="2">
21
22    <uses-permission android:name="android.permission.ACCESS_KEYGUARD_SECURE_STORAGE" />
23    <uses-permission android:name="android.permission.BIND_DEVICE_ADMIN" />
24    <uses-permission android:name="android.permission.CONTROL_KEYGUARD" />
25    <uses-permission android:name="android.permission.DEVICE_POWER" />
26    <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
27    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
28    <uses-permission android:name="android.permission.MANAGE_USERS" />
29    <uses-permission android:name="android.permission.PROVIDE_TRUST_AGENT" />
30    <uses-permission android:name="android.permission.TRUST_LISTENER" />
31
32    <application>
33        <uses-library android:name="android.test.runner"/>
34        <activity android:name="android.trust.TrustTestActivity"
35                  android:exported="true">
36            <intent-filter>
37                <action android:name="android.intent.action.MAIN"/>
38                <category android:name="android.intent.category.LAUNCHER"/>
39            </intent-filter>
40        </activity>
41
42        <service
43            android:name=".UserUnlockRequestTrustAgent"
44            android:exported="true"
45            android:label="Test Agent"
46            android:permission="android.permission.BIND_TRUST_AGENT">
47            <intent-filter>
48                <action android:name="android.service.trust.TrustAgentService" />
49            </intent-filter>
50        </service>
51
52        <service
53            android:name=".LockUserTrustAgent"
54            android:exported="true"
55            android:label="Test Agent"
56            android:permission="android.permission.BIND_TRUST_AGENT">
57            <intent-filter>
58                <action android:name="android.service.trust.TrustAgentService" />
59            </intent-filter>
60        </service>
61
62        <service
63            android:name=".GrantAndRevokeTrustAgent"
64            android:exported="true"
65            android:label="Test Agent"
66            android:permission="android.permission.BIND_TRUST_AGENT">
67            <intent-filter>
68                <action android:name="android.service.trust.TrustAgentService" />
69            </intent-filter>
70        </service>
71
72        <service
73            android:name=".TemporaryAndRenewableTrustAgent"
74            android:exported="true"
75            android:label="Test Agent"
76            android:permission="android.permission.BIND_TRUST_AGENT">
77            <intent-filter>
78                <action android:name="android.service.trust.TrustAgentService" />
79            </intent-filter>
80        </service>
81
82        <service
83            android:name=".IsActiveUnlockRunningTrustAgent"
84            android:exported="true"
85            android:label="Test Agent"
86            android:permission="android.permission.BIND_TRUST_AGENT">
87            <intent-filter>
88                <action android:name="android.service.trust.TrustAgentService" />
89            </intent-filter>
90        </service>
91
92        <service
93            android:name=".UnlockAttemptTrustAgent"
94            android:exported="true"
95            android:label="Test Agent"
96            android:permission="android.permission.BIND_TRUST_AGENT">
97            <intent-filter>
98                <action android:name="android.service.trust.TrustAgentService" />
99            </intent-filter>
100        </service>
101
102    </application>
103
104    <!--  self-instrumenting test package. -->
105    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
106                     android:targetPackage="android.trust.test">
107    </instrumentation>
108</manifest>
109