Merge "use test app's data folder as filter directory" am: 3570cf152a

Original change: https://android-review.googlesource.com/c/platform/packages/apps/RemoteProvisioner/+/1911710

Change-Id: I9f813b0982fa9e85b8779f45effbe3fcb0f3ec6f
diff --git a/tests/unittests/AndroidTest.xml b/tests/unittests/AndroidTest.xml
index 429e670..0fc41f1 100644
--- a/tests/unittests/AndroidTest.xml
+++ b/tests/unittests/AndroidTest.xml
@@ -21,6 +21,10 @@
     <option name="test-suite-tag" value="apct" />
     <option name="test-suite-tag" value="apct-instrumentation" />
 
+    <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer">
+        <option name="force-root" value="true" />
+    </target_preparer>
+
     <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
         <option name="cleanup-apks" value="true" />
         <option name="test-file-name" value="RemoteProvisionerUnitTests.apk" />
@@ -29,5 +33,6 @@
     <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
         <option name="package" value="com.android.remoteprovisioner.unittest" />
         <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
+        <option name="test-filter-dir" value="/data/data/com.android.remoteprovisioner" />
     </test>
 </configuration>