commit 90fcd296eb9254aa8092ab94543c0561426578ed
parent e48c01df9ef0e7dfb19c8bc3d68f1846fd19a7b7
Author: Andrej Glavic <aglavic@mozilla.com>
Date: Thu, 11 Dec 2025 15:36:02 +0000
Bug 2005306 - Add code in android device setup to force orientation to be portrait mode. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D275854
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/testing/mozbase/mozdevice/mozdevice/adb.py b/testing/mozbase/mozdevice/mozdevice/adb.py
@@ -1125,6 +1125,8 @@ class ADBDevice(ADBCommand):
self.run_as_package = run_as_package
self._logger.debug("ADBDevice: %s" % self.__dict__)
+ self.shell("settings put system accelerometer_rotation 0")
+ self.shell("settings put system user_rotation 0")
@property
def is_rooted(self):