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

Commit 00fa840c authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Check approval status on rebind

- Double check that an app still has permission to be bound
when they request to be rebound.

Test: cts
Fixes: 111786407

Change-Id: If0f6f83525f6aeb83dfcff7e954714e40e03cf31
parent 234a2cc0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -650,7 +650,11 @@ abstract public class ManagedServices {

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