Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "android-use",
"version": "0.6.2",
"version": "0.7.0",
"description": "通过 ADB 和 UiAutomator2 操作 Android,支持实时屏幕侧边栏、控件树、截图、中文输入和批处理。",
"skills": "./skills/",
"mcpServers": "./.mcp.json",
Expand Down
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a href="#mcp-client-support"><img src="https://img.shields.io/badge/MCP-stdio-3DDC84" alt="Standard stdio MCP" /></a>
</p>
<p><strong>English</strong> · <a href="README.zh-CN.md">简体中文</a></p>
<p><a href="#quick-start"><strong>Use in Dim Agent →</strong></a> · <a href="https://github.com/JackCaow/android-use/releases/tag/v0.6.2">Download v0.6.2</a> · <a href="#enable-jev-from-the-screen">Set up Jev</a> · <a href="docs/guide.md">User guide</a> · <a href="https://github.com/arcships/android-use/issues">Report an issue</a></p>
<p><a href="#quick-start"><strong>Use in Dim Agent →</strong></a> · <a href="https://github.com/arcships/android-use/releases/tag/v0.7.0">Download v0.7.0</a> · <a href="#enable-jev-from-the-screen">Set up Jev</a> · <a href="docs/guide.md">User guide</a> · <a href="https://github.com/arcships/android-use/issues">Report an issue</a></p>
</div>

## Android tasks, inside Dim Agent
Expand All @@ -34,13 +34,13 @@ For workflows that need repeated UI decisions, enable **Jev**. Your Agent keeps
| Dependencies missing, matching verified native assets available | Use the optional standalone runtime to avoid installing dependencies individually. |
| Offline, unsupported native target, or no native release assets yet | Use a suitable local archive or source setup; report any missing prerequisites. |

### Optional standalone runtime (new source feature)
### Optional standalone runtime · v0.7.0

**Python, ADB, ffmpeg, the screen UI and the control service in one native package.** The lightweight Dim plugin installs it automatically on first use. Later MCP connections start the installed version immediately and check for updates in the background; verified updates take effect on the next connection. Failed updates retain the previous version; rollback rechecks it before switching.

**macOS OCR is an optional add-on**, omitted from the default package. Tree interaction, Agent screenshot inspection and Jev can be used without it. Users choosing this package do not need Python, uv, Git, Node.js, a JDK or Xcode tools; public-release bootstrap uses standard OS utilities. Private-release bootstrap additionally supports GitHub CLI with a private token; offline native installation avoids that requirement.

This is newer than the published v0.6.2 source-plugin ZIP. Use native workflow artifacts for offline trials until a release containing the runtime assets is published. [Install, automatic updates, optional OCR and rollback →](docs/standalone.md)
Available in v0.7.0 as separate source-plugin, lightweight Dim-plugin and native-runtime downloads. Choose the route for your environment; older v0.6.2 source ZIPs do not include the native runtime. [Install, automatic updates, optional OCR and rollback →](docs/standalone.md)

## Quick start

Expand Down Expand Up @@ -114,15 +114,9 @@ Dim Agent calls the Android tools and opens the screen through `aua_screen`. In

## A phone screen you can follow

<table>
<tr><th align="center">Light</th><th align="center">Dark</th></tr>
<tr>
<td align="center"><img src="docs/images/sidebar-light.jpg" alt="Phone-frame Android Use preview in light mode" width="260" /></td>
<td align="center"><img src="docs/images/sidebar-dark.jpg" alt="Phone-frame Android Use preview in dark mode" width="260" /></td>
</tr>
</table>
![Dim Agent using Android Use with a live phone view](docs/images/dim-agent-live-screen.png)

The actual UI, rendered with synthetic phone content for documentation. The frame adapts to theme, window size and orientation. Tap or swipe inside the screen, use Back/Home, or copy a PNG frame. [Live-screen guide →](docs/guide.md#live-screen)
Android Use in Dim Agent: describe a task in the chat and follow the live phone view beside it. Tap or swipe inside the screen, use Back/Home, or copy a PNG frame. [Live-screen guide →](docs/guide.md#live-screen)

## Agent plans. Jev decides. Android Use acts.

Expand Down Expand Up @@ -263,11 +257,11 @@ The preview URL is a private local video endpoint, **not a remote MCP endpoint**

In v0.5.1, supported devices record continuously; legacy segments reuse one connection and decoder. Brief known-health recovery keeps the picture visible. [Recovery behavior and troubleshooting →](docs/guide.md#live-screen).

## Optional interaction variation (source update)
## Optional interaction variation · v0.7.0

Add `variation` to a gesture or local goal to sample bounded delays, selector touch points and swipe timing/endpoints. Fixed seeds reproduce samples; explicit coordinates and text stay exact. Added waits revalidate the page and share existing budgets. Default behavior is unchanged. This is interaction testing, with no anti-detection guarantee. [Parameters, audit and boundaries →](docs/interaction-variation.md)

Source development is synchronized to [arcships/android-use](https://github.com/arcships/android-use); published archives through v0.6.2 remain linked to their original release location.
Source and v0.7.0 releases are hosted at [arcships/android-use](https://github.com/arcships/android-use).

## A smaller loop, with explicit outcomes

Expand Down Expand Up @@ -313,7 +307,7 @@ Development comparisons include **18 source-level trials** and **12 live Agent /

## Project status

**v0.6.2 · MIT · 392 Python tests · 24 browser tests.** Emulator acceptance covers 15 real stdio MCP scenarios. Earlier physical-device acceptance covers Android 16 / Xiaomi 15 Ultra. New Jev setup and frame changes have local/emulator validation; other manufacturers, host versions and operating systems have different coverage. [Validation evidence →](docs/validation.md)
**v0.7.0 · MIT · 481 Python tests · 24 browser tests.** Native install/upgrade/rollback acceptance passed on macOS ARM64/Intel (15 scenarios each), Linux x86_64 and Windows x86_64 (13 each). These package checks use no phone or model; earlier Android 16 physical-device and emulator acceptance remain separate. [Validation evidence →](docs/validation.md)

Multi-touch, arbitrary gesture paths, fine-grained text selection and custom-editor input fallbacks are not implemented. A matched UI condition proves that condition; the Agent must verify business outcomes. Control and preview run locally, and tool results are handled by your chosen client/model.

Expand Down
20 changes: 7 additions & 13 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a href="#mcp-客户端支持"><img src="https://img.shields.io/badge/MCP-stdio-3DDC84" alt="标准 stdio MCP" /></a>
</p>
<p><a href="README.md">English</a> · <strong>简体中文</strong></p>
<p><a href="#快速开始"><strong>在 Dim Agent 中使用 →</strong></a> · <a href="https://github.com/JackCaow/android-use/releases/tag/v0.6.2">下载 v0.6.2</a> · <a href="#在屏幕中启用-jev">配置 Jev</a> · <a href="docs/guide.zh-CN.md">使用指南</a> · <a href="https://github.com/arcships/android-use/issues">反馈问题</a></p>
<p><a href="#快速开始"><strong>在 Dim Agent 中使用 →</strong></a> · <a href="https://github.com/arcships/android-use/releases/tag/v0.7.0">下载 v0.7.0</a> · <a href="#在屏幕中启用-jev">配置 Jev</a> · <a href="docs/guide.zh-CN.md">使用指南</a> · <a href="https://github.com/arcships/android-use/issues">反馈问题</a></p>
</div>

## 在 Dim Agent 中,直接完成 Android 任务
Expand All @@ -34,13 +34,13 @@ Android Use 把你自己的 Android 手机或模拟器接入 **Dim Agent**,也
| 缺少依赖,且有匹配、可校验的原生发行包 | 可选独立 runtime,减少逐项安装依赖。 |
| 离线、不支持的原生平台或尚无原生发行资产 | 选择可用的本地包或源码安装,明确缺失条件。 |

### 可选独立运行包(新源码功能)
### 可选独立运行包 · v0.7.0

**Python、ADB、ffmpeg、实时界面和控制服务,打成一个原生运行包。** 轻量 Dim 插件首次自动安装;后续 MCP 连接立即使用已安装版本,并在后台检查更新。新包校验、握手通过后,下一次连接使用新版;失败保留旧版,回滚前也会重新验证。

**macOS OCR 是可选组件,默认包不带。** 控件树操作、Agent 看图和 Jev 均可独立使用。选择独立包的用户无需准备 Python、uv、Git、Node.js、JDK 或 Xcode 工具,公开发行包首次下载只使用系统基础工具。私有发行包自动安装支持 GitHub CLI 与私有令牌,也可用原生离线包省去此依赖。

此功能晚于已发布的 v0.6.2 源码插件 ZIP。正式 Release 尚未包含这些资产时,可用原生构建工作流产物离线体验。[安装、自动更新、可选 OCR 与回滚 →](docs/standalone.md#中文)
v0.7.0 分别提供源码插件、轻量 Dim 插件和原生运行包,按用户环境选择;旧 v0.6.2 源码 ZIP 不含原生运行包。[安装、自动更新、可选 OCR 与回滚 →](docs/standalone.md#中文)

## 快速开始

Expand Down Expand Up @@ -111,15 +111,9 @@ Dim Agent 会调用 Android 工具,通过 `aua_screen` 在桌面端右侧打

## 像拿着手机一样,看见每一步

<table>
<tr><th align="center">浅色</th><th align="center">深色</th></tr>
<tr>
<td align="center"><img src="docs/images/sidebar-light.jpg" alt="带手机机身边框的 Android Use 浅色预览" width="260" /></td>
<td align="center"><img src="docs/images/sidebar-dark.jpg" alt="带手机机身边框的 Android Use 深色预览" width="260" /></td>
</tr>
</table>
![Dim Agent 通过 Android Use 操作手机并显示实时画面](docs/images/dim-agent-live-screen.png)

上图为真实前端渲染,手机内容使用文档示例。机身随主题、窗口和横竖屏适配;屏幕内支持点击和滑动,工具栏支持返回、Home 与 PNG 画面复制。[实时屏幕指南 →](docs/guide.zh-CN.md#实时屏幕与图片复制)
在 Dim Agent 中描述任务,旁边的实时手机画面展示执行过程。屏幕内支持点击和滑动,工具栏支持返回、Home 与 PNG 画面复制。[实时屏幕指南 →](docs/guide.zh-CN.md#实时屏幕与图片复制)

## Agent 规划,Jev 决策,Android Use 执行

Expand Down Expand Up @@ -278,7 +272,7 @@ uv run android-use scroll_until '{"selector":{"text":"显示与亮度"},"directi

手势或局部目标可显式传 `variation`:限定范围内变化等待、选择器落点和滑动参数,支持固定种子复现。明确坐标和文本保持精确;新增等待后检查页面,继续遵守预算与不重放规则。默认行为不变,不承诺防检测。[参数、审计与边界 →](docs/interaction-variation.md#中文)

源码同步到 [arcships/android-use](https://github.com/arcships/android-use);v0.6.2 及此前安装包仍链接到原发布位置。
源码及 v0.7.0 发行包统一托管于 [arcships/android-use](https://github.com/arcships/android-use)。

## v0.6.0:无 Key 决策与视觉定位

Expand Down Expand Up @@ -311,7 +305,7 @@ v0.5.0 通过 **277 项 Python 测试、17 项界面测试**。内置 OCR 目前

## 项目状态

**v0.6.2 · MIT · 392 项 Python 测试 · 24 项浏览器测试。** 模拟器验收覆盖 15 项真实 stdio MCP 场景;已有 Android 16 / Xiaomi 15 Ultra 真机验收。新增 Jev 设置和机身界面在本机/模拟器验证,其他厂商、宿主版本及系统的覆盖范围另见[验证记录](docs/validation.md)。
**v0.7.0 · MIT · 481 项 Python 测试 · 24 项浏览器测试。** 原生安装、升级和回滚在 macOS ARM64/Intel 各通过 15 项,Linux x86_64/Windows x86_64 各通过 13 项。这些包验收不操作手机、不调用模型;历史 Android 16 真机与模拟器验收分开记录。[验证记录](docs/validation.md)。

多指手势、任意轨迹、精细文本选区及自绘编辑器输入兜底尚未实现。UI 条件满足仅证明该条件,Agent 仍需验收业务结果。控制和预览运行于本机,工具结果由你选择的客户端与模型处理。

Expand Down
6 changes: 3 additions & 3 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ Choose a release ZIP or a source checkout. If you already use `android-use-local

### Install the release ZIP

Download `android-use-0.6.2-plugin.zip` and `SHA256SUMS` from [GitHub Release v0.6.2](https://github.com/JackCaow/android-use/releases/tag/v0.6.2). The ZIP includes the compiled UI, Python source/lockfile, stable installer, skills, bilingual docs and a local marketplace. Prepare uv, ADB, ffmpeg and the Codex CLI; dependencies are downloaded on first installation.
Download `android-use-0.7.0-plugin.zip` and `SHA256SUMS` from [GitHub Release v0.7.0](https://github.com/arcships/android-use/releases/tag/v0.7.0). The ZIP includes the compiled UI, Python source/lockfile, stable installer, skills, bilingual docs and a local marketplace. Prepare uv, ADB, ffmpeg and the Codex CLI; dependencies are downloaded on first installation.

```bash
shasum -a 256 -c SHA256SUMS # Linux: sha256sum -c SHA256SUMS
unzip android-use-0.6.2-plugin.zip -d android-use-v0.6.2
cd android-use-v0.6.2
unzip android-use-0.7.0-plugin.zip -d android-use-v0.7.0
cd android-use-v0.7.0
uv run --no-project --python 3.13 python scripts/install.py doctor
uv run --no-project --python 3.13 python scripts/install.py install --source . --codex
```
Expand Down
6 changes: 3 additions & 3 deletions docs/guide.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ uv run android-use --serial SERIAL ready

### 安装发行包 ZIP

从 [GitHub Release v0.6.2](https://github.com/JackCaow/android-use/releases/tag/v0.6.2) 下载 `android-use-0.6.2-plugin.zip` 和 `SHA256SUMS`。包内包含编译好的界面、源码与锁文件、固定入口安装器、技能和双语说明;先准备 uv、ADB、ffmpeg 和 Codex CLI,首次安装需下载 Python 依赖。
从 [GitHub Release v0.7.0](https://github.com/arcships/android-use/releases/tag/v0.7.0) 下载 `android-use-0.7.0-plugin.zip` 和 `SHA256SUMS`。包内包含编译好的界面、源码与锁文件、固定入口安装器、技能和双语说明;先准备 uv、ADB、ffmpeg 和 Codex CLI,首次安装需下载 Python 依赖。

```bash
shasum -a 256 -c SHA256SUMS # Linux: sha256sum -c SHA256SUMS
unzip android-use-0.6.2-plugin.zip -d android-use-v0.6.2
cd android-use-v0.6.2
unzip android-use-0.7.0-plugin.zip -d android-use-v0.7.0
cd android-use-v0.7.0
uv run --no-project --python 3.13 python scripts/install.py doctor
uv run --no-project --python 3.13 python scripts/install.py install --source . --codex
```
Expand Down
Binary file added docs/images/dim-agent-live-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/interaction-variation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Optional interaction variation

Experimental source update after v0.6.2. The published v0.6.2 ZIP does not contain these fields. Use the current source and reload MCP tools to advertise the updated schemas. Existing tool names and defaults remain compatible.
Experimental and optional in v0.7.0. Older v0.6.2 ZIPs do not contain these fields. Update the installation and reconnect MCP to advertise the schemas; existing tool names and defaults remain compatible.

This is bounded variation for interaction testing. It does not hide the UiAutomator execution channel or promise that third-party apps cannot recognize automation. Native swipe/drag paths remain straight; this feature does not add multi-touch, arbitrary curves or synthetic per-character typing.

Expand Down
4 changes: 2 additions & 2 deletions docs/license-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ The FFmpeg source is inside the same downloadable native archive as its binary.

Metadata and filename checks alone cannot prove every statically linked component's provenance. The pinned notices and Python build gate reduce known risks; they are not a blanket legal certification for every OS, wheel and future dependency update. In particular, Windows distributions may contain Microsoft runtime DLLs with separate redistribution terms; the native inventory records their actual filenames. Those binaries are not reclassified as MIT or open source by this project.

This PR does not publish a release. Keep the per-platform acceptance artifacts and inventory with the release review, and repeat the scan when the interpreter, wheels, compiler or FFmpeg configuration changes. The first pre-audit local artifacts are diagnostic evidence, not the release-approved packages.
The audit was prepared with the standalone-runtime change. Keep the per-platform acceptance artifacts and inventory with every release, and repeat the scan when the interpreter, wheels, compiler or FFmpeg configuration changes. The first pre-audit local artifacts are diagnostic evidence, not the release-approved packages.

## 中文

项目源码仍采用 MIT,项目版权归属为 **Archship**。**独立运行包不能整体称为 MIT**:FFmpeg 按当前配置适用 LGPL-2.1-or-later,certifi 采用 MPL-2.0,Python 和各原生库也保留自身条款。PyInstaller 有打包例外,不能仅看到 GPL 标签就推断应用必须改协议。

本轮发现首个构建 Python 内置 GNU gdbm;仅排除模块导入不能移除已静态链接的代码。因此增加构建门禁,改用可排除模块的 CPython,并检查原生文件。ADB 只带实际需要的文件,避免附带无关工具;certifi 源码、Python/原生库声明、FFmpeg 对应源码与精确编译选项一并随包提供。中英文 README 已感谢 iPhone Use 的启发;实际代码复用仍需要保留原许可证和版权,不能只用致谢替代。

审计按当前声明、构建和产物执行,不把元数据扫描等同于完整二进制溯源或法律认证。Windows 可能包含微软可再分发运行库,其条款单独适用。本次保持 PR 审阅,不发布新版本;后续更新基础环境或依赖时,应连同原生清单一起复查。
审计按当前声明、构建和产物执行,不把元数据扫描等同于完整二进制溯源或法律认证。Windows 可能包含微软可再分发运行库,其条款单独适用。每次发布都应保留原生验收记录与随包声明;后续更新基础环境或依赖时,应连同原生清单一起复查。
Loading
Loading