Stop Android Killing Your Apps in the Background

Everything you need to stop Android from silently closing your apps in the background, with step-by-step fixes for Samsung, Xiaomi, OnePlus, Huawei and every other major phone brand.

Android Guide · Updated 2025–2026

Stop Android Killing Your Apps in the Background

A plain-English guide to disabling battery optimisation for every major phone brand — so your apps stay alive, your notifications arrive on time, and your alarms actually go off.

Why Does Android Kill Background Apps?

Since Android 6 (Marshmallow), Android has included a system called Doze mode that kicks in when your phone is idle, cutting background processes and network access to save battery. Android 9 added Adaptive Battery — a machine-learning layer that watches which apps you use least and restricts them further over time.

That would be fine on its own — but most major manufacturers (Samsung, Xiaomi, OnePlus, Huawei, and others) layer their own aggressive battery managers on top of Android’s standard system. These vendor restrictions are often far stricter than Google’s defaults, and they can silently kill apps that you haven’t opened for a day or two — even apps that are supposed to run continuously.

The real culprit is usually your phone brand The standard Android battery system is relatively mild. The aggressive behaviour people experience — missed notifications, alarms that don’t fire, tracking apps that stop logging — is almost always caused by a manufacturer’s custom overlay, not stock Android itself.

Which Apps Are Typically Affected?

Any app that needs to do work while you’re not actively using it can be a victim. Common examples:

  • Messaging apps — WhatsApp, Telegram, Signal (delayed or missing notifications)
  • Email clients — Gmail, Outlook (messages that only appear when you open the app)
  • Alarm clocks & reminders — can fail to fire after a few days of inactivity
  • Health & fitness trackers — GPS logging stops in the background
  • Banking & OTP apps — one-time passwords arrive late or not at all
  • Smart home / IoT apps — lose connection to devices
  • VPNs & security tools — protection drops silently
  • Navigation apps — stop updating location when the screen is off

How Aggressive Is Your Phone Brand?

The table below gives a rough idea of how aggressively each manufacturer restricts background apps out of the box. The more aggressive the brand, the more steps you may need to take.

Brand / OSAggression LevelNotes
Google Pixel (stock Android)LowClosest to standard Android; fewer extra steps needed
MotorolaLow–MediumGenerally well-behaved; Adaptive Battery can be over-zealous
Nokia (HMD)MediumNear-stock but Doze behaviour can be aggressive
Sony XperiaMediumStamina Mode can restrict background activity
OnePlus / OxygenOSMedium–HighBackground activity limits are strict by default
Samsung / One UIHigh“Put apps to sleep” can activate after just 3 days
Oppo / Realme / ColorOSHigh“Background freeze” kills many apps
Vivo / Funtouch OSVery HighAutostart must be enabled manually per app
Xiaomi / MIUI / HyperOSVery HighMultiple layers of restrictions; settings can reset after reboot
Huawei / EMUIVery HighProtected apps list must be managed manually
How Android’s Doze Mode Restricts Background Apps ? Active Screen on / charging screen off ? Light Doze ~few minutes Sync reduced stationary ? Deep Doze ~1 hr+ idle Background blocked OEM layer ? OEM App Kill Samsung / Xiaomi / Vivo App process terminated ? Any screen-on / charging event returns app to Active state
Diagram 1 — The typical journey from Active to OEM-killed. The first three stages are standard Android; the fourth is manufacturer-added.

Step 1 — The Universal Fix (Works on All Android Phones)

Regardless of your brand, start here. This is the standard Android route that works on Pixel, Motorola, Nokia, and as a first step on all other brands.

  1. Open Settings
  2. Tap Apps (sometimes called Apps & Notifications or Application Manager)
  3. Find and tap your app in the list
  4. Tap Battery
  5. Select Unrestricted (sometimes labelled Don’t optimise or Not optimised)
  6. Confirm if prompted
? Tip: Find it faster with search On most phones you can pull down the Settings search bar and type “battery optimisation” to jump straight to the right screen.

On Android 12 and newer you can also reach the full optimisation list via: Settings → Apps → ? (three-dot menu) → Special app access → Battery optimisation → All apps — then find your app and set it to Don’t optimise.

Step 2 — Brand-Specific Extra Settings

After the universal step above, check the card for your phone brand below. Many manufacturers require additional changes beyond the standard Android setting.

Samsung (One UI)
  1. Settings → Apps → your app → Battery → set to Unrestricted
  2. Settings → Battery and device careBatteryBackground usage limits → disable Put unused apps to sleep
  3. Settings → Battery → More battery settings → turn off Adaptive battery
  4. In Recent Apps, long-press your app’s thumbnail and tap Keep open (padlock icon)

? Samsung can re-add apps to the sleep list after a firmware update. Re-check after major updates.

Xiaomi / Redmi / POCO
  1. Settings → AppsManage apps → your app → Battery saverNo restrictions
  2. Open the Security app → Autostart → toggle your app ON
  3. MIUI 14 / HyperOS: Settings → Apps → your app → App permissionsBackground autostart → Allow
  4. In Recent Apps, swipe your app card downward until a padlock appears — this locks the app in memory

? Xiaomi’s restrictions can reset after a reboot or system update. Repeat the Autostart step if problems return.

OnePlus (OxygenOS)
  1. Settings → Apps → your app → Battery usage → enable Allow background activity
  2. Disable Optimise battery use if shown
  3. Settings → BatteryBattery optimisation → switch list to All apps → your app → Don’t optimise
Motorola
  1. Settings → Apps → your app → App battery usage → tap the row (not just the toggle) → set to Unrestricted
  2. Settings → Battery → disable Adaptive battery
  3. If still having issues, search in Settings for “managing background apps” and ensure your app is toggled on
Vivo / iQOO (Funtouch OS)
  1. Settings → Apps → your app → Battery → select Background power consumption allowed
  2. Settings → Apps → your app → enable Autostart
  3. Check High background power consumption is not blocking the app
Oppo / Realme (ColorOS)
  1. Settings → Apps → your app → Battery usage → disable Background freeze
  2. Enable Allow background activity
  3. Check Settings → Battery → Power saving mode is off, or add the app as an exception
Huawei / Honor (EMUI)
  1. Settings → BatteryApp launch → find your app → disable Manage automatically
  2. Enable: Auto-launch, Secondary launch, Run in background
  3. Settings → Apps → your app → Battery → select Don’t optimise
Sony Xperia
  1. Settings → BatteryBattery Care or Stamina Mode → disable, or add your app as an exception
  2. Settings → Apps → your app → Battery → Unrestricted

Sony’s Stamina Mode is the main culprit on Xperia devices.

Nokia (HMD / Android One)
  1. Settings → Apps → your app → BatteryUnrestricted
  2. Settings → Apps → your app → Advanced → check Background restrictions is off

Nokia’s Android One devices are among the better-behaved — the standard fix is usually enough.

Don’t Forget: Data Saver & Background Data

Even if battery optimisation is disabled, Data Saver mode can prevent apps from receiving data in the background (no data = no notifications). Check this separately:

  1. Settings → Network & Internet (or Connections)
  2. Tap Data Saver
  3. Tap Unrestricted data (or Allowed apps) and enable your app

Also confirm background data is on for the app itself: Settings → Apps → [your app] → Mobile data & Wi-Fi → enable Background data.

How to Test That It Worked

  1. Apply all the relevant settings above for your brand
  2. Fully close the app (remove it from Recents) and lock your phone
  3. Wait 10–15 minutes without touching the phone
  4. Trigger a test event — send yourself a message, set an alarm for a minute ahead, or ask someone to message you
  5. Check whether the notification / alarm arrives promptly
  6. If still delayed, revisit your brand’s specific settings — especially Autostart on Xiaomi/Vivo, and Put unused apps to sleep on Samsung
? Don’t exempt every app Setting lots of apps to Unrestricted will noticeably shorten your battery life. Only do this for apps where timely background operation genuinely matters — messaging, alarms, health monitoring, navigation, banking. For games and social media it’s rarely worth it.
? After OS updates, settings can reset Several manufacturers (especially Samsung and Xiaomi) have been known to revert battery exemptions after a system update. If an app starts misbehaving again after a phone update, revisit these settings.

Quick Visual Reference

What to Change: At-a-Glance All Phones (Standard Android) Extra Steps for Your Brand ? Settings → Apps → [Your App] → Battery → Unrestricted ? Data Saver → Unrestricted data → enable your app ? Apps → [Your App] → Mobile data → Background data ON Samsung: Disable “Put unused apps to sleep” Samsung: Turn off Adaptive battery Xiaomi / Vivo: Enable Autostart in Security app Xiaomi: Lock app in Recent Apps (padlock) Huawei: App launch → disable Manage automatically Sony: Disable Stamina Mode, or add app exception
Diagram 2 — Quick reference summary. Start with the left column, then apply right-column extras for your brand.

Frequently Asked Questions

Will this drain my battery noticeably?

For most messaging, alarm, or utility apps: barely at all. The battery impact becomes noticeable only if you exempt many apps simultaneously, especially ones that do heavy data syncing or GPS logging. Be selective.

I disabled optimisation but notifications are still delayed — why?

Check the brand-specific extras: on Samsung, “Put unused apps to sleep” may still be on. On Xiaomi and Vivo, Autostart is a separate toggle in the Security app that’s easy to miss. Also check Data Saver isn’t blocking background data.

My settings reset after a system update — do I have to redo this every time?

Unfortunately, yes — especially on Samsung and Xiaomi. Make a note of the steps for your phone and recheck after major updates.

Is it safe to disable battery optimisation?

Yes, for trusted apps. Android will still apply its fundamental energy limits — you’re only removing the extra vendor-imposed layer on top. Avoid doing this for games or social apps, where the trade-off in battery life isn’t worth it.

Does this work on Android 14 / 15 / 16?

Yes. The setting names may vary slightly by version but the same principles apply through Android 16 (Baklava). OEM restrictions remain the dominant factor across all recent versions.

Where can I find instructions for my specific phone model?

The website dontkillmyapp.com maintains detailed, community-updated guides for individual phone models and OS versions, and is an excellent companion resource.