One-handed trackpad cursor for Android, aimed at foldables. Kotlin, Compose for settings, plain
custom View for the overlay. Package ai.lykos.onepaw.
Read docs/architecture.md before changing anything in service/ — the
window split, the pure reducer and the continued-stroke drag chain each exist for a stated reason.
- JDK 21 (
JAVA_HOMEpoints at Android Studio's JBR) - Android SDK 36,
minSdk26 - Gradle wrapper 9.7.1, AGP 9.3.1, Kotlin 2.4.10; versions live in
gradle/libs.versions.toml
./gradlew :app:testDebugUnitTest
./gradlew :app:assembleDebug- No
INTERNETpermission, ever. The privacy claim in the README and ADR-2 is the reason users should be willing to grant an accessibility service. A dependency that pulls in analytics breaks it as surely as afetchwould. - The service must not request window content. No
accessibilityEventTypes, nocanRetrieveWindowContent. - Keep gesture logic in the pure reducer.
TriggerStateMachineandcore/import no Android types, which is what keeps them testable without a device. Side effects belong inOnePawService. - The cursor window stays
FLAG_NOT_TOUCHABLE. Make it touchable and it swallows the taps the service injects.
grep -c "^e:" returning zero is not evidence that the code compiles. AGP fails the AAR
metadata and manifest checks before the Kotlin compiler runs, so a build can die with no compiler
diagnostics at all. Check for BUILD SUCCESSFUL, or that app/build actually contains .class
files, rather than for the absence of errors.
adb shell input cannot drive the trigger strips. Injected touches do not reach a
TYPE_ACCESSIBILITY_OVERLAY window: measured three ways on a Pixel 11 Pro Fold, the cursor overlay
is never added and no cursor pixels appear in a screencap. The gesture layer is only exercisable
with a real finger, so on-device checks need a person. Instrument the service and read logcat rather
than trying to synthesise the gesture.
Two traps when reading a device that is not in the state you assume:
- A sleeping or locked device swallows injected input silently, and a screencap of it looks like a
working screenshot that simply lacks your overlay. Check
dumpsys power | grep mWakefulnessandisKeyguardShowingbefore believing a negative result. screencap -d <id>on a fold can capture the inner panel while the device is closed and running on the cover display, returning a plausible image of the wrong screen at the wrong resolution.
A green build in turn says nothing about whether the cursor feels right. Behaviour changes want a real device: install, enable the service, and check the gesture end to end. Unfolding mid-drag and rotating mid-drag are the two paths that historically leave a cursor or a held press stranded.