When I switched from a Samsung to a Pixel, I was shocked to discover that the 'double-tap to lock' feature (where you double-tap an empty area of the home screen to lock your device) wasn't a native option.<p>This feature existed as far back as 2014 on my LG G3, so why is it missing on the Pixel?<p>While there are alternatives on the Play Store, most are either closed-source or bundled into custom launchers — neither of which I wanted. Sending the lock-screen signal requires the Accessibility Service, and I wasn’t comfortable granting that level of access to a closed-source third-party app.<p>So, I decided to create my own solution. My app is completely open-source, contains no tracking or analytics libraries, and doesn’t make any external requests. The Accessibility Service permission is used solely to send the lock-screen command. I tried to find an alternative to locking the screen without requiring Accessibility permissions but the options either required root or weren't what I needed.<p>I also saw this as a chance to explore modern Android development. The last time I built an app from scratch, Jetpack Compose didn’t even exist. While I didn’t hate the experience, I won’t say I miss the days of wrestling with XML either. That said, some aspects of Compose felt harder to fully grasp and work with.<p>You can download it here: <a href="https://play.google.com/store/apps/details?id=com.ah.taplock">https://play.google.com/store/apps/details?id=com.ah.taplock</a><p>Source code is here: <a href="https://github.com/modelorona/TapLock">https://github.com/modelorona/TapLock</a><p>Any suggestions or feedback, please feel free to leave here or on the repo.