From e7974300cf6033b6dc504a48f95380c14bb1a8b1 Mon Sep 17 00:00:00 2001 From: NingLi <2212363918@qq.com> Date: Sat, 25 Oct 2025 13:38:08 +0800 Subject: [PATCH] Fix Markor app setup --- android_world/env/setup_device/apps.py | 27 ++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/android_world/env/setup_device/apps.py b/android_world/env/setup_device/apps.py index 694f2be60..bd63f5b13 100644 --- a/android_world/env/setup_device/apps.py +++ b/android_world/env/setup_device/apps.py @@ -30,6 +30,8 @@ from android_world.task_evals.information_retrieval import joplin_app_utils from android_world.utils import file_utils import requests +from android_world.env import actuation +from android_world.env import json_action APP_DATA = file_utils.convert_to_posix_path(os.path.dirname(__file__), @@ -245,18 +247,31 @@ def setup(cls, env: interface.AsyncEnv) -> None: adb_utils.launch_app(cls.app_name, env.controller) try: controller = tools.AndroidToolController(env=env.controller) + time.sleep(10) + action = json_action.JSONAction(action_type='click', x=984, y=2243) + actuation.execute_adb_action(action, [], (0, 0), env.controller) time.sleep(2.0) - controller.click_element("NEXT") - time.sleep(2.0) - controller.click_element("NEXT") + actuation.execute_adb_action(action, [], (0, 0), env.controller) time.sleep(2.0) - controller.click_element("NEXT") + actuation.execute_adb_action(action, [], (0, 0), env.controller) time.sleep(2.0) - controller.click_element("NEXT") + actuation.execute_adb_action(action, [], (0, 0), env.controller) time.sleep(2.0) - controller.click_element("DONE") + actuation.execute_adb_action(action, [], (0, 0), env.controller) time.sleep(2.0) + # time.sleep(2.0) + # controller.click_element("NEXT") + # time.sleep(2.0) + # controller.click_element("NEXT") + # time.sleep(2.0) + # controller.click_element("NEXT") + # time.sleep(2.0) + # controller.click_element("NEXT") + # time.sleep(2.0) + # controller.click_element("DONE") + # time.sleep(2.0) + controller.click_element("OK") time.sleep(2.0) controller.click_element("Allow access to manage all files")