Closed tonhathuy closed 1 year ago
I am closing this since I don't think this is something that I am interested in working on or see any real benefit. Maybe just keep openvpn for android as separate app and just control/start the the VPN with AIDL interface or intents.
General information
Description of the issue
I'm looking to integrate your library into my app. I tested some functions like
vpnStatus
,OpenVPNService
and found them working properly. But since my app needs to access deep under android so I changed app to System Application. And it seems the vpn is no longer working.Create System Application with add
android:sharedUserId="android.uid.system"
in Manifest.When I checked the log again I found an error that seems to be caused by android, specifically normally this log line: "Switched from " + mPackage + " to " + newPackage (ex: Switched from
[Legacy VPN]] to de.blinkt.openvpn
) ) will show after clicking “OK” in popup request VPN connection (permission to monitor traffic ). But in System app ,Switched from [Legacy VPN] to [Legacy VPN]
. alway show before I click on OK button.But it's weird that the vpn can work when switching from another vpn that is not
Legacy VPN
. Eg:Switched from [Legacy VPN] to de.blinkt.openvpn
Switched from de.blinkt.openvpn to com.myapp
Log (if applicable)