xref: /aosp_15_r20/cts/common/device-side/bedstead/testapp/manifests/NotEmptyTestAppManifest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4  ~ Copyright (C) 2021 The Android Open Source Project
5  ~
6  ~ Licensed under the Apache License, Version 2.0 (the "License");
7  ~ you may not use this file except in compliance with the License.
8  ~ You may obtain a copy of the License at
9  ~
10  ~      http://www.apache.org/licenses/LICENSE-2.0
11  ~
12  ~ Unless required by applicable law or agreed to in writing, software
13  ~ distributed under the License is distributed on an "AS IS" BASIS,
14  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ~ See the License for the specific language governing permissions and
16  ~ limitations under the License.
17  -->
18
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20          package="com.android.bedstead.testapp.NotEmptyTestApp">
21
22    <application android:label="NotEmptyTestApp">
23        <meta-data android:name="test-metadata-key" android:value="test-metadata-value" />
24        <meta-data android:name="test-metadata-with-res-key"
25                   android:value="test_xml"
26                   android:resource="@xml/test_xml" />
27
28        <activity-alias
29            android:name="android.testapp.TestSchemeActivityAlias"
30            android:targetActivity="android.testapp.TestSchemeActivity"
31            android:exported="true">
32            <intent-filter >
33                <action android:name="android.intent.action.ACTIVITY_ALIAS_ACTION" />
34                <category android:name="android.intent.category.DEFAULT" />
35            </intent-filter>
36        </activity-alias>
37
38        <!--This should only be included in a single TestApp-->
39        <activity android:name="android.testapp.UniqueActivity" android:exported="true">
40            <intent-filter>
41                <category android:name="android.intent.category.DEFAULT"/>
42                <action android:name="com.android.testapp.UNIQUE_ACTIVITY_ACTION" />
43            </intent-filter>
44        </activity>
45        <activity android:name="android.testapp.TestSchemeActivity" android:exported="true">
46            <intent-filter>
47                <action android:name="android.intent.action.VIEW" />
48                <category android:name="android.intent.category.DEFAULT" />
49                <category android:name="android.intent.category.BROWSABLE" />
50                <data android:scheme="test" />
51            </intent-filter>
52        </activity>
53        <activity android:name="android.testapp.DefaultLauncherActivity" android:exported="true">
54            <intent-filter>
55                <action android:name="android.intent.action.MAIN" />
56                <category android:name="android.intent.category.HOME"/>
57                <category android:name="android.intent.category.DEFAULT"/>
58            </intent-filter>
59        </activity>
60        <service
61            android:name=".TestSystemCredentialProviderService"
62            android:enabled="true"
63            android:exported="true"
64            android:permission="android.permission.BIND_CREDENTIAL_PROVIDER_SERVICE">
65            <intent-filter>
66                <action android:name="android.service.credentials.system.CredentialProviderService"/>
67            </intent-filter>
68
69            <!-- TODO(274582121): used by make CredentialManager treat this app as a system app -->
70            <meta-data android:name="android.credentials.testsystemprovider" android:value="true" />
71        </service>
72    </application>
73    <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="35"/>
74</manifest>
75