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

Commit 2d783fc1 authored by Beverly's avatar Beverly
Browse files

On CPS rebind, check if package is allowed

Test: cts test
Change-Id: If24b91f20cd5f2074223c2857add1879b76cb383
Fixes: 113634185
parent 77e36b7b
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");