Questions tagged [android-vpn-service]
101 questions
3
votes
1 answer
Programatically setting Always-On VPN, "Admin does not own the profile"
I'm trying to figure out how to configure my VPN application to toggle the Always-On flag from within the application with a toggle.
I'm aware of
DevicePolicyManager#setAlwaysOnVpnPackage
However, it's not very clear how to use this function. I have…

Nathan F.
- 3,250
- 3
- 35
- 69
3
votes
1 answer
How does Android know that it has to direct allowed vpn application to tun0
This is an internal Android question.
I would like to have a clear understanding on what happens when vpn tunnel is established with only specific apps allowed through it using "builder.addallowedapplication() " method.
This is similar to how you…

Mike
- 147
- 2
- 16
3
votes
1 answer
Android VPN (ikEv2) Client
I am trying to create android client for VPN using IKEv2 protocol, but on this topic there is almost no help to get started. Our backend team have provided me remote_server_url, username and password. I was able to create iOS client successfully…

Asad Hayat
- 51
- 1
- 7
3
votes
1 answer
Is there a way to see which app sent data to Android VPN Service
I am currently using Hexene's LocalVPN implementation of Android's VPNService to monitor network traffic from my Android device. However, I was wondering if it was possible to see which app sent a particular packet.
I have tried searching online,…

user3307598
- 515
- 1
- 5
- 13
3
votes
1 answer
How to block application network request using VPNService?
I hope you all are well.
I have implement VPNService in My application. I have refer https://github.com/hexene/LocalVPN github code to create the VPN.
I want to know about the request/response,
How to know Which application send the request or…

Chirag Parmar
- 1,064
- 2
- 13
- 29
2
votes
1 answer
Can not browse anything after connecting to a tunnel
So, I was going through the guide of connecting to a VPN using an applicaton from here guide
. What I really want is to make my own VPN app by using free DNS available on the internet. Because I want to have DoH (DNS over Https)and full security.…

Ashutosh Soni
- 855
- 3
- 9
- 22
2
votes
0 answers
Connecting to a VPN in MainActivity.kt (Kotlin)
Is there a simple way to connect to a VPN using VpnService from Android Studio (Kotlin)? I have read the developer.android.com documentation, but as a new Kotlin developer, I am very confused. I know that there is a Sample VPN app (ToyVPN), but the…
user11709129
2
votes
0 answers
How do you determine the multicast groups an Android 10 device has joined?
In Android 9 and below we read /proc/net/igmp to determine this in our VPN app. Android 10, however, has understandably locked down the data in /proc/net. (see here)
Is there an "official" way to get the multicast groups a device has joined? Or…

Grant Limberg
- 20,913
- 11
- 63
- 84
2
votes
1 answer
VpnService always-on "not supported by this app"
I'm trying to write a VPN application for android, and no matter what I do it seems that the "Always On" setting for my application is grayed out.
I cannot find any documentation anywhere in the android docs that states WHY a VpnService might not be…

Nathan F.
- 3,250
- 3
- 35
- 69
2
votes
2 answers
VpnService - update network parameters
I have a VPN service, using ParcelFileDescriptor, and a builder to set the network parameters.
Something like this code:
private Builder builder = new Builder().setSession("myService")
.addAddress(...)
…

Witterquick
- 6,048
- 3
- 26
- 50
2
votes
0 answers
What kind of protocol is used in android ToyVPN?
In respect of ToyVPN (a sample client/server VPN for android), as far as i know it has no strong authentication and encryption like L2TP,PPTP, ... So,
1- What kind of protocol is used in ToyVPN?
2- Is it safe? I mean can somebody hack into the VPN…

AMIR
- 99
- 6
2
votes
0 answers
Android How VPNService commuicates with Internet
I am trying to create Android sample vpn app.
I am created VpnService by referring to https://developer.android.com/guide/topics/connectivity/vpn#java
VpnService.Builder builder = new VpnService.Builder();
// Create a local TUN interface using…

Aada
- 1,591
- 7
- 30
- 57
2
votes
0 answers
Android Close VPN Connection
I am developing an android application that has to be connected to a VPN through an external application.
I am currently using the following code to check the open connections, and in case you do not have a VPN enabled, create an intent to the…

Fernando
- 349
- 2
- 6
- 21
2
votes
1 answer
Create a VPN profile programatically Android
I've been parsing the web for a way to create a VPN client on Android. I can't seem to find any good resources on how to do this.
The goal is , I would like to be able to setup a VPN using either the built in VPN feature in Android (perhaps…

fitzmode
- 1,007
- 1
- 18
- 29
2
votes
1 answer
what is Android VpnService.Builder setBlocking
My question is: what does it really do? For instance, if I set it to true, what does it do to packages (datagrams?) that I want to write to the TUN device? As far as I noticed it does not mean that all packets to be written to the TUN device will be…

itarill
- 323
- 1
- 14