Phone in the morning

How to block apps at night automatically on Android (and why Bedtime Mode fails)

A cozy bedroom nightstand with a smartphone resting quietly in night mode next to an alarm clock and a warm lamp.

Photo by Beyond Alarm Studio on Pexels

To block apps at night automatically on Android, built-in Bedtime Mode is not enough because its one-tap pause provides zero resistance. You need a dedicated blocker scheduled across your sleep window using Android's Accessibility Service with strict uninstall protection enabled, while keeping emergency calls and alarms whitelisted.

The short answer: Android's native tools only advise you to sleep; they do not enforce it. A true automated night lockout triggers on a recurring schedule (such as 10:30 PM to 7:00 AM), overlays an impenetrable block screen over selected addictive apps, and blocks access to Android Settings so you cannot force-stop the guard half-asleep.

Night Lockout automatically shields distracting apps on a recurring schedule every evening.
Night Lockout automatically shields distracting apps on a recurring schedule every evening.

The 11:00 PM failure loop: Why Bedtime Mode doesn't work

Most people who struggle with late-night screen time have already tried Android's native tools: Google's Digital Wellbeing Bedtime Mode, Samsung's Modes & Routines, or basic app timers.

They fail for a mechanical reason: they are designed for cooperative users in broad daylight, not tired brains looking for cheap dopamine at midnight.

When your willpower is depleted at the end of the day—a phenomenon known as revenge bedtime procrastination—a soft boundary is meaningless. Digital Wellbeing greys out app icons, but clicking an icon displays a polite prompt: "Bedtime Mode is on. Unpause for 5 minutes?"

Your groggy brain taps "Unpause" in 300 milliseconds. Forty-five minutes later, you are still scrolling. We explored this mechanical friction gap in detail: if the cost to bypass a restriction is lower than the urge to scroll, the restriction fails 100% of the time.

Three ways to block apps at night on Android

There are three distinct architectural approaches on Android today. Here is how they compare when tested under real bedtime conditions:

Method How it blocks Bypass friction at 11:30 PM Emergency calls Survives reboot
Android Digital Wellbeing Grayscale & pause prompt Zero (1-tap unpause) Yes Yes
Standard App Blockers Accessibility overlay Low–Medium (PIN / delay) Yes Risk of OEM kill
Beyond Alarm (Night Lockout) Strict Accessibility & system shield High (Strict anti-bypass lock) Yes (Dialer open) Yes (Boot receiver)

1. Built-in Bedtime Mode (Google / Samsung)

Built-in tools are gentle reminders. They turn your screen black-and-white to make content less stimulating and mute non-priority notifications.

However, they do not restrict app execution. The moment you open Instagram, YouTube, or TikTok, Android gives you an instant override. In the middle of the night, when prefrontal cortex activity is low, an instant override is equivalent to no barrier at all.

2. Standalone App Blockers (Accessibility Overlays)

Dedicated app blockers like AppBlock, Stay Focused, and Freedom monitor active foreground packages via Android's AccessibilityService. When you launch a blocked package, the service immediately intercepts the window event and pushes a full-screen blocking overlay over the target app.

This is vastly superior to native timers because it physically prevents interaction with the feed. But standalone blockers face two common pitfalls at night: 1. The Easy Uninstall Loop: If you get a strong craving to scroll, you can simply open Android Settings → Apps → AppBlock → Force Stop or Uninstall. Unless the app has strict device administration protection turned on, it is gone in ten seconds. 2. The Disconnect from the Morning Alarm: A blocker scheduled to unlock at 6:00 AM does not care whether you are out of bed or still lying under the covers. If your alarm rings at 6:15 AM, you end up scrolling through your unblocked feeds between 6:00 AM and 6:15 AM.

3. Integrated Alarm & Lockout Systems

This is the approach we designed for Beyond Alarm. Instead of treating the alarm and the app blocker as separate tools that have no idea what the other is doing, the night lock is tied directly to your sleep cycle.

The blocker engages automatically at your set evening cutoff. Crucially, it does not unlock on a simple clock time in the morning. It stays locked until you have physically completed your morning alarm mission (such as walking across the room, scanning a barcode, or completing push-ups in front of the camera).

Beyond Alarm

Beyond Alarm does this part for you: the alarm will not switch off until you have actually moved, and the apps you pick stay locked afterwards.

Step-by-Step: How to set up an automatic night lock that holds

If you want an automated night lock that actually protects your sleep, follow these four rules:

1. Set the trigger 30 minutes before you get into bed

If your target sleep time is 11:00 PM, your night lock must start at 10:30 PM. If you wait until your head hits the pillow to engage your blocker, you will open Instagram "just for a second" before locking it, and the trap is sprung.

2. Lock the habit apps, whitelist the utilities

Never lock your entire phone. A complete lockout creates panic if you receive an urgent late-night call or need to check a two-factor authentication code. - Lock: Social feeds (Instagram, TikTok, X, Reddit), video streaming (YouTube, Netflix), web browsers (Chrome, Firefox), and games. - Leave Open: Phone, Messages, WhatsApp/Signal (for family), Calculator, and Notes.

3. Enable Strict Mode / Anti-Bypass Protection

Any blocker worth using must prevent you from simply going to Settings → Apps → Force Stop.

On Android, proper blockers achieve this by monitoring window state transitions via AccessibilityService. When an active lock session is running, opening the system Settings page or app management screen immediately triggers the shield, preventing sabotage.

Strict protection blocks the Settings menu so you cannot kill the service half-asleep.
Strict protection blocks the Settings menu so you cannot kill the service half-asleep.

4. Bridge the night directly into your morning alarm

The most dangerous moment for late-night scrollers is not just before bed—it is waking up and reaching for the phone while still under sleep inertia.

When your night lockout ends at 6:00 AM, but your alarm doesn't ring until 6:30 AM, you will fill that 30-minute void with morning doomscrolling. The gold standard is an all-in-one system: the night lock holds until your morning alarm mission is physically verified.

We built Night Lockout into Beyond Alarm because running a standalone alarm and a separate app blocker creates annoying gaps where one starts before the other finishes. Night Lockout engages automatically at your set hour, shields your chosen apps with strict anti-bypass protection, and holds until you complete your morning alarm mission. It is completely free with no subscriptions.

Dealing with Android battery killers on Xiaomi, Samsung, and Pixel

Even the best automated blocker will fail if your phone's operating system kills its background service while you are asleep.

Different Android manufacturer skins (OEMs) aggressively terminate background processes to save battery: - Samsung One UI: Go to Settings → Apps → [Your Blocker] → Battery → Unrestricted. - Xiaomi MIUI / HyperOS: Enable Autostart, set Battery Saver to No Restrictions, and lock the app in the recent apps tray. - Pixel / Stock Android: Set Battery usage to Unrestricted.

We documented the exact OEM background restrictions and workarounds because reliability is the foundation of any digital habit tool.

The Bottom Line

You cannot rely on willpower when you are exhausted at night. Willpower is a daytime resource.

To stop scrolling in bed, replace good intentions with automated structural friction: schedule your block 30 minutes before bed, enforce it with strict Accessibility protection, and don't lift the shield until your feet are on the floor tomorrow morning.

Common questions

Why doesn't Android's built-in Bedtime Mode stop me scrolling at night?

Bedtime Mode only greys out your screen and pauses notifications. It does not actually lock apps, and tapping any paused app presents a one-tap "Use app for 5 minutes" or "Pause Bedtime mode" button that requires zero friction to dismiss half-asleep.

Will an automated night app blocker block incoming phone calls or alarms?

No. Legitimate Android app blockers run on the Accessibility Service and leave core telephony, SMS, and alarm clock services completely uninhibited. Beyond Alarm's Night Lockout explicitly whitelists the phone dialer and critical tools while shielding social feeds and browsers.

Can I bypass a night app blocker by restarting my phone?

With basic app blockers, yes. But blockers with a persistent foreground service and BOOT_COMPLETED broadcast receivers re-engage the lockout overlay immediately upon device boot, before you can launch an app.

How do I stop myself uninstalling the blocker when I get a craving to scroll?

You need Strict Mode / Uninstall Protection enabled. On Android, this protects the app via Device Admin privileges or Accessibility monitoring on the system Settings page, preventing force-stopping or uninstalling during an active lock window.

What is the best scheduled window to lock apps at night?

The most effective window starts 30 to 45 minutes before your target sleep time (e.g., 10:30 PM) and holds until your morning alarm is dismissed, preventing both bedtime revenge scrolling and early-morning bed doomscrolling.

Beyond Alarm

We build Beyond Alarm, an Android alarm app that will not switch off until you have actually moved. Most of what we write here comes out of problems we hit building it.

Beyond Alarm

An alarm that keeps ringing until you’ve actually moved — then blocks the apps that pull you back to bed. Free to start, no account.