Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
2
votes
2
answers
6129
views
Wi-Fi hotspot traffic while connected to PIA VPN
**Background** -------------- Android 7.1.1 Nexus 6P uses VPN app from Private Internet Access. The app has a "Per App Setting" that allows certain apps to bypass the VPN connection (some games like Pokemon Go don't operate if behind a VPN, you get an 'unable to authenticate' error until you disable...
**Background**
--------------
Android 7.1.1 Nexus 6P uses VPN app from Private Internet Access. The app has a "Per App Setting" that allows certain apps to bypass the VPN connection (some games like Pokemon Go don't operate if behind a VPN, you get an 'unable to authenticate' error until you disable VPN or turn off PG in the per app settings).
My son has my old Moto X phone (no SIM card) and needs to be tethered to my phone to have Wi-Fi when we're out and about. He does not have the PIA app installed on his phone.
**PROBLEM**
-----------
When he plays his Pokemon Go game, and we are tethered while my VPN app is operating, he cannot log in or authenticate with his game on his phone. I'll need to turn off my VPN completely before his app will allow him to log and play.
**QUESTION**
-----------
Is there an Android System Process that I can allow to bypass the VPN so that his tethered Wi-Fi connection isn't blocked?
dasMetzger
(213 rep)
Feb 17, 2017, 09:28 PM
• Last activity: Jul 4, 2025, 03:07 AM
13
votes
2
answers
28328
views
How can I have Android automatically connect to a VPN only when on an unsecured WiFi Network?
Let's say I want to connect to a WiFi hotspot, but it is unsecured. I'd like to connect to a VPN server, but only if I'm on an unsecured WiFi network. If I'm on a secured network or data, I'd like it to stay in VPN off mode.
Let's say I want to connect to a WiFi hotspot, but it is unsecured. I'd like to connect to a VPN server, but only if I'm on an unsecured WiFi network. If I'm on a secured network or data, I'd like it to stay in VPN off mode.
Pichu0102
(131 rep)
Sep 6, 2013, 01:11 PM
• Last activity: Jun 1, 2025, 11:52 AM
3
votes
2
answers
1062
views
Are there technical limitation to multiple "VPN"s?
On my PC (Windows 11) I can simultaneously use zScaler and Tailscale. They work in different ways but ultimately they build micro-tunnels for specific destination IPs (using the IPv4 CGNAT or IPv6). I noticed that my phone (Samsung Galaxy 25+, Android 13) refuses to have both living together (it bec...
On my PC (Windows 11) I can simultaneously use zScaler and Tailscale. They work in different ways but ultimately they build micro-tunnels for specific destination IPs (using the IPv4 CGNAT or IPv6).
I noticed that my phone (Samsung Galaxy 25+, Android 13) refuses to have both living together (it becomes a network mess).
My question: Does Android support two or more simultaneous "VPN"s (the naming is not clear). Or in other words: can I have two small keys at the same time in the top bar (which would indicate two VPNs working simultaneously)?
I am especially interested in the core availability ("are two possible at all") more than possible conflicts (which are a problem but may be fixable through configuration like in the case of default zScaler and Tailscale configurations)
WoJ
(633 rep)
May 27, 2025, 12:54 PM
• Last activity: May 28, 2025, 11:41 PM
1
votes
1
answers
146
views
Use SSH tunnel along with a proxy
I have installed "Termux" app on my Android device. I can this use this command on Termux app to create a Socks 5 tunnel to my remote VPS on port `1080`: ``` ssh -D 1080 user@22.15x.20y.150 ``` Then I use "Exclave" app to proxy my Android device through that port. But as soon as I activate the conne...
I have installed "Termux" app on my Android device. I can this use this command on Termux app to create a Socks 5 tunnel to my remote VPS on port
1080
:
ssh -D 1080 user@22.15x.20y.150
Then I use "Exclave" app to proxy my Android device through that port.
But as soon as I activate the connection on Exclave app, the ssh
connection on Termux app is terminated. Consequently the Exclave app cannot connect the Android device through the ssh
tunnel to the Internet.
I'm not sure, but it looks like a cycle problem or loop problem to me.
So far, I couldn't find a way to modify Exclave app to exclude the ssh
Socks 5 connection from the proxy.
What are the solutions to this problem?
I'm open to any solution that might possibly solve my original problem. Thanks.
Megidd
(242 rep)
May 18, 2025, 07:01 AM
• Last activity: May 18, 2025, 07:26 AM
4
votes
2
answers
10235
views
unsuccessful VPN connection
I'm unable to connect my phone to VPN, it always say "unsuccessful". I deleted the profile and created it again but it didn't help. What is wrong with it?
I'm unable to connect my phone to VPN, it always say "unsuccessful". I deleted the profile and created it again but it didn't help. What is wrong with it?
Gigili
(331 rep)
Feb 22, 2013, 03:13 AM
• Last activity: Apr 28, 2025, 11:06 PM
1
votes
3
answers
6626
views
Always On VPN on Android does not reconnect
I live in the UK and recently I felt the need of getting a VPN. Everywhere. There is an option in Android 6.x: Always-on VPN, but there are two issues with it: - It does not reconnect after a lost connection. That usually means that whenever connection drops for some reason, you have to unlock the p...
I live in the UK and recently I felt the need of getting a VPN. Everywhere.
There is an option in Android 6.x: Always-on VPN, but there are two issues with it:
- It does not reconnect after a lost connection. That usually means that whenever connection drops for some reason, you have to unlock the phone -> Go to Settings -> More connection settings -> VPN -> More -> Always-on VPN, change the server you like to connect to, click OK and wait ~5s for it to recconect.
Why wouldn't it reconnect automatically (or maybe it doesn't do that only in certain situations)?
- In case the server is not available, I would like to be able to establish more than one VPN service, so the phone tries the first one, if it can't connect, then go to the second one, then the third, etc.
Is it possible?
Marcin Konrad Ceglarek
(111 rep)
Jan 11, 2017, 02:13 PM
• Last activity: Mar 10, 2025, 01:53 PM
1
votes
1
answers
246
views
Android Keystore error from GMS and NordVPN
I am having a problem on my Android TV Box X96 Max Plus Ultra (s905x4 4/64) Android 11. Tested on stock and on Slimbox ATV / AOSP with root and Magisk. When I want to log in and connect to VPN in the NordVPN app, I get the error: > Exception during generating key keystore operation failed / exceptio...
I am having a problem on my Android TV Box X96 Max Plus Ultra (s905x4 4/64) Android 11. Tested on stock and on Slimbox ATV / AOSP with root and Magisk.
When I want to log in and connect to VPN in the NordVPN app, I get the error:
> Exception during generating key keystore operation failed / exception during encryption keystore operation failed
Which would cause the login is not possible.
I did try several versions of the app. I can see the errors in the log of the app; the login procedure is:
1. Press Login in NordVPN
2. A Chrome window opens to enter the e-mail and password
3. After that, it returns to the app and login should be confirmed
SELinux = permissive.
I have tried around and could bypass these errors with:
Magiskpolicy deny gmscore_app keystore keystore_key gen_unique_id
chmod 660 /sys/fs/selinux/enforce
chmod 440 /sys/fs/selinux/policy #policy change not needed, just to make sure
Other things I did try: disable Google Play services (GMS) and the login and connection in NordVPN worked too (but the Google apps obviously could not work, and disabling the app is kind of equal result to denying the rule)
Only these changes would let me log in and connect without error.
Could anyone think of why this problem could exist and maybe how to fix it? And what impact (negative) on the system could these changes have?
I have uploaded logs to Pastebin.
In seconds on the timeline i did press login on .30/00 and connect on .20/50.
Logcat: https://pastebin.com/GuNcqzir
Log from Nordvpn: https://pastebin.com/t2r8jJH8
Log from begin of boot (1+2): https://pastebin.com/YVyF2k5a
https://pastebin.com/TrtKLuwE
I did find some errors in the log from boot 1 which i think could be related:
11-28 17:37:23.097 0 0 I : [ 7.136058@3] [TEE] E/TC:? 00 tee_rpmb_verify_key_sync_counter:967 Verify key returning 0xffff000f
11-28 17:37:23.097 0 0 I : [ 7.136083@3] [TEE] E/TC:? 00 tee_rpmb_verify_key_sync_counter:967 Verify key returning 0xffff000f
11-28 17:37:23.097 0 0 I : [ 7.136087@3] [TEE] E/TC:? 00 tee_rpmb_init:1140 Verify key failed!
11-28 17:37:23.097 0 0 I : [ 7.136092@3] [TEE] E/TC:? 00 tee_rpmb_init:1141 Make sure key here matches device key
[TEE] E/TC:? 00 TA panicked with code 0xffff000f
I am not sure if following errors are related to the problem:
11-28 17:37:22.473 0 0 E [ 6.511682@3] init: Unable to set property 'ro.crypto.state' from uid:0 gid:0 pid:1: Read-only property was already set
11-28 17:37:21.766 0 0 E [ 5.625557@3] selinux: SELinux: Could not set context for /mnt/vendor/odm_ext: Read-only file system
cgroup1: unknown subsys name 'schedtune' and 'blkio
11-28 17:37:21.760 0 0 E [ 2.474013@3] init: Could not set 'ro.boot.dynamic_partitions' to 'true' while loading .prop filesRead-only property was already set
11-28 17:37:21.758 0 0 E [ 1.650913@1] init: Failed to copy /avb into /metadata/gsi/dsu/avb/: No such file or directory
11-28 17:37:21.757 0 0 I [ 1.609913@1] init: [libfs_mgr]check_fs(): mount(/dev/block/by-name/metadata,/metadata,ext4)=-1: No such file or directory
11-28 17:37:25.149 0 0 I : [ 9.184167@3] [TEE] E/TA: fw_check_pack_version:282 The TA version (v0.2) is lower than the pkg version (v0.3).
11-28 17:37:25.149 0 0 I : [ 9.184170@3] [TEE] E/TA: fw_check_pack_version:283 The TA version is too low that may affect the work please update asap.
11-28 17:37:25.149 0 0 I : [ 9.184173@3] [TEE] E/TA: fw_check_pack_version:286 The TA ver is v0.2
11-28 17:37:25.149 0 0 I : [ 9.184176@3] [TEE] E/TA: fw_check_pack_version:287 The fw ver is v0.3
Amalia
(31 rep)
Nov 26, 2024, 03:09 PM
• Last activity: Feb 15, 2025, 03:07 PM
0
votes
0
answers
350
views
Working vpn server on termux native with root?
Does anyone has a working way or a step by step guide to set-up a vpn server on termux with root? Like someone who actually tried and succeed or already has one running to give me tips and point me in the right direction. This seems impossible and every single tutorial i found online is either outda...
Does anyone has a working way or a step by step guide to set-up a vpn server on termux with root? Like someone who actually tried and succeed or already has one running to give me tips and point me in the right direction.
This seems impossible and every single tutorial i found online is either outdated or missing things
Even this is a bit outdated, I tried the application he mentioned "servers ultimate" and it has never been updated since 4 years ago, It does work but you will never be able to connect to the server due to the "TLS HANDSHAKE ERRORS" I think this is because the application is using deprecated ways to generate the certificates or the 'SSL/TLS' Keys
is this impossible or just not worth it?
xMidNight-.
(21 rep)
Oct 16, 2024, 09:56 AM
• Last activity: Oct 16, 2024, 10:13 AM
1
votes
0
answers
129
views
How Can I Tunnel WireGuard on Rooted Android 14 Through v2rayNG?
I’m trying to tunnel WireGuard on my rooted Android 14 device through v2rayNG. Since the WireGuard client doesn’t support this by default, is there any way to achieve this, perhaps by using iptables or another method? Any advice or guidance would be greatly appreciated!
I’m trying to tunnel WireGuard on my rooted Android 14 device through v2rayNG. Since the WireGuard client doesn’t support this by default, is there any way to achieve this, perhaps by using iptables or another method?
Any advice or guidance would be greatly appreciated!
poqdavid
(1433 rep)
Sep 30, 2024, 01:35 PM
• Last activity: Oct 1, 2024, 09:33 AM
6
votes
0
answers
2799
views
Is it possible to use the built-in VPN client in the work profile?
As the title says, I'm looking for a way to set up the built-in VPN client to work with the work profile (under Shelter/Island). There's no separate Settings app in the work profile to allow that, or an option to specify the profile when adding a VPN configuration in the main settings app. Most onli...
As the title says, I'm looking for a way to set up the built-in VPN client to work with the work profile (under Shelter/Island). There's no separate Settings app in the work profile to allow that, or an option to specify the profile when adding a VPN configuration in the main settings app. Most online references to VPNs in the work profile mention third-party clients; however I need to connect to an L2TP/IPsec VPN, and AFAICT no such client exists.
Google's VPN documentation says you may need a separate VPN app "to run a separate VPN for the personal profile or work profile" - but I don't want that, I just want to run the one VPN, under the work profile. On a separate page describing the built-in client it says "you can make a VPN work only for apps associated with your work profile", but does not explain how, and I'm not finding such an option. Any help appreciated!
argymeg
(61 rep)
Apr 14, 2022, 03:49 PM
• Last activity: Aug 26, 2024, 03:28 AM
0
votes
1
answers
3087
views
VPN disconnects immediately
My android phone connect to VPN then immediately disconnects, I tried most of VPNs on Google Play Store but it's not working. OpenVPN connects barely and disconnects in less than 1 minute, my network is good and I can connect VPN on my laptop with my network. 01:06:43.695 -- EVENT: CONNECTED info='i...
My android phone connect to VPN then immediately disconnects, I tried most of VPNs on Google Play Store but it's not working.
OpenVPN connects barely and disconnects in less than 1 minute, my network is good and I can connect VPN on my laptop with my network.
01:06:43.695 -- EVENT: CONNECTED info='ir443391@nl.ovadd.com:800 (134.19.177.20) via /UDPv4 on tun/10.11.3.202/ gw=[10.11.3.201/]' trans=TO_CONNECTED
01:08:09.304 -- EVENT: DISCONNECTED trans=TO_DISCONNECTED 01:08:09.321 -- EVENT: CORE_THREAD_INACTIVE
01:08:09.322 -- Tunnel bytes per CPU second: 0
01:08:09.323 -- ----- OpenVPN Stop ----- –
Mohamadreza Abasian
(1 rep)
Mar 23, 2019, 01:00 AM
• Last activity: Aug 24, 2024, 06:06 PM
1
votes
1
answers
52
views
I can't connect my Android to any VPN except Kaspersky - How to fix?
I previously used 1.1.1.1 Warp VPN and it always used to work but it made my internet speed slow and so I'd keep it off. Later on, I tried Kaspersky VPN and it worked. I've tried many VPNs in the past too , they never showed any problems, but recently I can only connect to the VPN provided by Kasper...
I previously used 1.1.1.1 Warp VPN and it always used to work but it made my internet speed slow and so I'd keep it off. Later on, I tried Kaspersky VPN and it worked. I've tried many VPNs in the past too , they never showed any problems, but recently I can only connect to the VPN provided by Kaspersky and when I tried using 1.1.1.1 Warp it doesn't work (because I got premium there and want to use that instead).
And that's the same case for all other VPNs I've ever tried, I had them downloaded again and tried to connect, but they all say connection failed and doesn't work.
Kaspersky, on the other hand, does work even now, so I think that app changed some setting on my phone as it required but it's preventing other VPNs from working.
What should I do? I tried every solution video from YouTube, it still doesn't get fixed.
Syed Md Ibrahim
(13 rep)
Jul 29, 2024, 12:50 AM
• Last activity: Jul 30, 2024, 11:55 AM
0
votes
0
answers
183
views
Company Samsung Galaxy - how to check if I have proxy or VPN enabled?
I have the company owned Samsung Galaxy. I probably have MDM software on my phone - I see I have Knox 3.3 version, TIMA 3.3.0 and there apps: "Knox Analytics Uploader, "Knox Enrollment Service", "KnoxVpnPacProcessor", "Enterprise Sim Pin Service", WlanTest, "MDMapp". It is likely that administrators...
I have the company owned Samsung Galaxy. I probably have MDM software on my phone - I see I have Knox 3.3 version, TIMA 3.3.0 and there apps: "Knox Analytics Uploader, "Knox Enrollment Service", "KnoxVpnPacProcessor", "Enterprise Sim Pin Service", WlanTest, "MDMapp". It is likely that administrators also use the Intune environment.
From what I've read, MDMs don't have the access to things like downloaded files or internet history unless they connect the user through a VPN or proxy, is this true?
In my case in the phone's settings under connections there's stance "No VPNs". Also there's "none" in proxy connection settings.
**My question is**, can I be signed up to a corporate proxy or VPN without knowing it (not having the infomation about it in the phone settings I mentioned)?
I would be very grateful for information from people who know about this. Thanks!
Witty-Resolve5797
(1 rep)
Jul 24, 2024, 01:28 PM
• Last activity: Jul 24, 2024, 02:03 PM
3
votes
3
answers
1226
views
Mobile internet doesn't work on browsers with VPN turned off, but it works in some apps, and works via Wi-Fi in all apps
I cannot use any browser with a VPN turned off using mobile internet, but I can use other apps, such as BBC or Viber. I also can access the internet via Wi-Fi with a VPN turned off. What I have tried: - I have reset APN settings many times, but it will not work. - I cannot turn off the proxy because...
I cannot use any browser with a VPN turned off using mobile internet, but I can use other apps, such as BBC or Viber. I also can access the internet via Wi-Fi with a VPN turned off.
What I have tried:
- I have reset APN settings many times, but it will not work.
- I cannot turn off the proxy because there is no such option. The proxy section is blank. When I fill in the blank with some random letters, and then blank it again, the internet begins to work, and after a few searches on the browser stops.
- Actually, when I change some other sections of APN the internet starts working, but then stops.
- When I put a SIM card from a different provider into my tablet, it worked. And when I put my SIM card into another device, it also worked on that device.
- I called the company for help. They say that my APN settings were out of order. They sent me new ones. That also didn't solve the problem.
- I have even reset the tablet to factory settings. To my chagrin, it hasn't worked.
I am clueless about whether or not the problem is with the tablet or the mobile data provider. Tell me please what is wrong.
Dmytro O'Hope
(31 rep)
Jun 3, 2019, 05:05 PM
• Last activity: Jun 2, 2024, 06:26 AM
1
votes
1
answers
225
views
VPN over proxy (global)
How to run VPN over (global) proxy on Android (with root and without)? The situation: VPN service app doesn't provide proxy functionality, but proxy is necessary.
How to run VPN over (global) proxy on Android (with root and without)?
The situation: VPN service app doesn't provide proxy functionality, but proxy is necessary.
agiAWjoa0za
(11 rep)
Apr 9, 2023, 10:36 AM
• Last activity: May 3, 2024, 08:37 AM
2
votes
0
answers
1310
views
Genymotion + VPN
I am running Genymotion on a MAC. I tried the changed settings in VirtualBox on Adapter 2 to "Bridged" also trying NAT / NAT Network but it does not work. It runs fine on my physical Android device. I am using WiFi on my Mac to connect to the Internet. Can someone give a hint what I am doing wrong?...
I am running Genymotion on a MAC. I tried the changed settings in VirtualBox on Adapter 2 to "Bridged" also trying NAT / NAT Network but it does not work. It runs fine on my physical Android device.
I am using WiFi on my Mac to connect to the Internet.
Can someone give a hint what I am doing wrong?
[!
]


Sven Hezel
(21 rep)
Sep 5, 2015, 11:18 PM
• Last activity: Apr 24, 2024, 02:09 AM
0
votes
0
answers
594
views
VPN not working on laptop connected through Android phone USB tethering
I used to connect my laptop to the internet via USB tethering from my android phone (running android 6), and then connect to my organization's VPN. I got myself a new phone, and realized that it blocks VPN connections. Apparently this issue has been discussed [before][1] but that was ~7 years ago, a...
I used to connect my laptop to the internet via USB tethering from my android phone (running android 6), and then connect to my organization's VPN.
I got myself a new phone, and realized that it blocks VPN connections. Apparently this issue has been discussed before but that was ~7 years ago, and the solutions offered do not work for me. In particular, the "APN protocol" is already set to IPV4.
What is the most recommendable way of getting VPN to work in a laptop connected to the internet with a modern android (in my case it's android 13) through USB tethering or wifi hotspot?
fbaroni
(1 rep)
Apr 5, 2024, 03:03 PM
0
votes
0
answers
1242
views
How to create a VPN config file for sharing with others?
I've a VPN server and want to let others connect to it. I'm not sure if it's possible, but I'd like to create a VPN config file with all the necessary credentials so that my friends can simply open it and have a VPN profile set up. Is it possible to make a config file?
I've a VPN server and want to let others connect to it.
I'm not sure if it's possible, but I'd like to create a VPN config file with all the necessary credentials so that my friends can simply open it and have a VPN profile set up.
Is it possible to make a config file?
Blendester
(121 rep)
May 24, 2019, 08:43 AM
• Last activity: Mar 31, 2024, 03:18 PM
1
votes
0
answers
122
views
Open listening port while vpn turned on and hotspot tethering turned on
Phone root status: False Here is my `ifconfig` output in termux: ``` ~ $ ifconfig Warning: cannot open /proc/net/dev (Permission denied). Limited output. lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC) rmnet_data...
Phone root status: False
Here is my
ifconfig
output in termux:
~ $ ifconfig
Warning: cannot open /proc/net/dev (Permission denied). Limited output.
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
rmnet_data0: flags=65 mtu 1500
inet 10.239.133.81 netmask 255.255.255.252
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
tun0: flags=81 mtu 1500
inet 26.26.26.1 netmask 255.255.255.252 destination 26.26.26.1
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC)
wlan1: flags=4163 mtu 1500
inet 192.168.43.1 netmask 255.255.255.0 broadcast 192.168.43.255
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 3000 (UNSPEC)
As you see there is interface named tun0
.
I tried open listening port such as web server that binded to tethering interface in my android.
python3 -m http.server --bind 192.168.43.1 --port 8000
In laptop that connected to android which has IP 192.168.43.150
, I tried to access the web through browser http://192.168.43.1:8000
. It didn't successfully returning response.
But if I turned off VPN which remove tun0
. It successfully returning response in my laptop browser. What happened?
Muhammad Ikhwan Perwira
(213 rep)
Feb 25, 2024, 02:21 PM
• Last activity: Feb 25, 2024, 05:41 PM
3
votes
0
answers
4447
views
How to enable/disable VPN via adb/termux/terminal?
I have a VPN configured on my android device running Lineage OS 18.1 (Android 11). I'm not using any third party apps, I'm simply using the standard Android settings to specify my VPN login data etc. Now I'm looking for a simple way to enable7disable the VPN connection form the terminal without disr...
I have a VPN configured on my android device running Lineage OS 18.1 (Android 11). I'm not using any third party apps, I'm simply using the standard Android settings to specify my VPN login data etc.
Now I'm looking for a simple way to enable7disable the VPN connection form the terminal without disruption.
I found a hacky way to do it by launching the VPN settings activity and then sending a bunch of key events to click on the connect/disconnect button.
Connect:
am start -a android.intent.action.MAIN -n com.android.settings/.Settings\$VpnSettingsActivity && input keyevent 20 && input keyevent 23 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 61 && input keyevent 66
Disconnect:
am start -a android.intent.action.MAIN -n com.android.settings/.Settings\$VpnSettingsActivity && input keyevent 20 && input keyevent 23 && input keyevent 61 && input keyevent 66
But first of all, this will open the settings dialog in the foreground, disrupting whatever I have been doing and secondly this whole method relies on the UI to have a specific amount of fields and buttons.
Forivin
(247 rep)
Jul 21, 2022, 12:43 PM
• Last activity: Feb 21, 2024, 09:53 PM
Showing page 1 of 20 total questions