mirror of https://github.com/M66B/NetGuard.git
Prevent crashes
This commit is contained in:
parent
b1aecac20a
commit
6b625e5634
|
@ -36,7 +36,11 @@ public class ActivityForwardApproval extends Activity {
|
|||
private static final String ACTION_STOP_PORT_FORWARD = "eu.faircode.netguard.STOP_PORT_FORWARD";
|
||||
|
||||
static {
|
||||
System.loadLibrary("netguard");
|
||||
try {
|
||||
System.loadLibrary("netguard");
|
||||
} catch (UnsatisfiedLinkError ignored) {
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -47,8 +47,7 @@ public class ApplicationEx extends Application {
|
|||
@Override
|
||||
public void uncaughtException(Thread thread, Throwable ex) {
|
||||
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
|
||||
//if (mPrevHandler != null)
|
||||
// mPrevHandler.uncaughtException(thread, ex);
|
||||
System.exit(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -127,7 +127,11 @@ public class Util {
|
|||
private static native boolean is_numeric_address(String ip);
|
||||
|
||||
static {
|
||||
System.loadLibrary("netguard");
|
||||
try {
|
||||
System.loadLibrary("netguard");
|
||||
} catch (UnsatisfiedLinkError ignored) {
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
public static String getSelfVersionName(Context context) {
|
||||
|
|
Loading…
Reference in New Issue