diff options
author | 2022-02-28 12:17:33 +0000 | |
---|---|---|
committer | 2022-02-28 12:17:33 +0000 | |
commit | ab3f9b86e45944f4b0672daa82cddbcf71ce6b0d (patch) | |
tree | 2ec1f90fe1dc15056f8698f98cfa31db0d14e224 | |
parent | d62c6e6c7dbb1360531894303d7f91ee8b7e290b (diff) |
Make inprocesstests run with root.
This fixes these tests, which after ag/16987854 must run with root
to bypass the signature check and allow them to instrument the
system server.
Bug: 221821427
Test: atest FrameworksInProcessTests
Change-Id: Ic68d85f8a508861ff5a0e26a4703e7fa125f880a
-rw-r--r-- | services/tests/inprocesstests/AndroidTest.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/tests/inprocesstests/AndroidTest.xml b/services/tests/inprocesstests/AndroidTest.xml index b541512fdc9e..f5fea1bed445 100644 --- a/services/tests/inprocesstests/AndroidTest.xml +++ b/services/tests/inprocesstests/AndroidTest.xml @@ -18,6 +18,8 @@ <option name="test-suite-tag" value="apct" /> <option name="test-suite-tag" value="apct-instrumentation" /> + <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/> + <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller"> <option name="cleanup-apks" value="true"/> <option name="test-file-name" value="FrameworksInProcessTests.apk"/> |