English | 中文
Autofish is an Android device control service with a deterministic CLI client (af).
Download and install the latest APK from Releases
Open the app, then:
- Enable accessibility permission for Autofish.
- Enable Shizuku support
- In Home page, turn on Service.
- Note the service connection info shown in app:
- Device IP
- Port
- Token
npm i -g @memohjs/afSet environment variables:
export AF_URL="http://<DEVICE_IP>:<PORT>"
export AF_TOKEN="<TOKEN>"
export AF_DB="./af.db"Run first commands:
af health
af observe top
af observe screen --max-rows 80 --field id --field text --field desc --field resId --field flags
af observe refs --max-rows 80
af act tap --by ref --value @n1
af act tap --by text --value "Settings"
af act tap --xy 540,1200If you want to build APK or CLI from source, prepare:
- JDK 17
- Android SDK API 36
- Rust toolchain (
cargo) just
Local source build example:
just build
just installMore docs: