Home | History | Annotate | Download | only in DeviceOwner
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2014 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.cts.deviceowner" >
     19 
     20     <uses-sdk android:minSdkVersion="20"/>
     21 
     22     <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
     23     <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
     24     <uses-permission android:name="android.permission.WRITE_SETTINGS" />
     25     <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
     26     <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
     27     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
     28     <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
     29     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
     30     <uses-permission android:name="android.permission.INTERNET" />
     31     <uses-permission android:name="android.permission.BLUETOOTH" />
     32     <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
     33     <uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
     34     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
     35 
     36     <application
     37         android:testOnly="true"
     38         android:usesCleartextTraffic="true">>
     39 
     40         <uses-library android:name="android.test.runner" />
     41         <receiver
     42             android:name="com.android.cts.deviceowner.BasicAdminReceiver"
     43             android:permission="android.permission.BIND_DEVICE_ADMIN">
     44             <meta-data android:name="android.app.device_admin"
     45                        android:resource="@xml/device_admin" />
     46             <intent-filter>
     47                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     48             </intent-filter>
     49         </receiver>
     50         <receiver
     51             android:name="com.android.cts.deviceowner.CreateAndManageUserTest$TestProfileOwner"
     52             android:permission="android.permission.BIND_DEVICE_ADMIN">
     53             <meta-data android:name="android.app.device_admin"
     54                        android:resource="@xml/device_admin" />
     55             <intent-filter>
     56                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     57             </intent-filter>
     58         </receiver>
     59         <receiver
     60                 android:name="com.android.cts.deviceowner.CreateAndManageUserTest$SecondaryUserAdminReceiver"
     61                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     62             <meta-data android:name="android.app.device_admin"
     63                        android:resource="@xml/device_admin" />
     64             <intent-filter>
     65                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     66             </intent-filter>
     67         </receiver>
     68 
     69         <service android:name="com.android.cts.deviceowner.CreateAndManageUserTest$PrimaryUserService"
     70                  android:exported="true"
     71                  android:permission="android.permission.BIND_DEVICE_ADMIN">
     72         </service>
     73 
     74         <activity
     75             android:name="com.android.cts.deviceowner.LockTaskUtilityActivity" />
     76         <activity
     77             android:name="com.android.cts.deviceowner.LockTaskUtilityActivityIfWhitelisted"
     78             android:launchMode="singleInstance"
     79             android:lockTaskMode="if_whitelisted">
     80             <intent-filter>
     81                 <action android:name="android.intent.action.MAIN"/>
     82                 <category android:name="android.intent.category.HOME"/>
     83                 <category android:name="android.intent.category.DEFAULT"/>
     84             </intent-filter>
     85         </activity>
     86 
     87         <activity
     88             android:name=".SetPolicyActivity"
     89             android:launchMode="singleTop">
     90             <intent-filter>
     91                 <action android:name="android.intent.action.MAIN" />
     92                 <category android:name="android.intent.category.DEFAULT"/>
     93             </intent-filter>
     94         </activity>
     95 
     96         <activity android:name="com.android.compatibility.common.util.devicepolicy.provisioning.StartProvisioningActivity"/>
     97 
     98     </application>
     99 
    100     <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
    101                      android:targetPackage="com.android.cts.deviceowner"
    102                      android:label="Device Owner CTS tests">
    103         <meta-data
    104             android:name="listener"
    105             android:value="com.android.cts.runner.CtsTestRunListener"/>
    106     </instrumentation>
    107 </manifest>
    108