Understanding the DroidAgent system in DroidRun
Goal Setting
Planning (With Reasoning)
Task Execution
Result Analysis
Error Handling
UI Interaction
get_clickables()
- Get interactive UI elementstap_by_index(index)
- Tap element by indextap(index)
- Simplified tap by indexswipe(start_x, start_y, end_x, end_y)
- Swipe between coordinatesinput_text(text)
- Type textpress_key(keycode)
- Press system keys (e.g., 4 for BACK)App Management
start_app(package)
- Launch appslist_packages()
- List installed packagesinstall_app(apk_path)
- Install APKsScreen Analysis
take_screenshot()
- Capture screenextract(filename)
- Save UI state to JSONget_all_elements()
- Get complete UI hierarchyget_phone_state()
- Get current activity and keyboard statusTask Management
remember(information)
- Store important informationget_memory()
- Retrieve stored informationcomplete(success, reason)
- Signal task completion