From 23ead03a872508ebedf006a19bbe00f922eb026a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=E1=BB=93=20Xu=C3=A2n=20D=C5=A9ng?= Date: Wed, 7 Oct 2026 23:51:14 +0700 Subject: [PATCH] fix(e2e): follow android's new applicationId com.handlive.android android's applicationId changed to com.handlive.android for the Play Store listing (namespace stays app.handlive.android, so component class names are unchanged). self_test.py: 0 failed after the update. --- tools/e2e/adb_device.py | 2 +- tools/e2e/scenario_app_calls.py | 2 +- tools/e2e/scenario_clipboard.py | 2 +- tools/e2e/self_test.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/e2e/adb_device.py b/tools/e2e/adb_device.py index 53fcc18..4e25ac8 100644 --- a/tools/e2e/adb_device.py +++ b/tools/e2e/adb_device.py @@ -15,7 +15,7 @@ from pathlib import Path SDK_DEFAULT = "/opt/homebrew/share/android-commandlinetools" -PACKAGE = "app.handlive.android" +PACKAGE = "com.handlive.android" def lines_since(text: str, since: float) -> list[str]: diff --git a/tools/e2e/scenario_app_calls.py b/tools/e2e/scenario_app_calls.py index e4218b3..87bf47c 100644 --- a/tools/e2e/scenario_app_calls.py +++ b/tools/e2e/scenario_app_calls.py @@ -16,7 +16,7 @@ FAKE_LABEL = "E2E Caller" FAKE_CALLER = "E2E Test Caller" IN_CALL_TITLE = "E2E in call" -LISTENER = "app.handlive.android/app.handlive.android.feature.call.appcall.AppCallListenerService" +LISTENER = "com.handlive.android/app.handlive.android.feature.call.appcall.AppCallListenerService" SWIPE_API = 34 # Android 14: an ongoing notification without CallStyle can be dismissed diff --git a/tools/e2e/scenario_clipboard.py b/tools/e2e/scenario_clipboard.py index 77fb76d..3e99c43 100644 --- a/tools/e2e/scenario_clipboard.py +++ b/tools/e2e/scenario_clipboard.py @@ -26,7 +26,7 @@ from make_test_png import chunk as png_chunk # noqa: E402 CHUNK = 65_536 -SHARE_TARGET = "app.handlive.android/app.handlive.android.feature.clipboard.component.ClipboardShareTarget" +SHARE_TARGET = "com.handlive.android/app.handlive.android.feature.clipboard.component.ClipboardShareTarget" def test_png(target_bytes: int) -> tuple[bytes, int]: diff --git a/tools/e2e/self_test.py b/tools/e2e/self_test.py index b6bceda..d56840c 100644 --- a/tools/e2e/self_test.py +++ b/tools/e2e/self_test.py @@ -273,9 +273,9 @@ def logcat_window() -> None: def ui_parser() -> None: xml = ('' + 'package="com.handlive.android" content-desc="" clickable="false" bounds="[0,0][1080,2400]">' f'' + 'package="com.handlive.android" content-desc="" clickable="false" bounds="[100,200][500,300]"/>' 'UI hierchary dumped to: /dev/tty') nodes = parse_dump(xml) hit = [n for n in nodes if n.text == "Enter PIN"]