simpleperf: remove keyguard when running cts test.
This is to test recording apps in CtsSimpleperfTestCases.
Bug: 141882072
Test: run `cts test -m CtsSimpleperfTestCases`.
Change-Id: I007c0272d3dfc8df27b3b9360381be0e736ef839
diff --git a/tests/tests/simpleperf/AndroidTest.xml b/tests/tests/simpleperf/AndroidTest.xml
index bf6cb9e..2f3f38e 100644
--- a/tests/tests/simpleperf/AndroidTest.xml
+++ b/tests/tests/simpleperf/AndroidTest.xml
@@ -33,6 +33,8 @@
<option name="test-file-name" value="CtsSimpleperfProfileableApp.apk" />
</target_preparer>
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
+ <option name="run-command" value="input keyevent KEYCODE_WAKEUP" />
+ <option name="run-command" value="wm dismiss-keyguard" />
<option name="run-command" value="am start com.android.simpleperf.debuggable/.MainActivity" />
<option name="run-command" value="am start com.android.simpleperf.profileable/.MainActivity" />
</target_preparer>