How to set up a VPN on Android and enable an always-on connection

OpenVPN on Android: how to import a profile and choose an app

For a .ovpn file, install OpenVPN Connect or OpenVPN for Android from Google Play: the built-in virtual private network (VPN) client in Android does not open such profiles. For a standard connection, start with Connect. If you need to edit profile parameters within the app, choose OpenVPN for Android. First check the format your provider issued: a VLESS subscription requires a different client.

Start with the file or link from your provider

The client establishes a connection using the settings it is given. It does not itself provide a server or access to one. Choose the app after receiving your profile.

Check which of the following you have:

For example, at CitadelVPN, OpenVPN and WireGuard configurations are available only with the MAX plan, while other plans use a VLESS subscription in a compatible client.

The difference between an app and a system profile is explained in the overview of ways to connect a VPN on Android.

Choose between OpenVPN Connect and OpenVPN for Android

The differences are described in the OpenVPN for Android documentation and the Connect guide.

What to compareOpenVPN ConnectOpenVPN for Android
Developer and source codeOpenVPN Inc.; closed-source clientArne Schwabe; open source
BasisOpenVPN 3OpenVPN 2.x
Import.ovpn file, import address, connection via provider.ovpn file, including from an email attachment
Working with parametersSuitable for connecting with a ready-made profileAllows editing the profile in the app
Installation sourceGoogle PlayGoogle Play, F-Droid, the author's page
Always-on connectionVia system settings, per the Android 10+ guideVia Android system features, if available

The difference in code base does not, in itself, prove a speed advantage.

Bear in mind that compatibility of individual parameters depends on the configuration. If import fails, ask the provider for a profile for the chosen client.

Connect a profile in OpenVPN Connect

Prepare the file or import address from your provider, then complete the setup:

  1. Install OpenVPN Connect from Google Play, checking that the developer is OpenVPN Inc.
  2. Open the app, read and accept the data usage policy.
  3. Go to the import profile screen (labelled "Import Profile" in the English interface).
  4. Choose the appropriate method: a .ovpn file from storage or the cloud, an import address, or the connection option via your provider.
  5. Import the profile and enter credentials if the app asks for them.
  6. Select the added profile and enable the connection.
  7. Approve the connection in the Android system dialogue if it appears.

Everything worked if Connect shows an active connection and Android displays a VPN icon in the status bar.

The system prompt grants the app the right to create a VPN connection.

Import a .ovpn file into OpenVPN for Android

A profile with inline certificates is more convenient: everything imports in a single file. If the .ovpn references separate certificates, you will need those too.

To connect, follow these steps:

  1. Install OpenVPN for Android from an official channel and check the developer's name — Arne Schwabe.
  2. Save the profile you received and its related files to a folder accessible for import.
  3. Open the app and tap the folder icon in the VPN list. A single profile with inline certificates can also be opened from an email attachment.
  4. Select the .ovpn file and check the import result. If a certificate or key is missing, request the full set from the provider.
  5. Save the profile and tap its name to connect.
  6. Confirm the Android system prompt and enter access credentials if required.

A sign of success is an established connection in the app and a VPN icon in the system.

Example scenario: you downloaded a .ovpn without an attached certificate, and the import failed. After receiving the complete profile, the import succeeds. There is no need to change clients over a missing file.

Delete unnecessary copies after import

After checking the connection, delete copies of keys and certificates from shared storage, including "Downloads". The .ovpn file itself may also contain a private key. The working profile remains within the app's data.

The developer warns that files on shared SD storage are accessible to other apps. On modern versions of Android, access depends on the version and permissions; keep keys outside shared folders. A PKCS #12 certificate and key container should be imported into the Android system keystore.

Check the always-on connection in Android settings

Always-on VPN is a system feature. The Connect guide requires an up-to-date client, an imported profile and Android 10+ (for some system settings).

On standard Android 14+, the path is usually: Settings → Network & internet → VPN → the gear next to OpenVPN Connect. The availability of toggles depends on the system and the app. The setting is described in the guide on always-on and automatic VPN. For Galaxy devices, there are separate Samsung instructions.

To block network access when the VPN drops, you need the system setting "Block connections without VPN". According to the OpenVPN for Android developer's explanation, mechanisms inside the client may not work when the phone boots or the app crashes.

Bear in mind that blocking disables internet access until the VPN is restored. Test a new profile before turning blocking on.

Check the app before installing

The author of OpenVPN for Android warns about third-party apps built on his code. Check the client's origin:

CriterionHow to checkLimitation
CompatibilityCompare the profile format with the provider's recommendationsThe presence of link import does not mean every subscription type is supported
SourceGo to the store or repository from the developer's pageA random mirror of an Android installation package (APK) may distribute a different build
PublisherVerify the author and the project linkA similar name and icon are easy to copy
Data safetyRead the "Data safety" section and details in Google PlayThe information is filled in by the developer themselves
System blockingAfter installation, check the settings next to VPNA built-in auto-connect toggle does not confirm support for system features
SupportCheck release dates, changelogs and compatibility noticesA high store rating is no substitute for updates

What else should you check before connecting?

The provider sent a plain link. How do I know if it works with Connect?

Ask the provider what the address is for. For a corporate OpenVPN Access Server, Connect accepts the address of the user web interface. An ordinary service page is not a substitute for it.

Does independent verification confirm the accuracy of the information in Google Play?

No. According to Google's clarification, the Mobile App Security Assessment (MASA) does not confirm the accuracy and completeness of the "Data safety" section. Some types of processing and transfer also fall under exemptions from the disclosure rules.

How do I check that a downloaded file hasn't been tampered with?

Releases of v2rayNG are signed with GNU Privacy Guard (GPG), and the key fingerprint is published in the project description. OpenVPN for Android publishes a code transparency key for verifying builds from Google Play. Verify the signature against a trusted key: the file name alone is not enough.

Which client should you install in your case?

For a ready-made .ovpn, start with OpenVPN Connect; for editing a profile, choose OpenVPN for Android. WireGuard and VLESS require compatible clients. Check the publisher, import the complete profile and delete unnecessary copies of keys after connecting. Enable network blocking on connection loss in the Android system settings.