SleepGuard - dead man's switch
At an interval you choose, a small red circle appears on top of whatever you are watching. Tap it and playback continues as normal. Don't tap it within a few seconds - because you have fallen asleep - and SleepGuard locks the screen, just like pressing the power button. Your video stops and your phone is protected for the rest of the night.
There is also an Audio mode for music, audiobooks and podcasts: instead of a button, SleepGuard works as a simple sleep timer that stops playback after your chosen interval — even with the screen off.
WHY YOU NEED IT
* YouTube and other apps with autoplay: Without SleepGuard, one video starts the next and the next and the next ... until morning. In the worst case the battery is drained empty and your alarm can no longer go off when you need it. SleepGuard stops the chain as soon as you stop responding.
* Netflix, Prime Video and other streaming apps: Fall asleep mid-episode and you wake up not knowing where you dozed off. You waste time scrubbing back to find the spot - sometimes sitting through long ads again and again. SleepGuard locks the screen right when you don't respond, so your streaming app knows where to continue.
HOW IT WORKS
1. Set how often the check button should appear (e.g. every 5 minutes).
2. Set how many seconds you have to react before the screen locks (e.g. 30 seconds).
3. Choose where on the screen the button appears.
4. Start SleepGuard and keep watching.
FEATURES
* Two modes: Video (wake-check button over any app) and Audio (sleep timer for music, audiobooks and podcasts, works also with the screen off)
* Adjustable interval and reaction time
* Eight button positions to choose from
* Reliable timing even in the background (uses the system alarm)
* Completely free, no ads, no tracking, no accounts
PRIVACY
SleepGuard has NO internet permission at all. It cannot send or receive any data. It does exactly two things: show a button and lock the screen. It collects nothing.
PERMISSIONS EXPLAINED
* Display over other apps: to show the red circle on top of your video.
* Device admin (screen lock only): to lock the screen like the power button.
* Foreground service & exact alarm: to make the check button appear on time.
* Ignore battery optimization: so the button still works reliably while another app is in the foreground.
* Notifications (Android 13+): to show the ongoing "SleepGuard is active" notification.
OPEN SOURCE
SleepGuard is free software, licensed under the GNU General Public License v3. The full source code is available so anyone can inspect exactly what the app does: https://github.com/OlafDrechsler/SleepGuard
SUPPORT
SleepGuard is free and will stay free. If it helps you, you can support its developer with a voluntary donation from within the app. There is deliberately no reward in return - it is simply a thank-you.
THE IDEA / THE NAME
The idea for the app comes from a safety system used on trains. In the driver’s cab, there is a button that the driver must press at regular intervals, otherwise the train will automatically stop. By pressing the button, the driver confirms that he or she is awake. Colloquially, this button is called a “dead man’s switch,” and so the app is also called “SleepGuard – dead man’s switch.”
- Author: Olaf Drechsler
- License: GNU General Public License v3.0 or later
- Issue Tracker
- Source Code
- Build Metadata
- Reproducibility Status
Donate
Versions
Although APK downloads are available below to give you the choice, you should be aware that by installing that way you will not receive update notifications and it's a less secure way to download. We recommend that you install the F-Droid client and use that.
Download F-Droid-
arm64-v8aarmeabi-v7ax86x86_64This version requires Android 8.0 or newer.
It is built and signed by the original developer, and guaranteed to correspond to this source tarball.
Download APK 11 MiB PGP Signature | Build Log
-
arm64-v8aarmeabi-v7ax86x86_64This version requires Android 8.0 or newer.
It is built and signed by the original developer, and guaranteed to correspond to this source tarball.
Download APK 11 MiB PGP Signature | Build Log
-
arm64-v8aarmeabi-v7ax86x86_64This version requires Android 8.0 or newer.
It is built and signed by the original developer, and guaranteed to correspond to this source tarball.
Download APK 11 MiB PGP Signature | Build Log
* Language picker is now sorted alphabetically
* After updating, the welcome screen opens once so you can choose your language

















