All systems operational
Blog
Android guideFor HyperOSNovember 12, 20267 min read

How to Use a VPN on Xiaomi Phones

To use a VPN on a Xiaomi, Redmi or POCO phone, install a VPN app, then turn on Background autostart, set its battery use to No restrictions and lock it in Recents, so HyperOS keeps it running. These are the background settings Xiaomi itself recommends for apps that need to stay connected. This guide shows where the VPN settings are and how to set each one up. Redmi and POCO phones run the same software, so the steps apply to them too.

UR

Co-Founder & CTO, SafePassVPN

Quick Summary

  • 1.VPN settings: Settings → More connectivity options → VPN
  • 2.Turn on Background autostart and set battery use to No restrictions
  • 3.Lock SafePassVPN in Recents so cleanups don't close it
  • 4.Turn off Battery saver while you need the VPN connected

VPN on Android › Xiaomi

Set Up SafePassVPN

Getting connected takes about a minute, and the free plan doesn't need an account:

  • Install SafePassVPN from the Google Play Store
  • Open the app and tap the large power button
  • Android asks for permission to set up a VPN connection the first time. Tap OK
  • The app shows Protected, and a key icon appears in the status bar while the VPN is on

To confirm it's working, compare your address on our IP checker with the VPN off and on. It should change to the VPN server's IP.

Find the VPN Settings on Xiaomi

On Xiaomi phones, the VPN settings are under Settings → More connectivity options → VPN. That's where VPN apps you've installed appear, along with Android's own VPN options.

SettingsMore connectivity optionsVPN

HyperOS keeps VPN under More connectivity options rather than under Wi-Fi or Mobile networks. VPN apps you've connected are listed there, and a VPN icon shows in the status bar while one is connected. You don't need to add anything on this screen to use SafePassVPN: the app sets up its own connection the first time you tap Connect. Only VPN profiles you add by hand on this screen ask you to set a screen lock first.

Stop the VPN Being Closed in the Background

Most "my VPN keeps disconnecting" problems on Xiaomi phones come from battery saving, not from the VPN. HyperOS pauses background apps to save power, and a VPN is a background app. These settings tell the phone to leave it running:

1. Turn on Background autostart

SettingsAppsPermissionsBackground autostartSafePassVPN

Background autostart lets an app start after the phone restarts and wake up in the background. Turn the switch on for SafePassVPN. On some models the list is one level up, under Settings → Apps → Background autostart.

2. Set battery use to No restrictions

SettingsAppsSafePassVPNPowerNo restrictions

This is the setting that keeps the VPN connected while the screen is locked: Xiaomi says No restrictions lets an app keep running in the background without network limits when the phone is locked. You can also reach it from Settings → Battery by selecting the app. A VPN uses very little power while idle, so this won't noticeably affect your battery.

3. Lock SafePassVPN in Recents

RecentsPress and hold SafePassVPNLock

Open Recents, then press and hold the SafePassVPN card until the lock icon appears, and tap it. A locked app isn't closed when you clear Recents. You can also lock it from the Security app under Settings → Boost speed → Lock apps.

4. Turn off Battery saver when you need the VPN

SettingsBatteryCurrent mode

Battery saver and Ultra battery saver limit what apps can do in the background. Turn them off under Settings → Battery while you need the VPN to stay connected.

Turn On Always-on VPN

Always-on VPN is built into Android. It starts the VPN as soon as the phone boots and reconnects it when you switch between Wi-Fi and mobile data.

Connect SafePassVPN once, then open Settings → More connectivity options → VPN. If there's a settings icon next to SafePassVPN, tap it and turn on Always-on VPN, and optionally Block connections without VPN, which works like a system-wide kill switch. Google's guide to staying connected all the time is linked in the sources below. Together with Background autostart, No restrictions and a locked app, this keeps SafePassVPN running through restarts, network changes and a locked screen.

Common Xiaomi VPN Problems

The VPN disconnects when the screen is locked

Set SafePassVPN's battery use to No restrictions under Settings → Apps → SafePassVPN. That's the setting Xiaomi uses to let apps keep their network connection while the phone is locked.

Clearing Recents closes the VPN

Lock SafePassVPN in Recents: press and hold its card until the lock icon appears, then tap it. Locked apps stay open when you clear Recents.

The VPN stops in Battery saver or Ultra battery saver

Both modes limit background apps to save power. Switch them off under Settings → Battery when you need the VPN, then reconnect.

Another VPN app takes over

Android only allows one VPN at a time. If you have more than one VPN app installed, connecting one disconnects the other. The VPN screen under More connectivity options shows which one is connected.

More causes and fixes: VPN keeps disconnecting on Android. Still having trouble? Run our WebRTC leak test to check your browser isn't exposing your real IP, or contact us from the help center.

Choose Which Apps Use the VPN

Some apps, like banking apps or games, can work better on your normal connection. With Premium, SafePassVPN's Split tunnel setting lets you pick which apps go through the VPN and which connect directly, so you can leave the VPN on all day. Read more in our split tunneling guide, or compare plans.

Sources

Need Help?✨

VPN on Xiaomi: FAQs

Short answers for Xiaomi owners.

Open Settings, tap More connectivity options, then VPN. The same path works on Redmi and POCO phones. If your version is laid out differently, search for VPN in the Settings search box.
HyperOS limits apps in the background to save battery. Turn on Background autostart for SafePassVPN, set its battery use to No restrictions, and lock it in Recents. Those three settings keep it connected.
Yes. Redmi and POCO phones run Xiaomi's HyperOS, so the VPN and background settings are in the same places.
MIUI, the software before HyperOS, has the same kinds of settings: Autostart, battery saver per app and app locking in Recents. A few menu names differ, so if a setting isn't where we say, search for it in Settings.
Yes. The free plan works on any Android phone, with no account needed. Premium adds unlimited data, 9+ locations and split tunneling.
Free plan · No account needed

Get SafePassVPN on your Xiaomi

Free plan with daily data and 3 locations, no sign-up. Premium adds 9+ locations, unlimited data and split tunneling.