summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java2
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java1
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/OpenVPNThread.java2
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/VPNLaunchHelper.java8
-rw-r--r--main/src/main/java/org/spongycastle/util/io/pem/PemReader.java2
-rw-r--r--main/src/main/res/drawable-hdpi/ic_edit_grey600_48dp.pngbin493 -> 0 bytes
-rw-r--r--main/src/main/res/drawable-mdpi/ic_edit_grey600_48dp.pngbin379 -> 0 bytes
-rw-r--r--main/src/main/res/drawable-xhdpi/ic_edit_grey600_48dp.pngbin639 -> 0 bytes
-rw-r--r--main/src/main/res/drawable-xxhdpi/ic_edit_grey600_48dp.pngbin846 -> 0 bytes
-rw-r--r--main/src/main/res/drawable-xxxhdpi/ic_edit_grey600_48dp.pngbin1099 -> 0 bytes
-rw-r--r--main/src/main/res/layout/vpn_remote_collasped.xml15
11 files changed, 12 insertions, 18 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
index 7a9c2907..6a3f6312 100644
--- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
+++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
@@ -614,7 +614,7 @@ public class VpnProfile implements Serializable {
public static boolean isEmbedded(String data) {
if (data==null)
return false;
- if(data.startsWith(INLINE_TAG) || data.startsWith(DISPLAYNAME_TAG))
+ if (data.startsWith(INLINE_TAG) || data.startsWith(DISPLAYNAME_TAG))
return true;
else
return false;
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
index cc6daf6b..abc40aa7 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java
@@ -715,6 +715,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
public void updateState(String state, String logmessage, int resid, ConnectionStatus level) {
// If the process is not running, ignore any state,
// Notification should be invisible in this state
+
doSendBroadcast(state, level);
if (mProcessThread == null && !mNotificationAlwaysVisible)
return;
diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNThread.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNThread.java
index 20d0e327..58c995a8 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNThread.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNThread.java
@@ -5,6 +5,7 @@
package de.blinkt.openvpn.core;
+import android.annotation.SuppressLint;
import android.util.Log;
import java.io.BufferedReader;
@@ -30,6 +31,7 @@ import de.blinkt.openvpn.core.VpnStatus.LogItem;
public class OpenVPNThread implements Runnable {
private static final String DUMP_PATH_STRING = "Dump path: ";
+ @SuppressLint("SdCardPath")
private static final String BROKEN_PIE_SUPPORT = "/data/data/de.blinkt.openvpn/cache/pievpn[1]: syntax error:";
private static final String TAG = "OpenVPN";
public static final int M_FATAL = (1 << 4);
diff --git a/main/src/main/java/de/blinkt/openvpn/core/VPNLaunchHelper.java b/main/src/main/java/de/blinkt/openvpn/core/VPNLaunchHelper.java
index de903fa5..8b0b951f 100644
--- a/main/src/main/java/de/blinkt/openvpn/core/VPNLaunchHelper.java
+++ b/main/src/main/java/de/blinkt/openvpn/core/VPNLaunchHelper.java
@@ -5,6 +5,7 @@
package de.blinkt.openvpn.core;
+import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
@@ -29,7 +30,7 @@ public class VPNLaunchHelper {
static private String writeMiniVPN(Context context) {
String[] abis;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
- abis =Build.SUPPORTED_ABIS;
+ abis = getSupportedAbisLollipop();
else
abis = new String[]{Build.CPU_ABI, Build.CPU_ABI2};
@@ -44,6 +45,11 @@ public class VPNLaunchHelper {
return null;
}
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
+ private static String[] getSupportedAbisLollipop() {
+ return Build.SUPPORTED_ABIS;
+ }
+
private static String getMiniVPNExecutableName()
{
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
diff --git a/main/src/main/java/org/spongycastle/util/io/pem/PemReader.java b/main/src/main/java/org/spongycastle/util/io/pem/PemReader.java
index cbbebab9..75e2c171 100644
--- a/main/src/main/java/org/spongycastle/util/io/pem/PemReader.java
+++ b/main/src/main/java/org/spongycastle/util/io/pem/PemReader.java
@@ -49,7 +49,7 @@ public class PemReader
{
String line;
String endMarker = END + type;
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
List headers = new ArrayList();
while ((line = readLine()) != null)
diff --git a/main/src/main/res/drawable-hdpi/ic_edit_grey600_48dp.png b/main/src/main/res/drawable-hdpi/ic_edit_grey600_48dp.png
deleted file mode 100644
index 6ed4351c..00000000
--- a/main/src/main/res/drawable-hdpi/ic_edit_grey600_48dp.png
+++ /dev/null
Binary files differ
diff --git a/main/src/main/res/drawable-mdpi/ic_edit_grey600_48dp.png b/main/src/main/res/drawable-mdpi/ic_edit_grey600_48dp.png
deleted file mode 100644
index 4c95bd57..00000000
--- a/main/src/main/res/drawable-mdpi/ic_edit_grey600_48dp.png
+++ /dev/null
Binary files differ
diff --git a/main/src/main/res/drawable-xhdpi/ic_edit_grey600_48dp.png b/main/src/main/res/drawable-xhdpi/ic_edit_grey600_48dp.png
deleted file mode 100644
index 0c0fd76f..00000000
--- a/main/src/main/res/drawable-xhdpi/ic_edit_grey600_48dp.png
+++ /dev/null
Binary files differ
diff --git a/main/src/main/res/drawable-xxhdpi/ic_edit_grey600_48dp.png b/main/src/main/res/drawable-xxhdpi/ic_edit_grey600_48dp.png
deleted file mode 100644
index 1361eedc..00000000
--- a/main/src/main/res/drawable-xxhdpi/ic_edit_grey600_48dp.png
+++ /dev/null
Binary files differ
diff --git a/main/src/main/res/drawable-xxxhdpi/ic_edit_grey600_48dp.png b/main/src/main/res/drawable-xxxhdpi/ic_edit_grey600_48dp.png
deleted file mode 100644
index 181f899c..00000000
--- a/main/src/main/res/drawable-xxxhdpi/ic_edit_grey600_48dp.png
+++ /dev/null
Binary files differ
diff --git a/main/src/main/res/layout/vpn_remote_collasped.xml b/main/src/main/res/layout/vpn_remote_collasped.xml
deleted file mode 100644
index 93ac1f9a..00000000
--- a/main/src/main/res/layout/vpn_remote_collasped.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/address">
-
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:text="Medium Text"
- android:id="@+id/textView"
- android:layout_gravity="right" />
-</LinearLayout> \ No newline at end of file