From 8914c5166074a55248a3879d70a5005d8c393ae4 Mon Sep 17 00:00:00 2001 From: vadimt Date: Fri, 19 Jun 2020 18:11:10 -0700 Subject: [PATCH] Workaround for activity manager crashing when trying to start an app It flakes when one of the tests starts calculator while there zero activities in the system. Bug: 143488140 Change-Id: Id9d350f0de8a83eb50e35e9efa4226b8d45ca641 --- .../tests/src/com/android/quickstep/FallbackRecentsTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java index bd8ab0860b..b9e0f628ab 100644 --- a/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +++ b/quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java @@ -131,6 +131,10 @@ public class FallbackRecentsTest { TestCommandReceiver.GET_SYSTEM_HEALTH_MESSAGE, startTime.toString()). getString("result")); } + // b/143488140 + mDevice.pressHome(); + mDevice.waitForIdle(); + startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR)); } // b/143488140