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

Commit 4dad4a4e authored by Raj Yengisetty's avatar Raj Yengisetty Committed by Rajesh Yengisetty
Browse files

Protected Apps: Allow all system apps to see Protected Components

Change-Id: I5e12dd7cd05117a4e44a4bf3ee9f56ea6122ce15
parent c2373a78
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6633,6 +6633,10 @@ public class PackageManagerService extends IPackageManager.Stub {
            // Remove protected Application components
            if (Binder.getCallingUid() != Process.SYSTEM_UID) {
                int callingFlags  = getFlagsForUid(Binder.getCallingUid());
                if ((callingFlags & ApplicationInfo.FLAG_SYSTEM) != 0) {
                    return list;
                }
                Iterator<ResolveInfo> itr = list.iterator();
                while (itr.hasNext()) {
                    if (itr.next().activityInfo.applicationInfo.protect) {