xref: /aosp_15_r20/cts/common/device-side/bedstead/testapp/manifests/TestOnlyDeviceAdminManifest.xml (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1*b7c941bbSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*b7c941bbSAndroid Build Coastguard Worker
3*b7c941bbSAndroid Build Coastguard Worker<!--
4*b7c941bbSAndroid Build Coastguard Worker  ~ Copyright (C) 2022 The Android Open Source Project
5*b7c941bbSAndroid Build Coastguard Worker  ~
6*b7c941bbSAndroid Build Coastguard Worker  ~ Licensed under the Apache License, Version 2.0 (the "License");
7*b7c941bbSAndroid Build Coastguard Worker  ~ you may not use this file except in compliance with the License.
8*b7c941bbSAndroid Build Coastguard Worker  ~ You may obtain a copy of the License at
9*b7c941bbSAndroid Build Coastguard Worker  ~
10*b7c941bbSAndroid Build Coastguard Worker  ~      http://www.apache.org/licenses/LICENSE-2.0
11*b7c941bbSAndroid Build Coastguard Worker  ~
12*b7c941bbSAndroid Build Coastguard Worker  ~ Unless required by applicable law or agreed to in writing, software
13*b7c941bbSAndroid Build Coastguard Worker  ~ distributed under the License is distributed on an "AS IS" BASIS,
14*b7c941bbSAndroid Build Coastguard Worker  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15*b7c941bbSAndroid Build Coastguard Worker  ~ See the License for the specific language governing permissions and
16*b7c941bbSAndroid Build Coastguard Worker  ~ limitations under the License.
17*b7c941bbSAndroid Build Coastguard Worker  -->
18*b7c941bbSAndroid Build Coastguard Worker
19*b7c941bbSAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20*b7c941bbSAndroid Build Coastguard Worker          package="com.android.bedstead.testapp.TestOnlyDeviceAdminTestApp">
21*b7c941bbSAndroid Build Coastguard Worker    <application android:appComponentFactory="com.android.bedstead.testapp.TestAppAppComponentFactory"
22*b7c941bbSAndroid Build Coastguard Worker                 android:label="DeviceAdminTestApp" android:testOnly="true">
23*b7c941bbSAndroid Build Coastguard Worker
24*b7c941bbSAndroid Build Coastguard Worker        <receiver android:name=".DeviceAdminReceiver"
25*b7c941bbSAndroid Build Coastguard Worker                  android:permission="android.permission.BIND_DEVICE_ADMIN"
26*b7c941bbSAndroid Build Coastguard Worker                  android:exported="true">
27*b7c941bbSAndroid Build Coastguard Worker            <meta-data android:name="android.app.device_admin"
28*b7c941bbSAndroid Build Coastguard Worker                       android:resource="@xml/device_admin"/>
29*b7c941bbSAndroid Build Coastguard Worker            <meta-data android:name="supports-transfer-ownership" android:value="true"/>
30*b7c941bbSAndroid Build Coastguard Worker            <intent-filter>
31*b7c941bbSAndroid Build Coastguard Worker                <action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
32*b7c941bbSAndroid Build Coastguard Worker            </intent-filter>
33*b7c941bbSAndroid Build Coastguard Worker        </receiver>
34*b7c941bbSAndroid Build Coastguard Worker    </application>
35*b7c941bbSAndroid Build Coastguard Worker    <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="34"/>
36*b7c941bbSAndroid Build Coastguard Worker</manifest>
37