A Sony Xperia you no longer carry can make a good home or shop security camera. Sony's software is closer to plain Android than most brands, so there are fewer hidden switches to find. But there is one Sony feature that matters a lot for a camera phone: STAMINA mode. Depending on its level and on how old your phone's Android version is, it can stop a background camera app with the screen off.

This guide goes through the Sony settings one by one, in plain English, using Sony's own Xperia Help Guides and the dontkillmyapp.com Sony page. It ends with a short test plan. Nothing here needs a cloud account, a subscription or an internet plan.

Why does my Sony Xperia stop the camera app with the screen off?

Usually because of STAMINA mode, not because of the camera app. On recent Xperia phones, STAMINA mode is Sony's name for Android's Battery Saver. At its default level it behaves close to normal Android, but the stronger "Prefer battery time" level limits background work much more. On older Xperia phones, dontkillmyapp.com reports that STAMINA mode "instantly breaks all background processes". The fix is to set the camera app's background battery use to Unrestricted, keep STAMINA mode off (or never on "Prefer battery time") on the camera phone, and test for three nights.

Sony's own Help Guide gives the exemption directly: "To make specific apps exempt from the STAMINA mode, set the background usage of each app to unrestricted."

Background Camera RemoteStream records with the screen off and saves video only on the phone. While it records, it shows a notification, so you can always see that recording is on. Its remote web view (listed as a Pro feature on the Play listing) lets you watch from another device on the same Wi-Fi or hotspot. None of that needs the internet. Only the optional YouTube Live stream does.

First: which Android version is your Xperia on?

Sony's settings changed with Android versions, and dontkillmyapp.com describes older and newer Xperia phones differently. Check Settings → About phone → Android version first.

  • Newer Xperia phones (recent Android versions): STAMINA mode is Android's Battery Saver with a Sony name, plus a STAMINA level choice. Most of the fix is one per-app switch.
  • Older Xperia phones: you may see STAMINA mode in Battery or in Power management, plus a separate Power-saving feature list and a Battery optimisation list. These need more care.

Menu names differ between models. If a step below does not match your phone, use the search box at the top of Settings and type the setting's name.

Setting 1: Make the camera app "Unrestricted"

This is the most important step on any Xperia, old or new.

On a recent Xperia (Sony's Xperia 1 VII guide):

  1. Open Settings → Apps and pick your camera app.
  2. Tap App battery usage.
  3. If Allow background usage is off, turn it on.
  4. Tap Allow background usage → Unrestricted.

On a slightly older model such as the Xperia 10 IV, Sony's guide words it as Settings → Apps → [app] → Battery → Unrestricted.

Why this works: Sony's guide says this is how you exempt an app from STAMINA mode. Android's developer documentation also lists apps "that the user has explicitly designated to provide 'unrestricted' functionality in system settings" among the apps that can never be put in the strictest "restricted" standby bucket. Do this for one app, the camera, and leave everything else alone.

Also note the other direction. Sony's guide says: "Your device restricts apps from using battery power in the background. The setting is individually specified for each app." If anyone has set the camera app to Restricted in the past (for example while cleaning up a phone that was slow), it will not run properly in the background until you change it back.

Setting 2: STAMINA mode and "Prefer battery time"

Sony describes STAMINA mode as a feature that "prolongs the time until the battery needs charging by disabling some functions of the device", and adds: "Depending on the STAMINA level, different features will be restricted or disabled."

You find it in Settings → Battery → STAMINA mode.

On a dedicated camera phone:

  1. Turn Use STAMINA mode off. A camera phone that lives on a charger does not need it.
  2. If you do want it on (for example, to stretch the battery during a power cut), never choose Prefer battery time. dontkillmyapp.com says this level "will have more aggressive limitations on background activity" and advises: "Avoid setting it to 'Prefer battery time' if you need AOSP behaviour." (AOSP means plain Android.)

There is a second trap. Sony's guide says: "You can set the STAMINA mode to turn on or off automatically according to the battery level." That is useful in your pocket. On a camera phone, it means a loose charger cable at 2 a.m. can quietly switch STAMINA mode on when the battery drops. Check the automatic setting inside the STAMINA screen and turn it off, or make sure Setting 1 is done so the camera app is exempt.

A small side effect you might notice: Sony's guide says "When you turn on the STAMINA mode, the display switches to the Dark theme mode." If you wake the camera phone and the screens are suddenly dark, STAMINA mode is probably on.

Setting 3: Older Xperia phones (Power-saving feature and Battery optimisation)

If your Xperia is on an older Android version, dontkillmyapp.com describes two more places to check, and a stronger warning:

"For older Android versions, never use STAMINA mode if you want your device to do something useful when not actively using it."

The same page says that on those older versions STAMINA mode "does not affect only mobile data and WiFi, it also terminates any background processes." So on an old Xperia camera phone, turn STAMINA mode off, full stop.

Then:

  1. Power-saving feature: go to Settings → Apps & notifications → Advanced → Special app access → Power saving feature and set your camera app to Excepted.
  2. Battery optimisation: go to Settings → Battery → ⋮ (three dots) → Battery optimisation, show all apps, and set your camera app to not optimised.

Both are per-app. You are only changing the camera app.

Setting 4: Adaptive battery and "Intelligence Engine"

dontkillmyapp.com lists two more things that have been reported on some Xperia phones:

  • Adaptive battery (reported on Android 11, and possibly earlier). This Android feature learns which apps you use and limits the rest. A camera app you never open by hand can look "unused" to it. Setting 1 (Unrestricted) is the main protection.
  • Intelligence Engine, which was reported on some phones to "break background tasks, or break DND mode schedules". If your model has it in its battery or power settings, turn it off on the camera phone.

These are user reports collected by dontkillmyapp.com, not Sony documentation, so treat them as "check if you see it", not as something every Xperia has.

Setting 5: Battery Care (this one is fine, but understand it)

Battery Care does not stop apps. It controls charging, so it is worth knowing about on a phone that sits on a charger all day.

Sony's guide says Battery Care "detects your charging patterns", charges normally "until it is 90% charged", and then controls the charging rate so the battery reaches 100% "just before you disconnect the charger". You can also "set a charging limit so that the battery always only charges up to 80% or 90%." Sony adds that Battery Care "will not control the charging rate until it detects a regular charging cycle of at least 4 hours over a period of several days."

A camera phone is plugged in all the time, so a charging limit is gentle on an old battery. The trade-off is that you start a power cut with less charge. Our guide to the 80% or 85% charging limit on a plugged-in camera phone walks through that choice. The same thinking applies to Sony's 80% and 90% options.

Setting 6: Don't swipe the camera app away

Sony's guide has a page on "Stopping applications and services from running". That is normal advice for a pocket phone. On a camera phone, if someone else uses it (a family member, a shop helper) and closes the recent apps, the camera may stop. Put a small note on the phone, and check that the recording notification is still there when you pass by.

Does any of this need internet?

No. Every setting in this guide is on the phone, and recording is saved locally. The remote web view works over the same Wi-Fi or over the camera phone's own hotspot, with no data pack. Note that dontkillmyapp.com describes STAMINA mode on older Xperia phones as affecting mobile data and Wi-Fi as well as background work, which would also stop live viewing. One more reason to keep it off.

The 3-night test for a Sony camera phone

One good night proves very little. Battery tools often act after the phone has been idle for hours, and STAMINA mode may only switch on when the battery drops.

  1. Night 1: set everything above, start recording, put the phone on the charger, screen off. In the morning, check that the recording covers the whole night with no long gaps. Also check the live view from another phone at least once after midnight.
  2. Night 2: do not open the camera app before bed. Only check in the morning. This tests the "nobody touches it" case.
  3. Night 3: unplug the charger for an hour in the evening, then plug it back in. Check that STAMINA mode did not switch on (look for the dark theme), and that recording continued. Then restart the phone once and see whether the camera app needs to be opened again.

If a night fails, note the time recording stopped, then go through Settings 1 to 6 in order.

Coming from another brand?

Sony is one of the gentler brands. If you have a second spare phone, these guides cover other makers' screens:

Quick checklist for a Sony Xperia camera phone

  • [ ] Camera app → App battery usage → Allow background usage on → Unrestricted
  • [ ] Camera app is not set to Restricted
  • [ ] STAMINA mode off on the camera phone (and never on Prefer battery time)
  • [ ] Automatic STAMINA by battery level turned off
  • [ ] Older Xperia: Power saving feature → Excepted for the camera app
  • [ ] Older Xperia: camera app not battery-optimised
  • [ ] Intelligence Engine off, if your model has it
  • [ ] Battery Care charging limit chosen on purpose (80% / 90% / none)
  • [ ] Nobody swipes the camera app away
  • [ ] Three nights tested, including one unplug and one restart

The bottom line

A Sony Xperia is one of the easier phones to turn into a screen-off camera, because most of Sony's battery control sits in one place: STAMINA mode. Set the camera app to Unrestricted, keep STAMINA mode off (or at least away from Prefer battery time), turn off its automatic switch-on, and test for three nights. After that, an old Xperia can record all night with the screen off and show you a live view on your own network, with no cloud account, no subscription and no internet plan.

Try it: Background Camera RemoteStream on Google Play · More guides at superfunicular.com

Sources: Sony Xperia Help Guides, STAMINA mode (Xperia 1 VII), STAMINA mode (Xperia 10 IV), Battery and power management (Xperia 10 IV), Battery Care (Xperia 10 IV); dontkillmyapp.com, Sony; Android Developers, App Standby Buckets. Menu names differ between Xperia models and Android versions. Checked 2026-12-04.