Android Use: 基于LLM的安卓手机自动化操作
android-use 是一个开源版的豆包手机项目,旨在通过自然语言驱动实现 Android 手机的自动化操作。它可以将任意 Android 手机变身为智能 AI 手机,极大提升操作效率与体验。
✨ 项目特点
- 精准定位与交互:通过 XML 解析技术自动高亮可交互元素,并支持通过索引(Index)进行点击,显著提升了 Agent 的定位能力和操作准确性。
- 广泛的模型支持:完美支持 Deepseek、Kimi-k2、GLM 等国产大模型。即使模型不具备视觉(Vision)能力,依然可以通过 XML 解析实现高效工作。
🚀 快速开始
1. 准备工作
在使用本工具之前,请确保您的 Android 设备已开启 USB 调试模式。
- 设备要求:Android 7.0+。
- 开启开发者模式:
- 打开 设置 -> 关于手机。
- 找到 版本号,连续快速点击 10 次左右。
- 直到屏幕弹出“开发者模式已启用”提示。
- 注:不同品牌手机路径可能略有差异,如未找到请自行搜索对应机型的开启教程。
- 开启 USB 调试:
- 进入 设置 -> 开发者选项。
- 找到并勾选 USB 调试。
2. 安装 uv 包管理器
推荐使用 uv 进行环境管理和安装。
MacOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
3. 安装与运行
启动方式
方式一:WebUI 界面 (推荐)
uvx android-use webui
方式二:命令行 CLI (交互式)
uvx android-use
本地开发运行
如果您希望参与开发或进行本地调试:
git clone https://github.com/languse-ai/android-use
cd android-use
uv sync
# 启动 CLI
python -m android_use.cli
# 启动 WebUI
python -m android_use.app
⚠️ 免责声明
⚠️ 本项目仅供研究和学习使用。严禁用于非法获取信息、干扰系统或任何违法活动。请仔细审阅 使用条款。
📺 演示案例 (Demos)
以下是三个典型的自动化场景演示:
1. 微信视频号互动与分享
任务描述:打开微信,进入视频号搜索“豆包手机”,获取当前页面点赞数最多的视频的所有评论,将该视频分享给好友,并发送一段总结性的评论内容。
2. 抖音电商数据抓取
任务描述:打开抖音,进入商城搜索“安踏篮球鞋”,获取并整理排名前 10 的商品信息。
3. 小红书自动互动
任务描述:打开小红书,搜索“browser-use”,选择当前页面点赞数最多的帖子,进行点赞并发表一条像真人一样的简洁评论,最后总结该帖子的核心内容。
Metadata
Release files for android-use 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| android_use-0.1.7.tar.gz | 136.6 kB | Without provenance | Details for android_use-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| android_use-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for android_use-0.1.7-py3-none-any.whl |
Total release size: 302.3 kB
Release files / android_use-0.1.7.tar.gz
| Download URL | android_use-0.1.7.tar.gz |
|---|---|
| Size | 136.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e176b0701774902062465c29e07ebbdeebe5a2de315a3f8d97383f903ecbd1a6
|
|
BLAKE2b-256 checksum How to use checksums |
cb4ecdc0c2aafdbef33b7cfbc4792cb8b951fb75969fc98535c5f08eba353403
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / android_use-0.1.7-py3-none-any.whl
| Download URL | android_use-0.1.7-py3-none-any.whl |
|---|---|
| Size | 165.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20f84762969c1215367d346bb1c3eead5e9c060ff640e0b94eff35d87e3f878a
|
|
BLAKE2b-256 checksum How to use checksums |
783bd62b1e115309c7a303a13b7d1e2b77ce458c206a916da784767e8cf12a20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for android-use 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.