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
The settings paths in this guide come from the official support pages below. Menu names can differ slightly between models, regions and software versions; if a setting isn't where we say, use the search box at the top of Settings.
- Xiaomi: VPN settings on the Xiaomi 14T
- Xiaomi: VPN settings on the REDMI 13C
- Xiaomi: Background autostart on the Xiaomi 14T Pro
- Xiaomi: Keeping an app running in the background
- Xiaomi: No restrictions, so apps keep working while the screen is locked (Xiaomi 15)
- Xiaomi: Lock apps from the Security app (POCO X7)
- Google: Connect to a VPN on Android (Stay connected all the time)
New to VPNs? Start with what a VPN is and how it works.
VPN on Xiaomi: FAQs
Short answers for Xiaomi owners.
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.