android_ACTS: Skip setup wizard.
Skips the setup wizard following the installation of the sl4a apk.
BUG=b:28027976
TEST=None
Change-Id: I90507ebbe0c1f90ef21e92079c1435859579786b
Reviewed-on: https://chromium-review.googlesource.com/345573
Commit-Ready: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Reviewed-by: Ang Li <angli@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
diff --git a/server/hosts/adb_host.py b/server/hosts/adb_host.py
index 0a49176..7a9de26 100644
--- a/server/hosts/adb_host.py
+++ b/server/hosts/adb_host.py
@@ -1341,6 +1341,9 @@
timeout = (WAIT_UP_AFTER_WIPE_TIME_SECONDS if wipe else
DEFAULT_WAIT_UP_TIME_SECONDS)
self.ensure_adb_mode(timeout=timeout)
+ # Skip the setup wizard.
+ self.run('am start -n com.google.android.setupwizard/'
+ '.SetupWizardExitActivity')
logging.info('Successfully installed Android build staged at %s.',
build_url)