Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 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 | <configuration description="Config for the CTS device admin tests"> |
| 17 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.ApkInstaller"> |
| 18 | <option name="cleanup-apks" value="true" /> |
| 19 | <option name="test-file-name" value="CtsAdminApp.apk" /> |
| 20 | <option name="test-file-name" value="CtsAdminTestCases.apk" /> |
| 21 | </target_preparer> |
| 22 | |
| 23 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
Fyodor Kupolov | 39123d5 | 2015-12-04 11:56:42 -0800 | [diff] [blame] | 24 | <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver" /> |
| 25 | <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver2" /> |
Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 26 | </target_preparer> |
| 27 | |
| 28 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 29 | <option name="package" value="android.admin.cts" /> |
Aaron Holden | 3f1c14f | 2016-04-27 16:04:35 -0700 | [diff] [blame] | 30 | <option name="runtime-hint" value="20s" /> |
Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 31 | </test> |
| 32 | |
| 33 | <!-- Instrument the app to clear the device admins so the apk can be uninstalled --> |
| 34 | <target_preparer class="com.android.compatibility.common.tradefed.targetprep.ApkInstrumentationPreparer"> |
| 35 | <option name="apk" value="CtsAdminApp.apk" /> |
| 36 | <option name="package" value="android.admin.app" /> |
Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 37 | <option name="when" value="after" /> |
| 38 | </target_preparer> |
Aaron Holden | 3f1c14f | 2016-04-27 16:04:35 -0700 | [diff] [blame] | 39 | </configuration> |