summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2016-01-02 11:18:08 +0100
committerArne Schwabe <arne@rfc2549.org>2016-01-02 11:18:08 +0100
commit73c31638211240d2e75b810a24330e954907093f (patch)
treee892b6d3f753e2da66e9c92a9a3dc6c01e53f8ab
parentd51431a8871fc06796af0440463cfacc95110ec0 (diff)
Fine tune UI ver
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java4
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/NativeUtils.java2
2 files changed, 4 insertions, 2 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
index 63a8ca9c..316acefb 100644
--- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
+++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
@@ -266,7 +266,9 @@ public class VpnProfile implements Serializable, Cloneable {
if (!configForOvpn3) {
cfg += String.format("setenv IV_GUI_VER %s \n", openVpnEscape(getVersionEnvString(context)));
- cfg += String.format("setenv IV_PLAT_VER %d \n", Build.VERSION.SDK_INT);
+ String versionString = String.format("%d %s %s %s %s %s", Build.VERSION.SDK_INT, Build.VERSION.RELEASE,
+ NativeUtils.getNativeAPI(), Build.BRAND, Build.BOARD, Build.MODEL);
+ cfg += String.format("setenv IV_PLAT_VER %s\n", openVpnEscape(versionString)) ;
}
cfg += "machine-readable-output\n";
diff --git a/main/src/main/java/de/blinkt/openvpn/core/NativeUtils.java b/main/src/main/java/de/blinkt/openvpn/core/NativeUtils.java
index 13a2a5c7..19fcbda7 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/NativeUtils.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/NativeUtils.java
@@ -16,7 +16,7 @@ public class NativeUtils {
static native void jniclose(int fdint);
- static native String getNativeAPI();
+ public static native String getNativeAPI();
static {
System.loadLibrary("opvpnutil");