π± Android Control
DroidRun provides capabilities for controlling and interacting with Android devices through a streamlined tool system.π Device Connection
Before controlling a device, establish a connection:1
Enable USB Debugging
Enable Developer options (tap Build number 7 times) and USB debugging in Settings
2
Connect Device
Connect via USB and authorize your computer
3
Verify Connection
4
Optional: Wireless Setup
π οΈ Tool System
DroidRun uses a modular tool system for device control:π― Core Capabilities
UI Interaction
Control UI elements using indexes
App Management
Launch apps and list packages
UI Analysis
Analyze screen content
Memory Management
Store important information
π±οΈ UI Interaction Tools
Element Tapping
Element Tapping
Text Input
Text Input
Gestures
Gestures
π± App Management
Control applications with built-in tools:π UI Analysis
Analyze the device screen:π§ Memory and Task Management
Store important information for future use:π Advanced Usage
Multi-Step Operations
π‘ Best Practices
-
Understand Element Structure
- Always use
get_clickables()before tapping elements - The index refers to the elementβs position in the returned list
- Use screenshot for visual reference when needed
- Always use
-
Handle Dynamic Content
-
Use Memory for Context
-
Signal Task Completion
π§ Troubleshooting
-
Connection Issues
- Ensure USB debugging is enabled
- Check device authorization
- Verify device is listed in
droidrun devices
-
Element Interaction Problems
- Refresh clickable elements before interaction
- Verify element indexes match the current screen
- Take screenshot to confirm whatβs visible
-
App Control Issues
- Use correct package names (verify with
list_packages()) - Ensure app is installed on the device
- Check for permission issues
- Use correct package names (verify with