Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 545adf8d authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Revert "Use RunHostCommandTargetPreparer to enable TAPL"

This reverts commit e7e97b72.

Reason for revert: While this command works locally (atest) on all build types, it does not work when multiple devices are simultaneously connected to the computer

Change-Id: I9744d02f0eafe2fef3076c62cd07a8cac05546da
parent e7e97b72
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -13,12 +13,8 @@
        <option name="run-command" value="cmd window tracing level all" />
        <!-- inform WM to log all transactions -->
        <option name="run-command" value="cmd window tracing transaction" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.RunHostCommandTargetPreparer" >
        <!-- Prevent TAPL error for Nexus Launcher (http://go/tapl) -->
        <option name="host-setup-command" value="adb root" />
        <option name="host-setup-command" value="adb shell setprop ro.test_harness 1" />
        <option name="host-setup-command" value="adb shell am force-stop com.google.android.apps.nexuslauncher" />
        <!-- restart launcher to activate TAPL -->
        <option name="run-command" value="setprop ro.test_harness 1 ; am force-stop com.google.android.apps.nexuslauncher" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.DeviceCleaner">
        <!-- reboot the device to teardown any crashed tests -->