# Android Automation Agent

Connected plan confirmation, AutoJS script generation, device execution and error feedback so an agent can carry out tasks on real devices.

- Author: Dianhai Wang
- Source: https://cv.dancelight.cn/en/projects/android-automation/
- Updated: 2026-11-17

Engineering project · Cloud phones and Android

## My contribution

I separated device operations into plan confirmation, script generation, execution and repair. Tools bind to a device by session; errors and logcat output feed script repairs with a capped number of retries.

## Context

A project exploring cloud-phone and Android automation. The frontend shows device previews, while the backend coordinates confirmation, script generation and execution, using device feedback to support repairs.

## Technologies

Python, Claude Code SDK, AutoJS, ADB, Vue 3

## Workflow

Task plan → Confirm and generate → Device execution → Feedback and repair

## Implementation

### Confirm the action plan

Organized task planning and user confirmation before generating and executing AutoJS scripts.

### Repair from execution feedback

Collected execution errors and logcat output to repair scripts, with limited retries to bound execution.

### Bind tools to the current device

Built a cloud-phone tool plugin with session-bound devices and environments, wrapping ADB, screenshots and task APIs.

### Load task-specific context

Supported Skill context loading and operation timeouts, connecting model capabilities with concrete device tools.

## Delivery and scope

Implemented a loop from confirmation and script generation to device execution and feedback-based repair, with session device binding, context loading and operation timeouts.

## Other projects

- [Sales Knowledge Agent](https://cv.dancelight.cn/en/projects/sales-agent/)
- [Network Proxy and Video Forwarding](https://cv.dancelight.cn/en/projects/network-platform/)
