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

Commit 6a75b169 authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "On CPS rebind, check if package is allowed"

parents 8f6b7dd9 2d783fc1
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -694,7 +694,8 @@ abstract public class ManagedServices {


            for (int userId : userIds) {
            for (int userId : userIds) {
                if (enabled) {
                if (enabled) {
                    if (isPackageOrComponentAllowed(component.toString(), userId)) {
                    if (isPackageOrComponentAllowed(component.toString(), userId)
                            || isPackageOrComponentAllowed(component.getPackageName(), userId)) {
                        registerServiceLocked(component, userId);
                        registerServiceLocked(component, userId);
                    } else {
                    } else {
                        Slog.d(TAG, component + " no longer has permission to be bound");
                        Slog.d(TAG, component + " no longer has permission to be bound");