Files
jackyu66gitandCursor bd22d9dddd feat: P1 合盘/星座/问答与测测完整设计包及模拟器取证工具
落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 11:37:53 +08:00

47 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: Android emulator/device automation via ADB — screenshots, UI dump, gestures, APK install, CeCe validation capture
alwaysApply: false
---
# Android ADB Automation
Prefer the local command layer (symlink in this repo):
```bash
./tools/android ... --json
```
Upstream skill pack: `/Users/jack/tools/android-adb-skill/`
Command contract: `tools/android-adb-docs/command-contract.md`
Task skills: `~/.claude/skills/android-*/SKILL.md`(已 symlink
## Environment
```bash
export ANDROID_HOME=/opt/homebrew/share/android-commandlinetools
export ANDROID_SDK_ROOT="$ANDROID_HOME"
export PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"
```
AVD name: `YuXinGu_API34`
```bash
emulator -avd YuXinGu_API34 -netdelay none -netspeed full &
adb wait-for-device
./tools/android device list --json
```
## CeCe / 愈心谷校验采集
按 `.ai/product/feature-spec/cece-frontend-re/complete-design/99-emulator-validation.md`
- 证据目录:`.tmp/cece-validation/YYYYMMDD/V-xxx/`
- 截图:`./tools/android screenshot --out .tmp/cece-validation/.../screen.png --json`
- 点击:先 `ui dump` / `ui find`**禁止**凭截图像素猜坐标
## Defaults
- Prefer `./tools/android ... --json` over raw `adb`
- Pass `--device <id>` when multiple devices
- Verify with `ui dump`, `wait element`, or `screenshot`