diff --git a/testing/mozharness/scripts/android_emulator_unittest.py b/testing/mozharness/scripts/android_emulator_unittest.py index c7b70b424525..0fe7c8bf3606 100644 --- a/testing/mozharness/scripts/android_emulator_unittest.py +++ b/testing/mozharness/scripts/android_emulator_unittest.py @@ -376,6 +376,11 @@ class AndroidEmulatorTest(TestingMixin, EmulatorMixin, BaseScript, MozbaseMixin) self.warning("Failed to take screenshot: %s" % err.strerror) def _query_package_name(self): + if self.app_name is None: + # For convenience, assume geckoview_example when install target + # looks like geckoview. + if 'geckoview' in self.installer_path: + self.app_name = 'org.mozilla.geckoview_example' if self.app_name is None: # Find appname from package-name.txt - assumes download-and-extract # has completed successfully.