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

Commit 352e218b authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Follow AIDL refactoring.

Bug: 26471205
Change-Id: I20aa94fb599eda9ee4b1d0b8de208aecb9e560e7
parent c76d7011
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -211,8 +211,9 @@ final public class Utils {
            ok = (foregroundUser == callingUser);
            if (!ok) {
                // Always allow SystemUI/System access.
                int systemUiUid = ActivityThread.getPackageManager().getPackageUid(
                        "com.android.systemui", UserHandle.USER_SYSTEM);
                final int systemUiUid = ActivityThread.getPackageManager().getPackageUid(
                        "com.android.systemui", PackageManager.MATCH_SYSTEM_ONLY,
                        UserHandle.USER_SYSTEM);
                ok = (systemUiUid == callingUid) || (Process.SYSTEM_UID == callingUid);
            }
        } catch (Exception ex) {
@@ -245,8 +246,9 @@ final public class Utils {
                    (foregroundUser == parentUser);
            if (!ok) {
                // Always allow SystemUI/System access.
                int systemUiUid = ActivityThread.getPackageManager().getPackageUid(
                        "com.android.systemui", UserHandle.USER_SYSTEM);
                final int systemUiUid = ActivityThread.getPackageManager().getPackageUid(
                        "com.android.systemui", PackageManager.MATCH_SYSTEM_ONLY,
                        UserHandle.USER_SYSTEM);
                ok = (systemUiUid == callingUid) || (Process.SYSTEM_UID == callingUid);
            }
        } catch (Exception ex) {