Android

How to Disable Screen Timeout for Certain Apps on Android

How to Disable Screen Timeout for Certain Apps on Android

Stock Android has no switch for turning off the screen timeout in just one app. What you can do is build a rule that stretches the timeout while that app is open and puts it back when you close it. Samsung Modes and Routines, Tasker, MacroDroid and a handful of keep-screen-on apps will all build that rule.

The limit sits in how Android handles the keep-screen-on flag. Android Developers documentation states the flag may only be set in an activity, never in a service or other app component, so no outside tool can switch it on for another app’s window.

What these tools do instead is change the system timeout value, and that needs the modify system settings permission (WRITE_SETTINGS). Recipe and navigation apps are the usual targets, and reading apps come up a lot too.

Does Android Have a Per-App Screen Timeout Setting?

Stock Android doesn’t. There’s no built-in way to turn off the screen timeout for one or more specific apps, only a single idle timer that every app on the phone shares.

Every method here adds the per-app part on top of that timer.

How Some Apps Keep the Screen On by Themselves

Navigation apps hold the display awake with a window flag called FLAG_KEEP_SCREEN_ON, and so do video players and e-readers. The developer sets it in the app’s code.

When an app that holds the flag goes into the background, the system lets the screen turn off normally.

You can’t set the flag for an app that doesn’t use it, and that gap is exactly what Tasker, MacroDroid and keep-screen-on apps fill.

Android’s developer documentation also warns that keeping the screen on can drain the battery quickly, which is why the flag is meant for short stretches only.

What the Global Options Actually Do

YouTube player
  • Screen timeout sets one value for the whole phone, under Display settings.
  • Stay awake keeps the screen on while the device is plugged in.
  • Screen attention keeps it on while you look at it (Pixel 4 and later).
  • Samsung’s version of that is Keep screen on while viewing, found under Advanced features and Motions and gestures.
  • ADB can push the timeout to a very large value with a single shell command.

Stay awake lives in a hidden menu. Developer options stays hidden until you tap Build number seven times, and a fuller tour of the developer options menu on Android covers what else sits in there.

None of these is per-app. Stay awake and ADB change behavior for the whole phone, and Screen attention depends on a camera seeing your face, not on which app is open.

Timeout Limits at a Glance

The standard menu runs from 15 seconds to 30 minutes (Esper), and most devices ship with 30 seconds (Gadget Hacks). ADB goes a lot further, up to 2,147,483,647 milliseconds, about 596.5 hours (Esper).

Which Method Fits Your Phone?

Samsung Galaxy owners should start with Modes and Routines. Everyone else is looking at Tasker, MacroDroid or a dedicated keep-screen-on app.

MethodPer-app triggerReverts on exitInstall needed
Samsung Modes and RoutinesYes, “app opened”Yes, when routine endsNo
TaskerYes, application profileYes, with an exit taskYes
MacroDroidYes, app-launched triggerYes, with a restore actionYes
Keep-screen-on app (Stay Alive, Kinscreen)Yes, app pickerYes, when the app closesYes
Stay awake (developer options)NoOnly when unpluggedNo

Decision Rule by Phone

On a Samsung Galaxy, use Modes and Routines first. Android 13 and later put it under Settings, while Android 12 and 11 provide routines through the Bixby Routines app.

Pixel and other brands have no built-in per-app option. That leaves Tasker if you want control, or a keep-screen-on app if you just want it working today.

Tasker takes longer to learn. A keep-screen-on app with an app picker takes about two minutes, which is plenty for most people. Honestly, if it’s a single recipe app you’re after, Tasker is overkill.

Why Screen Attention and Stay Awake Do Not Count

Some guides list Screen attention or Smart Stay as a per-app fix. They aren’t.

Screen attention keeps the screen on while you’re looking at it, whichever app is open. It helps with reading, but it can’t give one app a longer timeout than the rest.

What Permissions Do These Setups Need?

Each method asks for its own permissions, and you grant every one of them by hand.

  • Modify system settings (WRITE_SETTINGS) lets an app change the timeout value itself. The open-source KeepOn app lists it because Android requires it to modify screen timeout settings. On most phones the toggle sits under Settings, Apps, Special app access.
  • Tasker needs accessibility access so that it can see which app is open.
  • Kinscreen asks for phone state (READ_PHONE_STATE) on Android 12 and later.
  • Samsung puts the Modes and Routines permissions under More options, then Settings, then Permissions.

Special app access works differently from the usual allow-or-deny pop-up. It helps to understand how Android app permissions are granted before you approve any of them.

Grant only what the method you picked asks for.

How to Set a Per-App Screen Timeout With Samsung Modes and Routines

YouTube player

The routine fires when the chosen app opens and sets a longer screen timeout, while the phone-wide timeout stays short. Nothing extra to install.

  1. Open Settings, tap Modes and Routines, switch to the Routines tab and tap the plus button.
  2. Under If, add a trigger, choose App opened, then pick the app and confirm.
  3. Under Then, tap Add action. If the action you want is not suggested, tap Add action at the bottom and configure it. Choose Screen timeout.
  4. Set the longest duration the menu offers. A Samsung Members reply suggests 10 minutes for reading apps.
  5. Name the routine and tap Done.
  6. Keep the standard timeout under Settings, then Display, at a short value such as 30 seconds.
  7. Open the app, wait past the normal timeout, then close the app and confirm the short timeout returns.

Where the Routine Breaks

A One UI 8.5 Beta report from April 2026 describes a Galaxy S23 where the phone’s default screen timeout changed to follow the routine’s timeout. The post says the issue was already reported in Beta feedback.

A separate Samsung Members reply says a Galaxy S25 may register the screen timeout as the app closing, which ends the routine early. The suggested workaround is to add another action under Then that sets a longer screen timeout, the 10 minutes mentioned in step 4.

Samsung also acknowledged that on some devices Modes and Routines fails to execute because of compatibility problems between apps. Keep the Modes and Routines app updated.

How to Keep the Screen On for One App With Tasker or MacroDroid

Both apps watch for a chosen app in the foreground and change the screen timeout while it stays open. Tasker undoes its setting actions by itself once the profile that applied them goes inactive. MacroDroid fires its app trigger on launch and on close, so the restore is a second step you build yourself.

Tasker Application Profile

  1. Open Settings, then Accessibility, and switch Tasker on. Tasker needs this access to see which app is open.
  2. In Tasker, open the Profiles tab, tap the plus button and choose Application.
  3. Pick the app, then go back and create a new task for the profile.
  4. Add the Display Timeout action and enter the duration you want while the app is open.
  5. Leave the exit task empty. Tasker restores any setting changed in the Enter task of a profile.
  6. Open the app, wait past the normal timeout, then close it and confirm the short timeout returns.

Settings changed inside tasks called with Perform Task don’t get restored, only the ones set directly in the Enter task. Same story for anything changed in an Exit task.

MacroDroid Macros

MacroDroid needs a pair of macros. The first uses the Application Launched/Closed trigger with the launched option and your app selected, and its action is Set Screen Timeout, which MacroDroid users pair with brightness and launch actions when they want the display always on.

The second watches the same app with the closed option and puts the timeout back to your normal value.

MacroDroid’s wiki also describes an alternative detection option for people who prefer not to enable accessibility access.

MacroDroid is commonly described as a more user-friendly alternative to Tasker. Pick Tasker for the automatic restore, and MacroDroid if Tasker’s menus put you off.

Are Keep-Screen-On Apps Like Stay Alive and Kinscreen Worth Using?

For one or two apps, yes, though several of these apps are old and at least one name belongs to more than one listing. Check the last update date before installing.

Stay Alive

Stay Alive keeps the screen on for selected apps while they are open. It’s free, with extra features unlocked by donating.

It needs “App with usage access” turned on. The APKMirror changelog for version 2.1.0.0 lists fixes for Android 7, so test it on your own Android version first.

Kinscreen

Kinscreen started as a clone and improvement of Samsung’s Smart Stay. AirDroid’s guide also demos configuring a specific app as always-on with Kinscreen.

The Google Play listing was last updated on Nov 8, 2023, although the developer’s changelog mentions Android 14 support. You get a broad feature set and a free tier with in-app purchases, but the listing hasn’t moved since late 2023.

Keep Screen On and KeepOn

Keep Screen On from Double Ape offers an “On for specific apps” option, which the listing marks as a Pro feature. Its Play listing was last updated on Oct 27, 2026.

Watch out for the name, though. A different app also called Keep Screen On, from 43waves, is marked as discontinued at AlternativeTo, although its Google Play listing is still live and was last updated on Nov 8, 2026. Check the developer name before you install.

KeepOn is open source and overrides the screen timeout globally, then reverts when the screen turns off (F-Droid listing), so it isn’t per-app on its own. It does ship a Tasker/Locale plugin, which means a Tasker profile can switch it on for one app. Version 2.2.1 arrived on Aug 19, 2026 and requires Android 9.0 or later.

Why the Screen Still Turns Off, and What Keeping It On Costs

Most of the time the automation app was stopped, not misconfigured. Android and the phone maker both stop background apps, and a profile that isn’t running can’t fire when you open your app.

Automation Stops Running

Doze defers background CPU and network activity once the device has been left unplugged and stationary with the screen off. That’s why a setup that worked all day can be dead the next morning.

Vendor battery managers add their own layer. DontKillMyApp ranked Samsung at the top for killing background apps after its Android 11 updates.

Samsung also keeps a list of sleeping apps, and an automation app that lands there stops running until you remove it. Learn how to take an app out of Samsung’s sleeping list.

Sources disagree on how much an exemption helps. Android’s documentation says an exempted app can hold partial wake locks during Doze, while DontKillMyApp coverage says vendors can still kill exempted apps.

The exemption is still worth setting. Google Play policy lists task automation apps among the acceptable cases for requesting it.

On stock Android the route is Settings, Apps, the app, Battery, then Battery optimization and Don’t optimize.

On Samsung, go to Settings, Battery and device care, Battery, Background usage limits, then Never sleeping apps.

Battery and OLED Cost

Keeping the display lit is the biggest battery cost in this setup, and the app you choose decides how large it gets. To see how much it costs, check which apps are draining your battery after a few days.

Burn-in is the second cost, and sources disagree on how serious it is. Android Authority reports that a Samsung support page on burn-in advises against leaving a static image on screen for more than two hours, though that advice covers TVs, not phones.

The same Android Authority article adds that phone screens rarely show a static image for hours. Digital Trends names long commutes with Waze or Google Maps as a common risk scenario, which is exactly where this setup gets used.

In practice, static navigation or recipe screens at high brightness for hours are the case to avoid. Reading and video, where the picture changes, carry less risk.

Per-App Screen Timeout FAQ

Can I set a different screen timeout for each app instead of turning it off?

You can. One Samsung Members post describes a routine that gives Samsung Notes a 5-minute timeout while the phone stays on 30 seconds everywhere else.

TechCult adds that per-app durations come from third-party apps, not from Android’s own settings.

Why is the screen timeout ignored or greyed out?

Power saving mode is usually behind it. A Samsung Members reply says it can drop a timeout of 1 minute or longer to 15 seconds.

Samsung’s Knox documentation (updated June 2026) describes the same override on managed devices running Android 15 or higher, where the value defaults to 30 seconds.

Does keeping the screen on also skip the lock screen?

Not by itself. Screen timeout and lock timing are separate settings, and One UI keeps them apart on purpose.

Android Authority reports a default lock delay of five seconds after the screen turns off. The lock timer counts from the moment the display goes dark, so a per-app rule only postpones it while the app is open.

Does the Xposed Never Sleep module still work?

Treat it as obsolete. Never Sleep is an Xposed module that Gadget Hacks covered for the Galaxy Note 3, and it depends on root.

The LSPosed project that carries Xposed modules forward was archived on Jan 8, 2024. No source confirms Never Sleep on current Android.

Does pressing the power button reset a per-app screen timeout?

With the Xposed Stay Awake module it does. Gadget Hacks says pressing the power button works as a manual override that resets per-app timeouts to the default.

Tasker and Modes and Routines documentation doesn’t describe this case. Press the button once during testing and check the timeout when the phone wakes.

Keeping a Per-App Screen Timeout Working After Updates

A per-app screen timeout needs a recheck after every Android or One UI update, because each update changes how the system treats the automation app behind the rule.

Android 17 stable arrived on June 16, 2026, and its app memory limits can kill an app that exceeds them. That’s another way for Tasker or MacroDroid to stop.

Stable One UI 8.5 began reaching Galaxy S23 beta testers on May 18, 2026, and no source confirms the update fixed the April beta bug in routine timeouts.

Retest in this order, since each step depends on the one before.

  1. Open the app past the normal timeout.
  2. Check the battery exemption.
  3. Close the app and watch the timeout revert.

When the first check fails, check which apps are running in the background on Android to see whether the automation app was stopped.

Position verified November 2026. Android 17 QPR2 is expected in December 2026, which makes December the next recheck.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.