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

Commit 363da78e authored by Beverly's avatar Beverly
Browse files

Should check permission on flattened string

Change-Id: I2bbc8469cf48dd0cd613b6a1b291cf70ad0805b4
Fixes: 116716937
Test: CtsVerifier NotificationListener Test
parent 512ebfe3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -696,7 +696,7 @@ abstract public class ManagedServices {
            for (int i = 0; i < userIds.size(); i++) {
                final int userId = userIds.get(i);
                if (enabled) {
                    if (isPackageOrComponentAllowed(component.toString(), userId)
                    if (isPackageOrComponentAllowed(component.flattenToString(), userId)
                            || isPackageOrComponentAllowed(component.getPackageName(), userId)) {
                        registerServiceLocked(component, userId);
                    } else {