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"> |
jdesprez | 503a3db | 2017-12-16 04:19:31 -0800 | [diff] [blame] | 17 | <option name="test-suite-tag" value="cts" /> |
Guang Zhu | c40b6fd | 2017-06-02 17:17:14 -0700 | [diff] [blame] | 18 | <option name="config-descriptor:metadata" key="component" value="framework" /> |
Eric Sandness | 0e745b1 | 2019-01-31 10:39:39 +0000 | [diff] [blame] | 19 | <!-- Instant apps can never be device admin / profile owner / device owner so positive tests |
| 20 | here are not applicable --> |
| 21 | <option name="config-descriptor:metadata" key="parameter" value="not_instant_app" /> |
| 22 | <!-- Not testing features backed by native code, so only need to run against one ABI --> |
| 23 | <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" /> |
| 24 | |
jovanak | fcd176c | 2019-01-16 13:14:34 -0800 | [diff] [blame] | 25 | <target_preparer class="com.android.tradefed.targetprep.SwitchUserTargetPreparer"> |
| 26 | <option name="user-type" value="system" /> |
| 27 | </target_preparer> |
| 28 | |
jdesprez | fd6d41d | 2017-04-11 15:43:44 -0700 | [diff] [blame] | 29 | <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> |
Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 30 | <option name="cleanup-apks" value="true" /> |
Suprabh Shukla | 017121a | 2017-02-17 15:29:35 -0800 | [diff] [blame] | 31 | <option name="install-arg" value="-t" /> |
Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 32 | <option name="test-file-name" value="CtsAdminApp.apk" /> |
| 33 | <option name="test-file-name" value="CtsAdminTestCases.apk" /> |
| 34 | </target_preparer> |
| 35 | |
| 36 | <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer"> |
Fyodor Kupolov | 39123d5 | 2015-12-04 11:56:42 -0800 | [diff] [blame] | 37 | <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver" /> |
| 38 | <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver2" /> |
arangelov | d348307 | 2018-02-23 17:43:22 +0000 | [diff] [blame] | 39 | <option name="run-command" value="dpm set-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver3" /> |
Suprabh Shukla | 017121a | 2017-02-17 15:29:35 -0800 | [diff] [blame] | 40 | <option name="run-command" value="dpm set-profile-owner --user cur android.admin.app/.CtsDeviceAdminProfileOwner" /> |
| 41 | <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminProfileOwner" /> |
| 42 | <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver" /> |
| 43 | <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver2" /> |
arangelov | d348307 | 2018-02-23 17:43:22 +0000 | [diff] [blame] | 44 | <option name="teardown-command" value="dpm remove-active-admin --user cur android.admin.app/.CtsDeviceAdminReceiver3" /> |
Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 45 | </target_preparer> |
| 46 | |
| 47 | <test class="com.android.tradefed.testtype.AndroidJUnitTest" > |
| 48 | <option name="package" value="android.admin.cts" /> |
Julien Desprez | 34a8fa5 | 2016-11-02 12:11:38 +0000 | [diff] [blame] | 49 | <option name="runtime-hint" value="17m" /> |
Stuart Scott | 7384c1d | 2015-09-29 12:00:22 -0700 | [diff] [blame] | 50 | </test> |
| 51 | |
Aaron Holden | 3f1c14f | 2016-04-27 16:04:35 -0700 | [diff] [blame] | 52 | </configuration> |