Custom lock overlay for the AYN Thor (and similar Android handhelds). Unlock with an ordered face-button sequence — like a PIN made of A → B → X → Y.
This is an app-level lock, not a replacement for Android’s system Keyguard.
- Full-screen lock overlay on both Thor displays
- App lock with unlock modes: relock on leave, stay unlocked, or timed
- Backup PIN / pattern unlock
- Customizable lock look (wallpaper / solid / per-screen images, font, elements) with live preview
- Optional auto-lock when the screen turns off
- Wrong-sequence reset + short lockout after repeated failures
- Haptic feedback on presses
- Android 8.0+ (API 26); tested target: AYN Thor
- Accessibility permission (button capture + overlay)
- No root / Shizuku required
- Install the APK (
.\build.ps1 assembleDebug→app/build/outputs/apk/debug/app-debug.apk) - Open Latch
- Tap Enable button detection → turn on Latch in Accessibility
- Tap Set unlock sequence → press at least 4 buttons → Done → confirm → Save
- (Optional) Set a backup PIN/pattern, enable auto-lock, disable battery optimization
- Add the Latch Quick Settings tile, or tap Lock now
While locked, press your buttons in order. Progress dots fill as you go. A wrong button clears the attempt. After 5 failed attempts you must wait 30 seconds.
- Does not replace the Android lock screen / PIN / biometrics
- Cannot fully block power-button reboot, safe mode, or every OEM gesture
- Overlay covers both built-in displays on dual-screen devices (Thor top + bottom)
- Treat this as a convenience lock for handheld use, not high-security protection
cd c:\Users\mezra\joystick-lock
.\build.ps1 assembleDebugUses the local .jdk folder when present (junction to Screen Switcher’s JDK is fine).
If Latch helps you out, optional tips are welcome: