=== modified file 'lava_dispatcher/client/base.py'
@@ -294,12 +294,11 @@
def wait_home_screen(self):
timeout = self._client.config.android_home_screen_timeout
- launcher_pat = ('Displayed com.android.launcher/'
- 'com.android.launcher2.Launcher:')
+ activity_pat = self._client.config.android_wait_for_home_screen_activity
#waiting for the home screen displayed
try:
self.run('logcat -s ActivityManager:I',
- response=[launcher_pat],
+ response=[activity_pat],
timeout=timeout, wait_prompt=False)
except pexpect.TIMEOUT:
raise GeneralError('The home screen has not displayed')
=== modified file 'lava_dispatcher/config.py'
@@ -83,6 +83,7 @@
android_adb_over_usb = schema.BoolOption(default=False)
android_adb_over_tcp = schema.BoolOption(default=True)
android_wait_for_home_screen = schema.BoolOption(default=True)
+ android_wait_for_home_screen_activity = schema.StringOption(default="Displayed com.android.launcher/com.android.launcher2.Launcher:")
android_home_screen_timeout = schema.IntOption(default=1800)
android_boot_prompt_timeout = schema.IntOption(default=1200)
android_orig_block_device = schema.StringOption(default="mmcblk0")