Troubleshooting 7 min read

Clash for Android battery drain: how to troubleshoot background activity, battery optimization and always-on VPN settings

Start with Android battery stats to identify what’s using power. Learn how manufacturer background restrictions, battery optimization and persistent notifications differ, and when to reduce subscription update frequency.

Check battery stats first, then compare screen-off behavior

First, distinguish between two issues: the VPN stays connected but drains the battery while idle, or it disconnects when the screen turns off and reconnects when the screen wakes. For the first, investigate background network activity. For the second, check whether the service is being stopped. Adding the client to an unrestricted list may prevent disconnects, but it can also mask frequent speed tests or repeated reconnects.

Use the same test window

  1. On a Pixel running Android 15, go to Settings → Battery → Battery usage. Find the client you installed, such as FlClash, and check its background usage or active time. Compare that with screen and mobile network usage over the same period. On other devices, search Settings for “Battery usage” or “Battery drain.”
  2. Keep the Wi-Fi network, proxy node and proxy mode the same. Unplug the charger and run two 60-minute screen-off tests: one with the VPN running normally, and another with the VPN stopped in a test environment where direct connections are allowed. Don’t stream media or download files during either test. Record the battery level at the start and end, whether the VPN stayed connected, and whether the client log shows a burst of reconnects.
  3. A 1% difference isn’t enough to draw a conclusion. Battery levels are rounded, and background sync may not happen during both tests. If the difference is small, try a longer window at the same location, such as three hours per test, and switch the test order. Test Wi-Fi and mobile data separately; don’t combine the results.

VPN disconnects with the screen off: adjust background restrictions by manufacturer

After waking the screen, check Android’s VPN settings before restarting the client. If the VPN is disconnected and the client log stopped during the screen-off period, investigate background restrictions first. If the VPN still shows as connected but webpages won’t load, check whether the current node is down, DNS is timing out, or the device switched from Wi-Fi to mobile data. A connected status only confirms that the VPN interface exists; it doesn’t prove the upstream node is reachable.

DeviceWhere to lookWhat to change
Pixel / Android 15Settings → Apps → See all apps → select the client → App battery usageCheck “Allow background usage.” If “Unrestricted” is available, try it only if disconnects persist with the default optimization setting.
Samsung / One UI 6.1Settings → Battery → Background usage limitsFirst check whether the client is on the Sleeping or Deep sleeping apps list. Remove it and test again. If it still disconnects, consider adding it to “Never auto sleeping apps.”
Xiaomi / HyperOSLong-press the client icon → App info, then look for “Battery saver.” In Settings, also search for “Background autostart.”If the service stops when the screen locks, try “No restrictions.” Check autostart separately only if you need the service to resume after a reboot and testing shows that it doesn’t.

Menu names can vary by region and system update. If you can’t find a setting, start from App info. There’s no need to disable system-wide battery saving for a single proxy client. An unrestricted list usually relaxes only some battery limits; it won’t prevent the app from being stopped forcibly, disconnected by the user or closed by the manufacturer’s cleanup tools. Change one setting at a time and repeat the same screen-off test. If it doesn’t help, restore the original setting before checking the next one.

Always-on VPN and notifications: test each setting separately

If you don’t need all traffic routed through the VPN around the clock, start the client only when needed. If you do, test it at least once with the screen off and once while switching from Wi-Fi to mobile data. If the connection drops briefly only during a network switch, note how long recovery takes. Then determine whether the network was reconnecting or the client had exited—don’t treat them as the same issue.

VPN stays connected but drains the battery: check subscriptions, rules and health checks separately

Subscription updates, rule-providers refreshes and proxy group health checks are separate activities. The client usually manages subscription updates, while the core typically runs the other two based on the active configuration. Turning off automatic subscription updates in the client won’t also stop rule refreshes or speed tests. Check the actual intervals in the configuration or subscription manager, then compare them with timestamps in the logs.

Look for recurring network requests

When reviewing logs, note the time and type of error. If DNS timeouts, failed node handshakes or connection resets happen in clusters, test again on a stable network, then compare one different node at a time. Remove subscription URLs and tokens before sharing logs. Configurations managed through a subscription may overwrite local edits on the next update. Before testing again, confirm which values are actually in effect rather than relying on what an editor still displays.

Keep only the exceptions that testing confirms you need

Record four things for each test: duration, battery change, whether the VPN disconnected, and when failures or reconnects occurred. If the service stops with the screen off and relaxing one background restriction fixes it, keep only that change. If the connection stays stable and reducing update or health-check frequency improves idle battery life, leave Android’s default battery optimization enabled. If the control test with the VPN off still drains the battery noticeably, check overall device usage and investigate weak signal, hotspot use, cloud sync and other background downloads.

The right configuration depends on your connectivity needs. For devices that must stay online, verify that the VPN works with the screen off, recovers after a network switch and doesn’t drain too much power while idle. For phones that connect only on demand, make sure the VPN disconnects when you stop the client. Don’t judge the results by battery usage rankings alone.

Download Clash