diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-05-11 17:14:19 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-11 17:14:19 +0200 |
commit | 700d8a7b13287cb15f55fae8f5da5f99ca4bff1b (patch) | |
tree | 416c9e29be6f58ab921a76306a69a5be0f6cda48 /src/de/blinkt/openvpn/OpenVpnService.java | |
parent | 82940714ebe944e63ed70c745e1abe950673fe5b (diff) |
Add native dir approach from http://stackoverflow.com/questions/10517016/android-get-jni-library-dir/10536284
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVpnService.java')
-rw-r--r-- | src/de/blinkt/openvpn/OpenVpnService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnService.java b/src/de/blinkt/openvpn/OpenVpnService.java index ad20737..fb60d84 100644 --- a/src/de/blinkt/openvpn/OpenVpnService.java +++ b/src/de/blinkt/openvpn/OpenVpnService.java @@ -148,6 +148,7 @@ public class OpenVpnService extends VpnService implements Handler.Callback { // Extract information from the intent. String prefix = getPackageName(); String[] argv = intent.getStringArrayExtra(prefix + ".ARGV"); + String nativelibdir = intent.getStringExtra(prefix + ".nativelib"); String profileUUID = intent.getStringExtra(prefix + ".profileUUID"); mProfile = ProfileManager.get(profileUUID); @@ -191,7 +192,7 @@ public class OpenVpnService extends VpnService implements Handler.Callback { // Start a new session by creating a new thread. - OpenVPNThread serviceThread = new OpenVPNThread(this, argv); + OpenVPNThread serviceThread = new OpenVPNThread(this, argv,nativelibdir); mServiceThread = new Thread(serviceThread, "OpenVPNServiceThread"); mServiceThread.start(); |