Merge "Add instruction to put the device into test harness to error message" into tm-qpr-dev am: a3e61240b1

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21222958

Change-Id: Id84490b396e80ea95b4c578e8a096f81f3d55438
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
TreeHugger Robot
2023-02-06 10:05:47 +00:00
committed by Automerger Merge Worker

View File

@@ -242,7 +242,8 @@ public final class LauncherInstrumentation {
// Launcher should run in test harness so that custom accessibility protocol between
// Launcher and TAPL is enabled. In-process tests enable this protocol with a direct call
// into Launcher.
assertTrue("Device must run in a test harness",
assertTrue("Device must run in a test harness. "
+ "Run `adb shell setprop ro.test_harness 1` to enable it.",
TestHelpers.isInLauncherProcess() || ActivityManager.isRunningInTestHarness());
final String testPackage = getContext().getPackageName();