From 31b1ebe64ec2ecbf6c0983ab5763b52b2057275d Mon Sep 17 00:00:00 2001 From: Waozi Date: Fri, 9 Oct 2026 09:44:19 -0300 Subject: [PATCH] Verify Pixel focus through its native launcher alias --- tests/android_rotation_geometry_device.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/android_rotation_geometry_device.py b/tests/android_rotation_geometry_device.py index df57eff39..f28f0235a 100644 --- a/tests/android_rotation_geometry_device.py +++ b/tests/android_rotation_geometry_device.py @@ -91,9 +91,10 @@ def main(): def guard(): if adb("shell", "pidof", args.package) != pid: raise RuntimeError("Inbe restarted; stopping the geometry check") - focus = adb("shell", "dumpsys", "window", "windows") + focus = adb("shell", "dumpsys", "window") current = next((line for line in focus.splitlines() if "mCurrentFocus=" in line), "") - if args.package + "/xyz.waozi.inbe.MainActivity" not in current: + if not any(args.package + "/xyz.waozi.inbe." + component in current + for component in ("MainActivity", "SkyCradleLauncher")): raise RuntimeError("Inbe is not the focused application; refusing changes") last_sample = -1