Disable ScreenLock when running ALL CTS modules.
Currently, ScreenLock option "Swipe" is treated by cts-tradefed as the
same as "None". As a result, test commands are still run despite the
fact that the device has ScreenLock set.
Bug: 145198649
Test: adb unroot, adb shell locksettings set-disabled true
Change-Id: Ic6be2ff663d4c2665aad3544c8a1883936667354
diff --git a/tools/cts-tradefed/res/config/cts-preconditions.xml b/tools/cts-tradefed/res/config/cts-preconditions.xml
index 6cac077..6a4f47e 100644
--- a/tools/cts-tradefed/res/config/cts-preconditions.xml
+++ b/tools/cts-tradefed/res/config/cts-preconditions.xml
@@ -58,6 +58,8 @@
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
<option name="run-command" value="rm -rf /sdcard/device-info-files" />
<option name="run-command" value="rm -rf /sdcard/report-log-files" />
+ <!-- Disable keyguard -->
+ <option name="run-command" value="locksettings set-disabled true"/>
</target_preparer>
<target_preparer class="com.android.compatibility.common.tradefed.targetprep.DeviceInfoCollector">