TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: TapLock – double tap to lock your Android device

3 点作者 modelorona5 个月前
When I switched from a Samsung to a Pixel, I was shocked to discover that the &#x27;double-tap to lock&#x27; feature (where you double-tap an empty area of the home screen to lock your device) wasn&#x27;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&#x27;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:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;details?id=com.ah.taplock">https:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;details?id=com.ah.taplock</a><p>Source code is here: <a href="https:&#x2F;&#x2F;github.com&#x2F;modelorona&#x2F;TapLock">https:&#x2F;&#x2F;github.com&#x2F;modelorona&#x2F;TapLock</a><p>Any suggestions or feedback, please feel free to leave here or on the repo.

暂无评论

暂无评论