This guide will help you get started with the Android Automation Tool and explain its main features and capabilities.
- Setup and Connection
- Interface Overview
- Recording Actions
- Playing Back Actions
- Working with Templates
- Creating Conditional Actions
- Scheduling Tasks
- Settings and Configuration
- Troubleshooting
-
Enable Developer Options:
- Go to Settings > About Phone
- Tap "Build Number" 7 times until you see "You are now a developer"
-
Enable USB Debugging:
- Go to Settings > Developer Options
- Enable "USB Debugging"
-
Connect your device to your computer with a USB cable
-
When prompted on your device, allow USB debugging for your computer
- Launch the Android Automation Tool
- In the "Device Connection" panel, click "Refresh"
- Select your device from the dropdown list
- Click "Connect"
- Your device screen should now appear in the application
The application interface is divided into several sections:
- Left Panel: Controls for device connection, recording, playback, and settings
- Main Display: Shows your connected device's screen
- Bottom Tabs: Contains tabs for Actions, Templates, Logs, and Scheduler
- Connect to your device
- Click "Start Recording" in the Recording panel
- Interact with the device screen in the application:
- Click to perform taps
- Click and drag to perform swipes
- Hold for a moment to perform long press
- Click "Stop Recording" when finished
- Your recorded actions will appear in the Actions tab
You can add specific actions without recording:
- Click "Add Action" in the Recording panel
- Select the action type (Tap, Swipe, Wait, etc.)
- Fill in the parameters for the action
- Click "OK" to add the action
- Click "Save" to save your recorded actions to a JSON file
- Click "Load" to load previously saved actions
- Make sure your device is connected
- Adjust playback speed if needed using the Speed control
- Click "Play" to start playback
- Click "Stop" to interrupt playback
You can also enable loop playback by checking the "Loop playback" option.
Templates are images that the application can recognize on your device screen.
- Connect to your device
- Hold Ctrl and click-and-drag to select a region on the screen
- Click "Create New" in the Templates tab
- Choose a name and location to save the template
- Go to the Templates tab
- Right-click on a template and select "Use in Action"
- Configure the template matching action
- Click "OK" to add the action
Conditional actions allow you to create if/then/else flows based on screen content:
- Click "Add Conditional" in the Recording panel
- Configure the condition:
- Template Present: Checks if a template appears on screen
- Template Absent: Checks if a template does not appear on screen
- Color Present: Checks for a specific color region
- Pixel Color: Checks the color of a specific pixel
- Add actions for the "Then" branch (executed if condition is true)
- Add actions for the "Else" branch (executed if condition is false)
- Click "OK" to add the conditional action
- Record or load the actions you want to schedule
- Go to the Scheduler tab
- Click "Add Task"
- Configure the schedule:
- One Time: Run once at a specific date and time
- Daily: Run every day at a specific time
- Weekly: Run on selected days of the week
- Interval: Run repeatedly with a specific interval
- Set a name for the task and adjust speed if needed
- Click "OK" to create the scheduled task
You can change the application theme in the Settings panel:
- Light: Bright interface
- Dark: Dark interface
- System: Follow system theme
- Capture Interval: Adjust how often the screen is captured (lower values = higher refresh rate but more CPU usage)
- OpenCV Processing: Enable/disable OpenCV image processing
- Make sure USB debugging is enabled on your device
- Disconnect and reconnect your device
- Click "Refresh" in the Device Connection panel
- Try restarting ADB by closing the application and running it again
- Make sure your device screen orientation hasn't changed
- Check if the app on your device has updated and changed its UI
- Try recreating templates if using template matching
- Adjust template matching threshold if recognition is failing
- Increase the capture interval for slower computers
- Disable OpenCV processing if not using template matching features
- Close other resource-intensive applications