WG now works. Many small changes and fixes.

This commit is contained in:
jens 2021-05-12 19:41:04 +02:00
parent f79efa7739
commit 8d42bb48d2
3 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,7 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"/>
<uses-permission android:name="com.wireguard.android.permission.CONTROL_TUNNELS"/>
<!-- <uses-permission android:name="net.kollnig.missioncontrol.permission.ADMIN"/>-->
<uses-feature
android:name="android.hardware.telephony"

View File

@ -219,6 +219,7 @@ public class ActivityPermissions extends Activity
}
ActivityMainScreen.updateMainScreen();
ActivityMainRules.getInstance().updateListView();
}
protected static void addToArrayListUnique(String value, ArrayList<String> list)
@ -543,6 +544,12 @@ public class ActivityPermissions extends Activity
action.getParameter2().contains(Actions.wireguard_tunnel_refresh)
)
addToArrayListUnique(ActivityPermissions.permissionNameWireguard, requiredPermissions);
// if(
// action.getParameter2().contains("eu.faircode.netguard.START_PORT_FORWARD")
// ||
// action.getParameter2().contains("eu.faircode.netguard.STOP_PORT_FORWARD")
// )
// addToArrayListUnique("net.kollnig.missioncontrol.permission.ADMIN", requiredPermissions);
break;
case triggerUrl:
addToArrayListUnique("android.permission.INTERNET", requiredPermissions);
@ -1075,6 +1082,7 @@ public class ActivityPermissions extends Activity
NotificationManager mNotificationManager = (NotificationManager) Miscellaneous.getAnyContext().getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.cancel(notificationIdPermissions);
ActivityMainScreen.updateMainScreen();
ActivityMainRules.getInstance().updateListView();
this.finish();
}

View File

@ -666,4 +666,5 @@
<string name="startAppByStartActivity">by startActivity()</string>
<string name="startAppBySendBroadcast">by sendBroadcast()</string>
<string name="openExamplesPage">Open webpage with examples</string>
<!-- <string name="net.kollnig.missioncontrol.permission.ADMIN">Control the app Tracker Control</string>-->
</resources>