Installation¶
Basic Install¶
This installs the core package with Pillow and lxml as dependencies.
Optional Extras¶
adbflow has optional dependency groups for heavier features:
| Extra | Deps | Use case |
|---|---|---|
[vision] |
opencv-python |
Template matching, color detection |
[ocr] |
easyocr |
On-screen text recognition |
[all] |
Both of the above | Everything |
[dev] |
pytest, ruff, mypy | Development and testing |
[docs] |
mkdocs-material | Building documentation |
# Vision features (template matching, color detection)
pip install adbflow[vision]
# OCR features (text recognition via EasyOCR)
pip install adbflow[ocr]
# All optional features
pip install adbflow[all]
# Development dependencies
pip install adbflow[dev]
# Multiple extras
pip install adbflow[all,dev]
ADB Setup¶
adbflow requires the Android Debug Bridge (adb) binary. Install it via:
Android SDK Platform-Tools (recommended):
# macOS
brew install android-platform-tools
# Ubuntu/Debian
sudo apt install android-tools-adb
# Windows (scoop)
scoop install adb
Or download directly from developer.android.com.
Verify ADB is available:
Device Setup¶
Enable USB Debugging on your Android device:
- Go to Settings → About Phone
- Tap Build Number 7 times to enable Developer Options
- Go to Settings → Developer Options
- Enable USB Debugging
For wireless debugging (Android 11+):
- Enable Wireless Debugging in Developer Options
- Use
adb pair <ip>:<port>with the pairing code - Then
adb connect <ip>:<port>