Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7807f86 authored by Jason Monk's avatar Jason Monk Committed by Android Git Automerger
Browse files

am 741f5c3a: am 6b21f4e6: Allow System UI access to VPN.

* commit '741f5c3abf14e593f919de2bb558eeb012ae2951':
  Allow System UI access to VPN.
parents 8c0a9d42 6a9ed4aa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -684,6 +684,11 @@ public class Vpn {
            if (((app.flags & ApplicationInfo.FLAG_SYSTEM) != 0) && (appId == app.uid)) {
                return;
            }
            // SystemUI dialogs are also allowed to control VPN.
            ApplicationInfo sysUiApp = pm.getApplicationInfo("com.android.systemui", 0);
            if (((sysUiApp.flags & ApplicationInfo.FLAG_SYSTEM) != 0) && (appId == sysUiApp.uid)) {
                return;
            }
        } catch (Exception e) {
            // ignore
        } finally {