summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-11 17:14:19 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-11 17:14:19 +0200
commit016c2b5baddc374bebb606d3bcbef559c1bc7588 (patch)
tree416c9e29be6f58ab921a76306a69a5be0f6cda48 /src/de/blinkt/openvpn/VpnProfile.java
parent0291c756696f9ef5a8e2a23ed3b4b1ff79e91e08 (diff)
Add native dir approach from http://stackoverflow.com/questions/10517016/android-get-jni-library-dir/10536284
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index b3ce6a47..639619ff 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -19,6 +19,7 @@ import java.util.Vector;
import android.content.Context;
import android.content.Intent;
+import android.content.pm.ApplicationInfo;
import android.security.KeyChain;
import android.security.KeyChainException;
@@ -385,6 +386,9 @@ public class VpnProfile implements Serializable{
intent.putExtra(prefix + ".ARGV" , buildOpenvpnArgv(context.getCacheDir()));
intent.putExtra(prefix + ".profileUUID", mUuid.toString());
+
+ ApplicationInfo info = context.getApplicationInfo();
+ intent.putExtra(prefix +".nativelib",info.nativeLibraryDir);
try {
FileWriter cfg = new FileWriter(context.getCacheDir().getAbsolutePath() + "/" + OVPNCONFIGFILE);