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

Commit e47df846 authored by Jason Monk's avatar Jason Monk
Browse files

Allow System UI access to VPN.

Bug: 16153201
Change-Id: I5f5e9e0ed3e4e02d6a6995011356b350758f068d
parent f660edb2
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -684,6 +684,11 @@ public class Vpn {
            if (((app.flags & ApplicationInfo.FLAG_SYSTEM) != 0) && (appId == app.uid)) {
            if (((app.flags & ApplicationInfo.FLAG_SYSTEM) != 0) && (appId == app.uid)) {
                return;
                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) {
        } catch (Exception e) {
            // ignore
            // ignore
        } finally {
        } finally {