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

Commit fb2dfc63 authored by Guliz Tuncay's avatar Guliz Tuncay Committed by Automerger Merge Worker
Browse files

Merge "Call role manager with cleared calling identity in...

Merge "Call role manager with cleared calling identity in getWellbeingPackageName()." into sc-dev am: 310cb1b8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13928245

Change-Id: I3de74452ac5e394601763a8584925f54d80c642c
parents 07af5234 310cb1b8
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -22903,9 +22903,14 @@ public class PackageManagerService extends IPackageManager.Stub
    @Override
    public String getWellbeingPackageName() {
        final long identity = Binder.clearCallingIdentity();
        try {
            return CollectionUtils.firstOrNull(
                    mContext.getSystemService(RoleManager.class).getRoleHolders(
                            RoleManager.ROLE_SYSTEM_WELLBEING));
        } finally {
            Binder.restoreCallingIdentity(identity);
        }
    }
    @Override