Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions android_world/env/setup_device/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__),
Expand Down Expand Up @@ -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")
Expand Down