VIP loop (circle → extract → Translate/Copy/Explain/Share/Vikunja), lasso branding, ship docs, unit tests, and make smoke / launchd emu helpers.
2.2 KiB
2.2 KiB
Physical Phone Setup Guide — Circle
Prerequisites
- Android phone (API 27+ / Android 8.1+)
- USB cable
- Android SDK on your Mac/Linux machine
Step 1: Enable Developer Options
- Settings → About Phone
- Tap Build Number 7 times
Step 2: Enable USB Debugging
- Settings → Developer Options
- Enable USB Debugging
- (Optional) Stay Awake while charging
Step 3: Connect Phone
- Plug in USB
- Allow USB debugging on the phone
Step 4: Verify Connection
adb devices
You should see device (not unauthorized).
Step 5: Build and Install Circle
cd ~/Documents/code/crkl
./gradlew assembleDebug
adb install -r app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n com.example.crkl/.MainActivity
# or: make build && make install && make run
Step 6: Enable Circle Overlay
- Open the Circle app
- Tap Enable Accessibility
- Turn on Circle Overlay
- Accept the permission dialog
Re-enable after every reinstall.
Step 7: Test It
Tap the floating C (or QS Circle), draw a closed loop around text, use the chips.
make logs
# or: adb logcat -s CrklAccessibilityService:D OverlayView:D AssistEngine:D
VIP path: Test fixtures → docs/DEMO.md.
Quick Commands
make build / install / run / logs / stop / clean / uninstall
Troubleshooting
adb not found
export ANDROID_HOME=/opt/homebrew/share/android-commandlinetools # example
export PATH=$ANDROID_HOME/platform-tools:$PATH
no devices
- USB debugging on; accept the prompt
- Emulator flaky? Headless tips in docs/RELEASE.md
unauthorized
- Revoke USB debugging authorizations; reconnect
Can't see overlay
- Enable Circle Overlay in Accessibility
make stop && make run
Shortcuts
See docs/shortcuts.md.
- Enable Circle Overlay
- Circle app → Add Quick Settings tile
- Swipe down → Circle → closed loop
Optional: Accessibility shortcut → Circle Overlay (hold both volume keys).
Done
Enable Accessibility, then use the floating C or the Circle QS tile.