tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 0e8962595bfe71884fac46dd4eaddee778efba82
parent e0b12d066f899efddc3cc0502f1dff30eda9ab33
Author: Makoto Kato <m_kato@ga2.so-net.ne.jp>
Date:   Thu, 30 Oct 2025 12:27:25 +0000

Bug 1995105 - Import android_api_to_os_version. r=ci-and-tooling,aryx

This is a regression by bug 1995044. `mozinfo.platforminfo` isn't imported.

We should import `get_android_api_to_os_version` directly instead of
using `mozinfo.platforminfo`.

Also, current emulator runs on Android API 34, so default should be 34.

Differential Revision: https://phabricator.services.mozilla.com/D270312

Diffstat:
Mtesting/mozharness/mozharness/mozilla/testing/per_test_base.py | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/testing/mozharness/mozharness/mozilla/testing/per_test_base.py b/testing/mozharness/mozharness/mozilla/testing/per_test_base.py @@ -344,13 +344,15 @@ class SingleTestMixin: if mozinfo.info["buildapp"] == "mobile/android": # extra android mozinfo normally comes from device queries, but this # code may run before the device is ready, so rely on configuration + from mozinfo.platforminfo import android_api_to_os_version + mozinfo.update( - {"android_version": str(self.config.get("android_version", 24))} + {"android_version": str(self.config.get("android_version", 34))} ) mozinfo.update( { - "os_version": mozinfo.platforminfo.android_api_to_os_version( - self.config.get("android_version", 24) + "os_version": android_api_to_os_version( + self.config.get("android_version", 34) ) } )