Makoto Onuki | f308df7 | 2017-04-04 16:37:21 -0700 | [diff] [blame] | 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" |
Makoto Onuki | 9a09cfe | 2017-04-25 13:22:22 -0700 | [diff] [blame] | 35 | android:exported="false"> |
Makoto Onuki | f308df7 | 2017-04-04 16:37:21 -0700 | [diff] [blame] | 36 | <intent-filter> |
| 37 | <action android:name="android.app.action.DEVICE_ADMIN_SERVICE" /> |
| 38 | </intent-filter> |
| 39 | </service> |
| 40 | |
| 41 | </application> |
| 42 | |
Brett Chabot | 244f038 | 2019-02-15 13:02:34 -0800 | [diff] [blame] | 43 | <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" |
Makoto Onuki | f308df7 | 2017-04-04 16:37:21 -0700 | [diff] [blame] | 44 | android:targetPackage="com.android.cts.deviceadminservice" /> |
| 45 | </manifest> |