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

Commit 310cb1b8 authored by Guliz Tuncay's avatar Guliz Tuncay Committed by Android (Google) Code Review
Browse files

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

parents b7c6619e 7f7c292a
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