package icon

SleepGuard - dead man's switch

Locks your phone when you fall asleep watching videos. No ads, open source.
New in version 1.6.1
New language: Afrikaans.
Do you often fall asleep while watching videos or listening to music on your phone? SleepGuard makes sure your device doesn't keep running all night long.

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.”

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
  • Version 1.6.1 (13) suggested Added on Jul 31, 2026

    arm64-v8a armeabi-v7a x86 x86_64

    This version requires Android 8.0 or newer.

    It is built and signed by the original developer, and guaranteed to correspond to this source tarball.

    Permissions
    • run foreground service
      Allows the app to make use of foreground services.
    • run foreground service with the type "specialUse"
      Allows the app to make use of foreground services with the type "specialUse"
    • show notifications
      Allows the app to show notifications
    • ask to ignore battery optimizations
      Allows an app to ask for permission to ignore battery optimizations for that app.
    • Schedule precisely timed actions
      This app can schedule work to happen at a desired time in the future. This also means that the app can run when you're not actively using the device.
    • This app can appear on top of other apps
      This app can appear on top of other apps or other parts of the screen. This may interfere with normal app usage and change the way that other apps appear.
    • Schedule alarms or event reminders
      This app can schedule actions like alarms and reminders to notify you at a desired time in the future.
    • com.sleepguard.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION

    Download APK 11 MiB PGP Signature | Build Log

  • New in version 1.5.0
    * 20 more interface languages (49 total): Korean, Arabic, Hindi, Bengali, Tamil, Telugu, Marathi, Urdu, Indonesian, Vietnamese, Ukrainian, Serbian, Norwegian, Macedonian, Catalan, Icelandic, Galician, Albanian, Swahili, Hong Kong Chinese
    * Language picker is now sorted alphabetically
    * After updating, the welcome screen opens once so you can choose your language
  • Version 1.5.0 (11) - Added on Jul 28, 2026

    arm64-v8a armeabi-v7a x86 x86_64

    This version requires Android 8.0 or newer.

    It is built and signed by the original developer, and guaranteed to correspond to this source tarball.

    Permissions
    • run foreground service
      Allows the app to make use of foreground services.
    • run foreground service with the type "specialUse"
      Allows the app to make use of foreground services with the type "specialUse"
    • show notifications
      Allows the app to show notifications
    • ask to ignore battery optimizations
      Allows an app to ask for permission to ignore battery optimizations for that app.
    • Schedule precisely timed actions
      This app can schedule work to happen at a desired time in the future. This also means that the app can run when you're not actively using the device.
    • This app can appear on top of other apps
      This app can appear on top of other apps or other parts of the screen. This may interfere with normal app usage and change the way that other apps appear.
    • Schedule alarms or event reminders
      This app can schedule actions like alarms and reminders to notify you at a desired time in the future.
    • com.sleepguard.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION

    Download APK 11 MiB PGP Signature | Build Log

  • New in version 1.4.2
    * The Interval and Timeout settings now show a short inline explanation of what they do, so it's clearer at a glance
  • Version 1.4.2 (8) - Added on Jul 15, 2026

    arm64-v8a armeabi-v7a x86 x86_64

    This version requires Android 8.0 or newer.

    It is built and signed by the original developer, and guaranteed to correspond to this source tarball.

    Permissions
    • run foreground service
      Allows the app to make use of foreground services.
    • run foreground service with the type "specialUse"
      Allows the app to make use of foreground services with the type "specialUse"
    • show notifications
      Allows the app to show notifications
    • ask to ignore battery optimizations
      Allows an app to ask for permission to ignore battery optimizations for that app.
    • Schedule precisely timed actions
      This app can schedule work to happen at a desired time in the future. This also means that the app can run when you're not actively using the device.
    • This app can appear on top of other apps
      This app can appear on top of other apps or other parts of the screen. This may interfere with normal app usage and change the way that other apps appear.
    • Schedule alarms or event reminders
      This app can schedule actions like alarms and reminders to notify you at a desired time in the future.
    • com.sleepguard.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION

    Download APK 11 MiB PGP Signature | Build Log