Questions tagged [android-vpn-service]

101 questions
1
vote
0 answers

Android VPN: hexene LocalVPN service not working after a while

I'm pretty new to Android programming and I had a little project for an Android VPN firewall-sortofthing in mind, based on this GitHub repo: https://github.com/hexene/LocalVPN (so on top of VpnService) The problem is that, no edits done to the code…
DmitryB
  • 119
  • 1
  • 2
  • 13
0
votes
0 answers

cant use VpnService protect method for socket.io package

I have a VPN service inside my application and I have also created a connection socket through the socket.io-client library, which I want to connect directly and not go through the vpn tunnel. I know that for this I have to use protect() method of…
Fardin
  • 21
  • 1
  • 3
0
votes
0 answers

Disable/enable my vpn service in android while connecting to captive portal

I have a VPN service in android where if a user clicks on the SSID of captive portal from his/her WiFi settings and asked to sign in to access internet, I should identify if the user is trying to connect to captive portal, once identification is…
0
votes
1 answer

Android Kotlin SSH VPN

Hey Guys I tried to make simple android ssh vpn i'm new to android programming and made simple logic to just work and everything in that code seems ok but somehow when i run the code i have Invalid Argument Error and idk what's the problem heres's…
rynsm4rt
  • 13
  • 2
0
votes
0 answers

Android VpnService route exclusion on API prior to 33

I have an android app which uses VpnService API to establish a connection to a proxy. My intention is to let DNS queries bypass the proxy and route the rest of the device traffic through it. On SDK 33+ I can do it like this: Builder builder = new…
Anton2319
  • 83
  • 1
  • 5
0
votes
0 answers

Android VpnService input data not readable

I'm going to create an Android vpn application. I have extended a VpnService class. Below is my class: public class MyVpnService extends VpnService { private String TAG = "mjh"; private Thread thread; private ServerConnection…
0
votes
0 answers

how i can integrate vpn into my app in android studio?

I possess an application and I am in pursuit of integrating a vpn into it. May I inquire about the steps necessary to accomplish this task? learn how to add vpn into app in android studio
0
votes
0 answers

Android get network data usage between two time stamps

I need to get the approximately precise data count for Rx and Tx between two timestamps. The granularity should be here minutes, e.g daily summaries are not sufficient. Is this information logged in Android? I first thought about implementing a…
k_o_
  • 5,143
  • 1
  • 34
  • 43
0
votes
0 answers

How do I know if user checked 'Don't ask again' checkbox in VPN dialog while connecting to a VPN

Some phones like "OnePlus" are providing customised VPN dialog which has 'Don't ask again' checkbox even for the VPN dialog. Generally I would have followed the process of, if it's a run-time permission, with shouldShowRequestPermissionRationale().…
Sai Gopal
  • 11
  • 2
0
votes
0 answers

On Chromebook getConnectionOwnerUid() return -1 (Process.INVALID_UID) on chrome app

I have a VPN service that uses the [getConnectionOwnerUid()]1 function to get the user ID (UID) of the owner of a network connection. On Android, this function works well for all apps. However, when I try to use it on a Chromebook with the Chrome…
zvi
  • 3,677
  • 2
  • 30
  • 48
0
votes
0 answers

Android VPNService: "Cannot set address" error

I have a VPNService in Android which calls: mInterface = builder.setSession("VPNtoSocket") .setMtu(20000) .addAddress("10.8.0.2", 32) .addDnsServer("8.8.8.8") .addRoute("0.0.0.0", 0) .establish(); everything works well the first time. Then, I stop…
gregoiregentil
  • 1,793
  • 1
  • 26
  • 56
0
votes
0 answers

Disable private DNS programmatically Android

We're developing a VPN app. By default private DNS is set to automatic what makes problem with routing by our application. We can ask user disable private DNS manually, but this's not the best UX Question: How disable private DNS…
0
votes
3 answers

App is not function correctly after uploaded to Play Console

I created a VPN App and it is working correctly in Release and Debug APK files but when I upload it to Play Store, and then downloaded from Play Store it does not connect to the server and say "no process running" and give me the below error: CANNOT…
0
votes
0 answers

Protocols Needed for Hosting VPN in Windows?

I found an esoteric VPN-hosting feature of Windows but I am having trouble configuring it. (I am following this tutorial.) I am confident in my ability to forward the right port, so I am beginning my troubleshooting by looking at possible protocol…
0
votes
0 answers

How to control simultaneous stable traffic (for any consumers: Maps, Auth, ffmpeg) to Cellular & to WiFi device (known port) for Android App?

Problem: By default, Android has only one active Network, so when you have your other device connected to your phone over Wi-Fi (IoT, Dashcam, whatever, obviously with no internet), your Android Cellular got unavailable for the App. If you switch to…