Try disabling phenotype flag syncing for dexpreopt tests.
The build system builds dexpreopt artifacts with the UFFD flag being
"true", but the service pushes "false" to the device. This change
disables phenotype flag syncing tp avoid this.
Bug: 286871536
Test: Presubmit
Change-Id: Ib35c603af459fd2502d233ce0f26c8c3e9f121d0
diff --git a/test/dexpreopt/art_standalone_dexpreopt_tests.xml b/test/dexpreopt/art_standalone_dexpreopt_tests.xml
index 873b6a2..6fbd650 100644
--- a/test/dexpreopt/art_standalone_dexpreopt_tests.xml
+++ b/test/dexpreopt/art_standalone_dexpreopt_tests.xml
@@ -19,6 +19,11 @@
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
+ <!-- Disable syncing to prevent overwriting flags during testing. -->
+ <target_preparer class="com.android.tradefed.targetprep.DeviceSetup" >
+ <option name="disable-device-config-sync" value="true" />
+ </target_preparer>
+
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
<option name="cleanup" value="true" />
<option name="push" value="{MODULE}->/data/local/tmp/{MODULE}/{MODULE}" />