Android Clash Keeps Disconnecting in the Background: VpnService Permissions and Battery Settings

Learn how Android VPN permissions work and which battery, autostart, and background settings to adjust on major Android phones to prevent VPN drops when the screen is off.

First, tell whether the VPN failed to start or dropped when the screen locked

Android Clash clients typically use the system VpnService to create a local VPN interface and route device traffic through the app. A key or VPN icon in the status bar means Android currently detects a VPN connection; it does not mean your subscription is valid or the selected server is working. When troubleshooting, first distinguish between a VPN interface that has disappeared and one that is still active while websites fail to load. This helps avoid mistaking a server issue for a background restriction.

  1. Keep the screen on, open the client, make sure a configuration is enabled and a proxy server is selected, then turn on the connection. Open a website that normally works in your browser to confirm the connection is working in the foreground.
  2. Lock the screen for 5 minutes, then unlock it. Check the VPN icon in the status bar, followed by the client's connection switch. If the icon has disappeared or the switch is off, check VpnService permission and background restrictions first.
  3. If the VPN icon is still there and the client still shows a connection, try switching servers and check whether your current Wi-Fi or mobile data connection can access familiar websites directly. An expired subscription, an unavailable server, rules, or DNS settings could be the cause.

It also helps to note exactly when the connection drops: only after the screen locks, only when switching from Wi-Fi to mobile data, or whenever you open another VPN app. Each scenario points to different settings, so there's no need to reinstall the client right away.

Recheck VpnService permission and the system VPN status

The first time you turn on an Android client's connection, the system displays a VPN connection request. Check the app name shown in the prompt to make sure it's the Clash client you're using, then tap “OK” or “Allow.” If you dismiss the prompt, the client can't create a VPN interface. Importing a subscription alone does not grant this permission. If you switch to another client app, you'll need to approve its request separately.

Check the system settings in this order

  1. Go to Android Settings → Network & internet → VPN. On some devices, VPN is under Settings → Connections & sharing or Settings → More connections. You can also search for “VPN” in Settings.
  2. Check whether the active connection belongs to the client you're using. If Android shows another VPN, a work-profile VPN, or a proxy app you installed earlier, first decide whether it needs to be disconnected. Android generally can't route traffic for the same user through two regular VPN apps at once.
  3. Return to the client and turn the connection back on, watching for the system permission prompt. If the app reports a permission error, disconnect the old VPN from the system's VPN list and try again. Avoid rapidly switching between multiple clients.

Some clients also offer per-app routing or settings to bypass selected apps. If just one app can't connect while your browser works, check whether that app is excluded from the VPN. That's different from the VPN icon disappearing after the screen locks. Desktop guides may mention a TUN switch, but that setting doesn't apply directly to Android: here, first check whether the system VpnService connection is established and stays active.

Remove the client from battery optimization restrictions

Android battery management may restrict apps running in the background. Menu names and paths vary by Android version and manufacturer, but the goal is the same: find the client you installed and allow it to keep running in the background. The examples below use “Clash for Android” as it appears in the app list. If you use another Android client, select its name instead.

Android interfaceSettings path to look forWhat to check
Stock Android / PixelSettings → Apps → Clash for Android → App battery usageAllow background usage; if “Unrestricted” is available, select it while troubleshooting
Samsung One UISettings → Battery → Background usage limits → Never auto sleeping appsAdd the client to the list, and make sure it isn't still in “Deep sleeping apps”
Xiaomi MIUI / HyperOSSettings → Apps → Manage apps → Clash for Android → Battery saverSelect “No restrictions.” Depending on the version, you can also open this from App info.
Huawei HarmonyOS / EMUISettings → Apps & services → App launchFind the client, turn off automatic management, and check that background activity is allowed under manual management
OPPO / OnePlus ColorOSSettings → Battery → App battery managementFind the client and allow background activity. Then check the battery settings in App info.
vivo / iQOO OriginOSSettings → Battery → Background power consumption managementFind the client and allow high background power consumption, or select the equivalent background-running option

The paths above cover common settings, but menus aren't identical across all system versions. If you can't find a menu, press and hold the client icon on your home screen to open App info, then go to Battery or Battery usage. You can also search Settings for “battery optimization,” “background battery usage,” or the app name. After changing a setting, reconnect manually in the client and lock the screen to test whether it helped.

Allowing an app to run without battery restrictions can increase background battery use, especially when a server is transferring data continuously. Change settings only for the client you're using; there's no need to add your browser or other apps. If your phone offers “Optimized” and “Unrestricted” modes, test both for 5 and 15 minutes with the screen locked and note whether the VPN icon stays visible. Don't rely only on whether the app remains in the recent apps list.

Check autostart, background locking, and notification permissions

Even after battery settings allow background activity, some manufacturers manage startup and task cleanup separately. On Xiaomi devices, check the client switch under Settings → Apps → Permissions → Autostart. On Huawei devices, check autostart, secondary launch, and background activity under Manual management in App launch. On other systems, search Settings for “autostart.” These options mainly affect startup after a reboot and continued background activity; they don't replace the initial VpnService permission.

If your phone's recent apps screen has a lock icon or a “Lock” option, enable it on the client's app card to prevent it from being closed by a “Clear all” action. Depending on the manufacturer, you may need to press and hold or swipe down on the card, or open its menu. If this feature isn't available, skip it; there's no need to install a task manager. What happens when you swipe the app away from recent apps depends on the client and Android version, so test that separately rather than combining it with a screen-lock test.

Android 13 and later may ask for notification permission separately. Go to Settings → Apps → Clash for Android → Notifications and check that connection status notifications are allowed. Notification permission and VPN permission are separate: a missing persistent notification doesn't prove that VpnService has disconnected. Check the system VPN page, the client's connection status, and actual network access together.

Retest with the same steps after changing settings

Retest the same way after changing each type of setting to see which one made a difference. Keep the network unchanged, connect the client, and confirm a website loads. Then lock the screen for 5 and 15 minutes, checking the VPN icon and website access each time. Next, stay connected and switch from Wi-Fi to mobile data manually; try again once the mobile connection is available. If the problem occurs only after switching networks, check mobile data permissions, the network, and server connectivity instead of repeatedly changing battery settings.

  • VPN icon disappears and returns only after reopening the client: Recheck battery optimization, autostart, background locking, and whether another VPN app has taken over the connection.
  • VPN icon stays visible, but no websites load: Switch to a known-working server in the client, check for configuration updates, proxy mode, and DNS settings, and make sure the phone itself is still connected to Wi-Fi or mobile data.
  • Only one app can't connect: Check the client's per-app routing, that app's network permissions, and how the current rules handle the destination domain.
  • The VPN doesn't connect automatically after a reboot: Check Android's “Always-on VPN” setting, the manufacturer's autostart settings, and the client's own startup option separately. Don't treat a connection that fails after a screen lock and one that doesn't start at boot as the same issue.

Once troubleshooting is complete, keep only the background permissions you need and observe a full screen-lock, unlock, and network-switch cycle during regular use. If the issue returns after a system update, check app battery usage and autostart settings again. Manufacturer updates may rename menus or change app management settings, so verify the options on your current device.

View client downloads