Android Proxy Draining Battery? Battery Optimization and Background Settings

Troubleshoot high battery use from Android proxy apps, including frequent DNS requests, rule updates, and background restrictions. Learn which battery and autostart settings to check.

First, tell standby drain apart from lock-screen disconnects and background reconnects

Go to Settings → Battery → Battery usage and check your proxy app’s background consumption. Compare it with the phone’s overall battery change over the same period. A high ranking in the usage list doesn’t necessarily mean the app is draining your battery quickly—it may be handling network traffic for other apps while the phone is idle. First check whether the whole phone is losing charge quickly or just whether the proxy app ranks high.

  • Service stops when the screen locks: After unlocking, check the system VPN settings to see whether the connection is still active, then open the client and check its status. If you have to launch it manually each time, check background restrictions first.
  • The service is running, but webpages won’t load: Note when you unlock the phone and check the client’s logs from the last few minutes. If you see repeated DNS resolution or outbound connection timeouts, troubleshoot those errors first. Loosening battery restrictions usually won’t fix them.
  • The connection is stable, but standby drain is high: Check scheduled tasks and background traffic first. Repeated log entries at regular intervals are more worth investigating than a one-off failed speed test.

Battery optimization: exempt only clients that disconnect with the screen off

If the proxy works while the screen is on but repeatedly stops with it off, long-press the client’s home-screen icon, tap App info, then open its battery settings. A battery “whitelist” usually means setting the app to Unrestricted or removing it from a sleep list. This prevents background restrictions; it isn’t a battery-saving switch. If the connection is stable, leave the system’s default optimization settings in place.

Where to find background battery settings on popular Android phones
Device Example path What to check
Pixel(Android 14) Settings → Apps → select the client → App battery usage Allow background battery usage. If it still disconnects, try Unrestricted.
Samsung (One UI 6) Search Settings for “Background usage limits” Make sure the client isn’t listed under Deep sleeping apps or Sleeping apps. Remove it and test again.
Xiaomi (HyperOS) App info → Battery saver (called Battery on some versions) If the service still stops during a screen-off test, try setting this app to Unrestricted.

Menu names can vary by system version and region, even on phones from the same manufacturer. If you can’t find the setting, search Settings for “App battery usage,” “Battery optimization,” “Battery saver,” or “Background usage limits.” After changing a setting, leave the screen off for 30 minutes. When you unlock, check the system VPN status first, then open the client and review its logs. If the service stays up but standby drain increases, investigate DNS and scheduled tasks. Don’t add every app to the exemption list.

Frequent DNS requests: look for retries before judging query volume

Open Logs or Runtime logs in the client, note the current time, and check only the entries from a 10-minute screen-off period. Occasional domain lookups are normal. Look for two patterns: the same domain appearing repeatedly with timeouts, or a batch of queries recurring at regular intervals. If the client lets you temporarily increase the log level, turn it on briefly to investigate, then restore the original setting to avoid generating excessive debug logs.

  1. The same domain repeatedly times out during DNS resolution: Check whether this happens only on Wi-Fi or also on mobile data. If it occurs only on one Wi-Fi network, first check whether you need to sign in through a captive portal, then confirm that the DNS upstream in your config is reachable on that network.
  2. The log identifies a DNS upstream host: If your encrypted DNS service is configured by hostname, check whether the log shows that the upstream hostname itself failed to resolve. Verify the upstream and DNS settings with your configuration provider. Don’t change the client DNS, Android Private DNS, and proxy node all at once, or you won’t know which change stopped the retries.
  3. The same batch of queries appears at regular intervals: Compare the timestamps with node health checks, rule-set refreshes, or an app’s sync schedule. If the logs show the source of a connection, check that too. Without source information, a domain alone can’t tell you which app made the request.

If DNS queries succeed and outbound connection timeouts appear afterward, focus on the proxy node or network switching rather than changing DNS settings again. Before sharing a screenshot, hide subscription URLs, tokens, and private domains. Keep the timestamps, error types, and task names visible.

Rule updates and node checks: adjust their intervals separately

A subscription refresh updates the full remote configuration. A rule provider refresh checks external rule files, while a node health check actively probes connections. These tasks may be scheduled by the client or run by the core. Turning off the client’s subscription auto-update may not stop rule updates or health checks configured in the profile. Check task names and timestamps to tell them apart.

If you use an Android client that supports Mihomo configs, open its config viewer or override settings and check the active config. For remote rule providers, the interval under rule-providers is measured in seconds: 3600 is one hour; 86400 is one day. If a routine rule set does not need frequent updates and its provider does not require hourly refreshes, try changing this value from 3600 to 86400. Keep the original interval for rule sets that need timely updates.

  • Updates happen in bursts: Check whether the client offers an option to update only on Wi-Fi or lets you adjust the refresh interval. If a download fails, first check whether the rule URL is reachable rather than simply extending the interval.
  • Node probes keep appearing in the logs: Check health-check under proxy-providers, along with probe settings for automatic node-selection groups. If it probes a batch of candidate nodes every 60 seconds and you don’t need that quick a failure response, try 300 seconds and check that failover is still fast enough.
  • Changes disappear after a subscription refresh: The setting may be in a section that gets overwritten by the remote config. If the client supports separate overrides, put the change there. Otherwise, save a copy of the original config first, then make the change using a method supported by the client.

After making a change, manually refresh the relevant rule set and check that the client reports no loading errors. Then test rule matching with two sites that normally use different policies. A short screen-off test can show whether frequent probes have decreased. To verify a daily refresh schedule, wait at least one full refresh cycle.

Autostart and always-on VPN: match the setting to when disconnects occur

If the client fails to launch only after a phone restart but stays connected while idle when started manually, check autostart first—not battery restrictions. On some HyperOS versions, look under Settings → Apps → Permissions → Autostart, or search Settings for “Autostart” if the menus differ. Also check for a separate “Launch at startup” option in the client. After changing the setting, restart the phone and unlock it once. Check the connection on the system VPN page before opening the client, so you can tell automatic recovery from a manual launch.

If you need the VPN to stay connected, go to Settings → Network & internet → VPN and tap the settings icon next to the client to check whether Always-on VPN is available. This tells the system to maintain or restore the VPN; it’s separate from the manufacturer’s app autostart permission. “Block connections without VPN” is a separate option that may temporarily cut off internet access if the VPN disconnects. Don’t enable it just to test battery drain. If your workplace requires it, keep the existing policy.

Download Clash