Home | History | Annotate | Download | only in deviceadmin
      1 <?xml version="1.0" encoding="utf-8"?>
      2 
      3 <!--
      4  * Copyright (C) 2011 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="android.deviceadmin.cts">
     21     <application>
     22 
     23         <uses-library android:name="android.test.runner"/>
     24 
     25         <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminReceiver"
     26                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     27             <meta-data android:name="android.app.device_admin"
     28                     android:resource="@xml/device_admin" />
     29             <intent-filter>
     30                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     31             </intent-filter>
     32         </receiver>
     33         
     34         <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminReceiver2"
     35                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     36             <meta-data android:name="android.app.device_admin"
     37                     android:resource="@xml/device_admin_2" />
     38             <intent-filter>
     39                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     40             </intent-filter>
     41         </receiver>
     42 
     43         <!-- Helper Activity used by Device Admin activation tests -->
     44         <activity android:name="android.deviceadmin.cts.CtsDeviceAdminActivationTestActivity"
     45                 android:label="Device Admin activation test" />
     46 
     47         <!-- Broken device admin: meta-data missing -->
     48         <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver"
     49                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     50             <intent-filter>
     51                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     52             </intent-filter>
     53         </receiver>
     54 
     55         <!-- Broken device admin: filter doesn't match an Intent with action
     56              android.app.action.DEVICE_ADMIN_ENABLED and nothing else (e.g.,
     57              data) set -->
     58         <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver2"
     59                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     60             <meta-data android:name="android.app.device_admin"
     61                     android:resource="@xml/device_admin" />
     62             <intent-filter>
     63                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     64                 <data android:scheme="https" />
     65             </intent-filter>
     66         </receiver>
     67 
     68         <!-- Broken device admin: meta-data element doesn't point to valid
     69              Device Admin configuration/description -->
     70         <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver3"
     71                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     72             <meta-data android:name="android.app.device_admin"
     73                     android:resource="@xml/broken_device_admin" />
     74             <intent-filter>
     75                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     76             </intent-filter>
     77         </receiver>
     78 
     79         <!-- Broken device admin: filter doesn't match Intents with action
     80              android.app.action.DEVICE_ADMIN_ENABLED -->
     81         <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver4"
     82                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     83             <meta-data android:name="android.app.device_admin"
     84                     android:resource="@xml/device_admin" />
     85             <intent-filter>
     86                 <action android:name="android.app.action.DEVICE_ADMIN_DISABLED" />
     87             </intent-filter>
     88         </receiver>
     89 
     90         <!-- Broken device admin: no intent-filter -->
     91         <receiver android:name="android.deviceadmin.cts.CtsDeviceAdminBrokenReceiver5"
     92                 android:permission="android.permission.BIND_DEVICE_ADMIN">
     93             <meta-data android:name="android.app.device_admin"
     94                     android:resource="@xml/device_admin" />
     95         </receiver>
     96 
     97     </application>
     98 
     99     <instrumentation android:name="android.test.InstrumentationTestRunner"
    100             android:targetPackage="com.android.cts.admin"
    101             android:label="Tests for the device admin APIs."/>
    102 </manifest>
    103