Clash Android Keeps Disconnecting in the Background: VpnService Permissions and Battery Settings
Fix Clash Android background disconnects with VpnService permissions, Always-on VPN, per-app proxy settings, and battery optimization and autostart options for popular Android brands.
First, determine whether the VPN disconnected or proxy traffic stopped working
When the connection drops, don't reopen the client yet. Pull down the status bar to check the system VPN status, then open Android's VPN settings to see which app is connected. Next, check the Clash client's connection history and logs. A key icon in the status bar only indicates VPN activity; it doesn't confirm that Clash is connected or that a proxy node is reachable.
| Symptom | Check first |
|---|---|
| The system VPN shows as disconnected after the screen turns off, and reconnects only after opening the client | Check the app's battery restrictions, sleep lists, and whether its background service has stopped. |
| Android still shows Clash as connected, but the logs repeatedly report outbound timeouts | First, confirm that Wi-Fi or mobile data is working. Then compare with another available node in the same proxy group. |
| Only one app can't connect; other apps work normally | Check the per-app list. If the request appears in the connection history, check which rule matched and which outbound was used. |
| The connection drops only when leaving or rejoining Wi-Fi | Test network switching separately. Existing connections may fail when the underlying network changes. Check whether the problem persists after making a new request. |
Check VpnService permissions and the active VPN
- Select a profile in the Clash Android client, then start the VPN. The first time the client creates a VPN connection, Android displays a system connection request. Check the app name in the prompt, then tap “OK.” This is system permission, separate from importing a subscription or allowing notifications.
- Open Android's VPN settings and confirm that the connected entry is the client you just started. Usually, only one VPN can be active at a time for a given user or work profile. Apps that use a local VPN for filtering also occupy this slot; while troubleshooting, stop any other VPN in the same profile.
- If the permission prompt appears again after every reboot or app switch, check whether you're starting two VPN apps in turn or whether the client was reinstalled or replaced with a different package. If permission is needed again, start the VPN from the new client, then check its connection status in Android's VPN settings.
Set up Always-on VPN and per-app proxy
Enable Always-on VPN first; decide later whether to block connections outside the VPN
On a Pixel running Android 14, go to Settings → Network & internet → VPN, tap the gear next to the Clash client, and turn on “Always-on VPN.” Android manages this option to start and maintain the selected VPN. It doesn't retry failed proxy nodes or replace the manufacturer's background settings. If the toggle is missing or unavailable, first confirm that the client supports it, then check whether an organization policy manages the device or work profile.
While troubleshooting, leave “Block connections without VPN” turned off and first check whether the service can reconnect. This setting controls network connections outside the VPN: when enabled, apps covered by the setting may lose internet access if the VPN isn't connected. With per-app proxy enabled, apps excluded from the VPN may also be unable to connect directly. Turn it on only if you need to force traffic through the VPN, then test access to local devices and essential apps one by one.
Know the difference between the per-app list and Clash rules
In the client's “Per-app proxy” or “Access control” settings, check which list mode is selected. “Proxy selected apps only” excludes unselected apps from the VPN; “Bypass selected apps” excludes selected apps. After changing the list, recreate the VPN as prompted. If it doesn't restart automatically, stop and start it again, then send a new request from the app you're testing.
The per-app list determines whether traffic enters the client; rules determine which outbound handles it once it does. If an app isn't covered, its requests may not appear in Clash's connection history at all. If the app is covered and a rule matches DIRECT, the traffic is still handled by the client, but it doesn't use a proxy node. When checking the per-app list, don't confuse these two types of direct connection.
Relax Clash background restrictions for your Android device
Change settings only for the client you use; there's no need to disable battery management across the entire device. The paths below are examples and may vary by OS version or regional firmware. If you can't find a setting, long-press the client icon and open App info, or search for the setting in Android's Settings app.
Pixel:Android 14
Go to Settings → Apps → See all apps → your Clash client → App battery usage. Make sure “Allow background usage” is on; if “Unrestricted” is available, select it. If the issue only occurs with Battery Saver enabled, leave the other settings unchanged and test again with Battery Saver off. Standard Pixel settings don't include a manufacturer-style per-app autostart whitelist, so there's no need to look for one.
Samsung Galaxy:One UI 6.1
Go to Settings → Battery → Background usage limits. Check whether the client is listed under “Sleeping apps” or “Deep sleeping apps.” If it is, remove it and add it to “Never auto sleeping apps.” On some devices, this is under Settings → Battery and device care → Battery. If the connection still drops when the screen is off, go to Settings → Apps → your client → Battery, check whether “Restricted” is selected, and compare it with “Unrestricted.”
Xiaomi and Redmi: HyperOS 1
Go to Settings → Apps → Manage apps → your client, then select “No restrictions” under Battery saver. If the issue occurs after a reboot or when the app needs to start in the background, go to Settings → Apps → Permissions → Background autostart and allow the client to start automatically. On some versions, the autostart option is in App info or Permission manager. Battery saver affects background activity; autostart controls whether the app can be launched in the background. Allowing autostart doesn't mean the VPN will connect at every boot.
Retest separately with the screen locked, during network switches, and after a reboot
- Establish a baseline. Use one Wi-Fi network, one proxy node, and one test app included in the VPN. With the screen on, send a new request, confirm that it works, and note the matched rule. Don't change the node, app list, and battery settings at the same time.
- Test with the screen locked. Run three separate tests, locking the screen for 1, 5, and 15 minutes. After each test, unlock the phone and check the system VPN status before opening Clash. Then send a new request from the test app. Note when the connection dropped and the first related error in the logs. If opening Clash is the only way to restore the connection, check battery restrictions and sleep lists first.
- Test network switching. With the screen on, turn off Wi-Fi and send a new request once mobile data is connected. Then switch back to Wi-Fi and repeat. If new requests work but an existing download or call drops, record it as an interruption to an existing connection during the network switch; there's no need to relax battery settings further.
- Test recovery after a reboot. Turn on “Always-on VPN,” restart the phone, and unlock it once. Check the system VPN page before testing connectivity. Don't use “Force stop” to simulate a locked screen: it deliberately terminates the app and makes it harder to assess how the system restores the VPN.
If the issue persists, note the phone model, Android and system UI versions, client version, time of disconnection, network in use, and whether Android still shows the VPN as connected. If Android shows it as disconnected, check the VPN service and background restrictions first. If it remains connected, check matched rules, DNS, and outbound connections. Remove subscription URLs, access tokens, and other sensitive information before sharing logs.