For anyone who has imported a server and is ready to use v2rayNG on an Android phone. First, test that the system VPN and server work with one app. Then check background restrictions based on the symptoms, and finally verify the app list with two apps. This separates first-time permission issues, disconnections when the screen locks, and accidentally reversed app selections.
VPN permissions: establish a baseline connection
In VPN mode, v2rayNG uses Android's VpnService to create a local virtual network interface and routes captured traffic through the Xray core. The key icon in the status bar shows that a system VPN session is active; it does not confirm that the remote server is reachable or that every app is using the proxy.
Check for an existing VPN
On stock Android 14, for example, go to Settings → Network & internet → VPN and check whether a VPN is already active in the current profile. If it is a VPN you configured, disconnect it first. If it is managed by a work policy, leave it in place and contact your administrator.
Connect to the selected server
Return to the v2rayNG home screen, select an imported server, then tap the connect button in the bottom-right corner. The first time you start the VPN, tap OK in Android's “Connection request” dialog. This grants system permission, not subscription access; you usually won't need to confirm again when switching servers.
Verify connectivity
For the first test, turn off per-app proxy in Settings, then stop and restart the connection. Keep Wi-Fi or mobile data unchanged and make a fresh request in your browser. If the key icon appears but the request fails, check the server configuration and core logs first—not the battery settings.
Battery optimization exemptions: check background restrictions by brand
If the connection is stable with the screen on but drops after the screen locks, check background restrictions first. Long-press the v2rayNG icon and open App info. The steps below use common menu labels; names and locations can vary by device and OS version. If you can't find a setting, search for it in Settings.
| Device | Where to look |
|---|---|
| Pixel / stock Android 14 | App info → App battery usage → Unrestricted. If it was set to Restricted, note the original setting so you can compare results. |
| Xiaomi HyperOS | App info → Battery saver → No restrictions. Check Autostart only if the app needs to launch after a reboot or be started in the background. Autostart does not automatically establish a VPN. |
| Samsung One UI | App info → Battery → Unrestricted. Then go to Settings → Battery → Background usage limits and make sure the app isn't listed under Deep sleeping apps. |
| OPPO ColorOS | App info → Battery usage management, then check Allow background activity. If the option isn't there, search Settings for app battery usage management and select v2rayNG. |
- Run a comparison on the same network: use the phone with the screen on for 2 minutes, then lock it for 10 minutes. After unlocking, check whether the system VPN is still connected, then make a fresh request. These are test intervals, not fixed time limits for background cleanup.
- If the VPN disconnected, change only v2rayNG's background battery setting and repeat the test. If the VPN is still connected but requests fail, check whether the server is reachable and whether the phone switched networks while locked.
- If the change doesn't help, restore the original battery setting. If disconnections happen only when system-wide battery saver is on, test with that setting off separately. There's no need to relax background restrictions for every app at once.
Per-app proxy: does the selection include or exclude apps?
Open the top-left menu on the v2rayNG home screen, go to Settings, and find Per-app proxy. Enable it, open the app list, and check the Bypass mode toggle before selecting apps. The list determines whether an app's traffic enters the system VPN. Whether that traffic goes through the server or direct depends on Xray routing rules.
Allowlist mode: include only selected apps
RecommendedTurn off Bypass mode. For example, select only your browser to send it through the VPN; an unselected maps app won't use it. When setting this up for the first time, don't assume an empty list excludes everything—select one test app explicitly.
Best for: a few apps that need the VPN, or when you first want to verify how the app list works.
Bypass mode: exclude selected apps
Turn on Bypass mode. For example, select a maps app to keep it out of the VPN; an unselected browser will use it. Apps installed later usually aren't on the exclusion list, so add them if needed.
Best for: most apps using the VPN, with only a few exceptions.
After changing the list, reconnect and test again
Return to the home screen, stop the connection, and start it again so the system creates a VPN with the updated app list. Open the same trusted IP lookup page in two browsers—one selected and one not—and confirm in the core routing rules that the test destination uses the proxy. If the server and direct connections show the same IP, that alone doesn't mean per-app routing failed.
If an app opens a link in a different browser, the system handles the connection as coming from the app that actually made the request, not the app where the link appeared. For testing, open the target app and make a request directly. For duplicate apps or cloned apps, verify the package name and profile before checking the selection.
Common issues: find the setting based on the symptom
Tapping Connect doesn't show a permission prompt. Should I reinstall?
Check the system VPN page first. If permission has already been granted, starting the VPN again usually won't show a prompt. If another VPN is set to Always-on VPN, check whether you can stop an old connection you configured yourself. If the system dialog doesn't respond, temporarily disable overlays or screen filters and try again.
I selected an app in Bypass mode. Why has it lost internet access?
Check the system VPN details for Block connections without VPN. When enabled, excluded apps may be unable to connect directly. If you enabled this setting yourself, decide based on your privacy needs whether to add the app to the VPN or allow direct access. If it's enforced by an organization, contact your administrator.
The VPN stays connected when locked, but hangs when switching to mobile data. Why?
Keep the screen unlocked and turn off Wi-Fi. Once mobile data is available, make a fresh request. If it fails only on mobile data, check whether the system blocks v2rayNG from using mobile data and whether the server is reachable on that network. There's no need to further relax background battery restrictions.
The test works, so why does one app still show a network error?
On the same network, turn off per-app proxy, reconnect, and repeat the same action in that app. If it works, check the list mode, app identity, and which app actually made the request. If it still fails, compare the result with the VPN disconnected, then use the core logs to decide whether to check routing or the server.