Home | History | Annotate | Download | only in package2
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2017 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.deviceadminservice" >
     19 
     20     <application android:testOnly="true">
     21         <uses-library android:name="android.test.runner" />
     22         <receiver
     23                 android:name=".MyOwner"
     24                 android:permission="android.permission.BIND_DEVICE_ADMIN"
     25                 >
     26             <meta-data android:name="android.app.device_admin"
     27                     android:resource="@xml/device_admin" />
     28             <intent-filter>
     29                 <action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
     30             </intent-filter>
     31         </receiver>
     32 
     33         <service
     34                 android:name=".MyService"
     35                 android:exported="false"
     36                 android:permission="android.permission.BIND_DEVICE_ADMIN" >
     37             <intent-filter>
     38                 <action android:name="android.app.action.DEVICE_ADMIN_SERVICE" />
     39             </intent-filter>
     40         </service>
     41 
     42     </application>
     43 
     44     <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
     45             android:targetPackage="com.android.cts.deviceadminservice" />
     46 </manifest>
     47