First distinguish normal data transfer and repeated attempts on a weak signal from Android stopping the app in the background. Then adjust v2rayNG’s background permissions as needed. This guide covers settings paths on popular Android brands, how to check per-app proxy settings, and a staged standby test. It’s for users whose phones heat up while connected, lose internet when the screen locks, or show high v2rayNG battery use. Grant background access only to apps that need a persistent connection—you don’t need to disable battery-saving features across the entire phone.
Tell battery drain apart from background disconnects
v2rayNG is an Android client that uses the Xray core. When its VPN service is enabled, traffic entering the virtual network interface is routed according to your configuration and sent through the appropriate outbound. Downloads, encryption, DNS lookups, and mobile data all use power. Seeing the VPN icon in the status bar doesn’t mean the processor is constantly at full load.
Open Settings → Battery → Battery usage and check the time period, battery level change, and foreground and background activity. A figure such as “30%” usually means the app’s share of battery use for the selected period—not that the battery lost 30 percentage points. Some systems also attribute network activity forwarded through the VPN to the VPN app, so don’t judge the client by the ranking alone.
- Phone heats up while downloading with the screen on: Pause downloads, cloud photo backups, and video preloading, then check how the phone behaves while idle.
- Connection drops after the screen locks and returns when you reopen the app: Check battery restrictions, background activity, and whether Android is stopping the process.
- Repeated connections while the phone is idle: Check node reachability, network switching, and background app retries. Don’t start by increasing keep-alive frequency.
- All apps are draining the battery: Check for weak signal, hotspot use, system updates, and battery health before blaming the proxy process for a phone-wide issue.
Run three standby comparisons
Use the same phone, location, and type of network for each test. Don’t charge during testing, and keep screen brightness, sync tasks, and battery saver settings consistent. Finish any large downloads before locking the screen. The times below are suggested test durations—not results measured by this site or pass/fail thresholds for standby drain.
- Record your phone model, Android version, v2rayNG version, and network type. Find the client version under About in the sidebar; note the full version number so you can reproduce the test.
- Complete Test A and note the starting and ending battery levels, the time, and any disruptions such as a system update.
- Complete Test B using a single fixed node. Don’t run a speed test, refresh subscriptions, or switch networks.
- Based on what you observe, change just one setting—for example, allow background activity or exclude more apps from the VPN—then complete Test C.
- If the difference is only one battery increment, extend each test to two hours and repeat it. Battery percentages are rounded, so short tests may not give a reliable result.
Check the battery change before allowing background access
Relax background restrictions only if the connection clearly drops when the screen locks and recovers when you reopen the app. If the connection stays up but battery use rises, first reduce unnecessary traffic and retries. Allowing background access by itself won’t reduce battery drain.
Adjust battery and background settings by device brand
Long-press the v2rayNG icon and open App info to find its battery and data permissions. The table shows common settings paths, but menu names and locations may vary by system version and regional firmware. If you can’t find an option, search Settings for “battery optimization,” “autostart,” or “app launch management.” Don’t follow screenshots for another phone and disable every restriction.
| System | Common settings path | What to change |
|---|---|---|
| Stock Android and Pixel | Settings → Apps → v2rayNG → App battery usage | Allow background usage; if there’s a usage setting, choose “Unrestricted.” |
| Xiaomi HyperOS / MIUI | App info → Battery saver; search Settings for “Autostart” or “Background autostart” | Set Battery saver to “No restrictions.” Allow autostart only if needed to resume the app. |
| Samsung One UI | App info → Battery; Settings → Battery → Background usage limits | Choose “Unrestricted” and check whether the app is listed under “Deep sleeping apps.” |
| OPPO / OnePlus | App info → Power usage or Battery usage | Allow background activity and check for a system-provided autostart switch. |
| vivo / iQOO | Settings → Battery → Background power consumption management | For v2rayNG, choose the option that allows high background battery use. |
| Huawei EMUI / HONOR MagicOS | Settings → Apps & services → App launch management, or search Settings for “App launch management” | If manual management is available, allow autostart and background activity as needed. |
These switches control different things. Autostart determines whether an app can launch in certain situations; allowing background activity reduces restrictions while it runs in the background; locking it in Recent apps affects only some cleanup behavior. None guarantees that Android will always keep the process running, and none automatically establishes a VPN connection after startup.
Android’s Doze mode can also affect network access. Choosing “Unrestricted” may ease some limits, but it doesn’t bypass every system behavior. Extreme battery saver, cleanup tools, or manufacturer background freezing can still interrupt connections. Prefer an exception for v2rayNG over disabling battery-saving features across the phone.
Reduce VPN traffic and unnecessary retries
If the connection stays up while idle but battery use remains high, open Settings in the v2rayNG sidebar and look for per-app proxy options. Some versions list these as a separate menu. Check whether the current mode is “Proxy selected apps only” or “Bypass selected apps” before choosing apps. The modes do opposite things, and choosing the wrong one changes how all your apps connect.
- Route only the apps that need it. If you only need a browser, select just that browser in the clearly labeled “Proxy selected apps only” mode. System components, backup tools, and download tasks don’t all need to use the VPN.
- Understand the difference between bypassing and direct routing. Traffic marked direct by routing rules usually still passes through the VPN and core for processing. Excluding an app with per-app settings can bypass the VPN entirely. Reducing the processing path doesn’t guarantee a fixed percentage of battery savings.
- Stop continuous checks. Exit the speed test screen when node connectivity testing is done. If your version supports automatic checks or scheduled tasks, review how often they run. Don’t use continuous speed tests to keep the app alive.
- Use a reliable node. Connect to a node confirmed to reach the service you need. Protocol names such as VMess and VLESS don’t determine battery life on their own; link quality, traffic volume, and retries matter too.
- Check DNS and routing. If the logs repeatedly show domain resolution failures, check the node’s domain, DNS reachability, and the outbound route used for DNS traffic. Don’t apply desktop v2rayN settings paths to Android.
After switching from global proxy to split routing, test both the target service and regular websites. Routing changes where matched traffic goes; it doesn’t stop app syncing or guarantee fewer background tasks. For details on rules, see the split routing guide. For the Android client, see Getting started on Android.
Check Android settings and connection logs when the connection drops with the screen locked
After reproducing the issue, note the time and check the corresponding period under Logs in the v2rayNG sidebar. The examples below are real error snippets that may appear in connection logs, not a fixed format for a complete log entry. Consider the surrounding destination addresses and how often the errors occur; a single error doesn’t explain battery drain throughout an entire standby period.
Error: context deadline exceeded
Cause and fix: An operation didn’t finish within the allotted time. It may involve DNS resolution, a handshake, or a connection to the destination. First try reaching the same destination with the screen on, then switch to a known working node. Investigate background network restrictions only if the errors occur mainly when the screen is locked.
Error: network is unreachable
Cause and fix: There was no available route to the destination at the time, possibly during a network switch or interface change. Retest on Wi-Fi or mobile data without switching networks, then check the node address and IPv4 and IPv6 reachability.
Error: connection refused
Cause and fix: The destination actively refused the connection, often because no service is listening or the port doesn’t match. Use the address in the log to identify whether the node or another destination refused the connection. Check the configured port or contact the service provider; repeated retries won’t fix a service that isn’t running.
If the logs stop updating right after the screen locks and show startup messages when you return to the app, check whether Android is stopping the process. If connection failures continue to appear, focus on the node, network, and destination service. Temporarily increase log detail to reproduce the issue once, then restore the previous level to avoid generating debug output indefinitely. Before sharing logs, hide subscription URLs, node credentials, and personal browsing records.
- Under App info → Mobile data & Wi-Fi or Data usage, confirm that background data is allowed. If Data Saver is enabled, check whether v2rayNG needs an exception.
- Check v2rayNG under Settings → Network & internet → VPN. If “Always-on VPN” is enabled, confirm that it suits your needs.
- If “Block connections without VPN” is enabled, losing all internet access when the VPN disconnects may be expected. Before changing it, decide whether you need this strict blocking behavior. Don’t disable it blindly just to restore internet access.
Common questions and setting trade-offs
Will “Unrestricted” reduce battery use?
Not directly. It mainly reduces background restrictions, which may prevent disconnects but can also increase background activity. Compare results under the same conditions first. If the connection is already stable, keeping the system’s default optimization is usually the better choice.
If I lock the app in Recent apps, do I still need to enable autostart?
Address each issue separately. Locking the app card mainly prevents certain cleanup actions; autostart applies to specific launch scenarios. One doesn’t replace the other. After restarting your phone, check whether the app starts and the VPN connects. Autostart being enabled doesn’t mean the VPN will connect automatically.
If battery use is high only on mobile data, should I switch protocols?
Retest with the same node in a location with a strong signal, then compare with Wi-Fi. Weak signals and frequent cell handoffs increase wireless power use; the protocol name alone won’t identify the cause. If the connection works normally on a stable network, focus on coverage and network switching first.
Can I disconnect when I’m not using it overnight?
You can stop the connection in v2rayNG if that suits your needs, then check whether any background services you rely on remain accessible. If VPN blocking is enabled, understand what it does first. If you need to receive messages through the proxy continuously, keep the connection active and reduce unrelated background tasks.
Bottom line: grant only the permissions you need, when you need them
When you need a persistent connection during the day, allow only the background permissions v2rayNG requires. Disconnect when you don’t need it. If the problem persists, note the app and system versions, how long the screen was locked, the network type, and relevant log entries. Then troubleshoot the specific link instead of changing everything at once and losing a useful comparison.
Download v2rayNG and the desktop client
Choose a client for your system and architecture: v2rayNG for Android and v2rayN for Windows desktop. For your first setup, follow the guide to import your subscription, then verify the connection.