Android kills voice recording in the background — how to stop it
Android stops background recording almost entirely because of power management: standard battery optimisation, Adaptive Battery, Battery Saver, Doze, and the extra sleeping-app and auto-start restrictions manufacturers add on top. A recorder that runs as a foreground microphone service with a persistent notification is allowed to keep going — but only once you take it off those restriction lists.
Try this first
- Settings → Apps → your recorder → Battery → Unrestricted.
- Allow the app's notifications — the ongoing notification is what keeps the recording service alive.
- Turn Battery Saver off and check whether it switches on automatically at a battery percentage.
- Remove the app from any manufacturer sleeping / deep-sleeping / auto-start restriction.
- Exclude the app from any cleaner, security or task-killer app.
- Test 15 minutes locked, then one hour, then overnight.
Not sure this is your problem?
Answer a few questions and the troubleshooter will weigh the likely causes for your device, with the exact settings to check. It runs in your browser — nothing is uploaded.
Diagnose my recording issueThe layers that can stop you
Android background restrictions stack. Fixing one and leaving the others in place is the usual reason "I already set that" doesn't work.
| Layer | What it does | Where to look |
|---|---|---|
| App battery optimisation | Limits background work per app | Settings → Apps → app → Battery |
| Adaptive Battery | Learns and restricts apps you use rarely | Settings → Battery |
| Battery Saver | Cuts background activity system-wide | Settings → Battery |
| Doze / App Standby | Defers background work when the device is idle | Automatic |
| Manufacturer sleep lists | Extra per-app sleeping / deep sleeping states | Manufacturer battery menu |
| Auto-start restrictions | Stop the app restarting or acting on schedules | Manufacturer app menu |
| Cleaner / task-killer apps | Close background apps to "free memory" | The cleaner app itself |
Fix in this order
- Microphone permission — allow it, and choose the always-allow option if your phone offers one.
- Notifications — allow them. On Android a microphone foreground service must show an ongoing notification; blocking it undermines the mechanism that keeps recording alive.
- Battery: Unrestricted for the recorder.
- Battery Saver off, including the automatic trigger at low charge.
- Manufacturer lists — sleeping apps, deep sleeping apps, auto-start, background power consumption. This is the step people skip, and it's the one that matters most on Samsung, Xiaomi, Oppo, Vivo, Realme, OnePlus and Huawei.
- Cleaners — allow-list the recorder, or uninstall the cleaner.
- Don't swipe the app away from recents while it's recording.
Menu names vary by device and OS version, so treat the paths below as a guide and search your Settings app if one doesn't match.
Prove it with a ladder of tests
Background restrictions often appear only after hours, so a five-minute test proves very little:
- 15 minutes, screen locked, nothing else running.
- One hour, screen locked.
- Overnight, or a full working day.
- The same again with Battery Saver deliberately on, so you know what that costs you.
Note pass or fail for each. If everything passes until the overnight run, you're looking at a deep-sleep or Doze-related restriction rather than a plain battery setting.
Signs it's not battery at all
- It stops at exactly the same point every time, right after a call → microphone conflict.
- It stops the moment you open the camera → microphone conflict.
- It only happens after a restart → the app needs reopening to re-arm.
- The file exists but is silent → audio routing or permission, not power.
The troubleshooter separates these in about a minute. If you'd rather plan the setup before it fails again, the phone compatibility checker scores your device and hands you the allow-list for your manufacturer.
Where BlackBox fits
BlackBox runs as a foreground microphone service with a persistent notification — the configuration Android expects for continuous capture — and writes hourly files so you can see exactly where a session ended. Device power settings still take priority over any app, so the allow-lists above are worth setting once.
Frequently asked questions
Why does Android kill my recorder but not my music app?
Both use foreground services, but power management, manufacturer sleep lists and cleaners apply per app. A recorder you rarely open in the foreground is a likelier target for Adaptive Battery than a music app you use daily.
Do I really need to allow notifications?
Yes. Android requires a visible ongoing notification for a microphone foreground service. Blocking it removes the signal that keeps the service running.
Is swiping the app from recents the same as force-stopping it?
Not identical, but both can end a recording. Swiping usually stops the session; force-stopping from Settings also cancels scheduled work until you open the app again.
Will Android 15 or 16 fix this?
Newer releases have tightened rather than loosened background rules. The foreground-service-plus-allow-list approach is still the reliable path.
Related fixes
Go deeper
Record with BlackBox
Designed for continuous and scheduled background recording, on-device and private. Operating-system restrictions still apply — test it on your device first.