1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-25 01:07:52 +00:00

Explain VPN start problem

This commit is contained in:
M66B 2016-03-14 09:42:45 +01:00
parent 7434d9b0ef
commit c17e7221c9
2 changed files with 7 additions and 3 deletions

View file

@ -348,13 +348,15 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
} catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
showExitNotification(ex.toString());
if (!(ex instanceof IllegalStateException)) {
if (ex instanceof IllegalStateException)
showErrorNotification(4, getString(R.string.msg_start_failed));
else {
// Disable firewall
prefs.edit().putBoolean("enabled", false).apply();
Widget.updateWidgets(ServiceSinkhole.this);
showExitNotification(ex.toString());
// Report exception
Util.sendCrashReport(ex, ServiceSinkhole.this);
}

View file

@ -140,6 +140,8 @@ however it is impossible to guarantee NetGuard will work correctly on every devi
<string name="msg_disabled">NetGuard is disabled, use the switch above to enable NetGuard</string>
<string name="msg_revoked">NetGuard has been disabled, likely by using another VPN based application</string>
<string name="msg_error">NetGuard has been disabled, because of an internal error</string>
<string name="msg_start_failed">The Android VPN service could not be started, which is most likely caused by a bug in your Android version.
Restarting your device or revoking the VPN permission using the Android settings from NetGuard might (temporarily) solve this problem.</string>
<string name="msg_installed">\'%1$s\' installed</string>
<string name="msg_access">%1$s attempted internet access</string>
<string name="msg_completed">Action completed</string>