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

Commit 239f2627 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: Ia38082df8aef9dcb87121f98a868341ef2d287f6
parents f5f4eac8 310cb1b8
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -22899,9 +22899,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