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

Commit a5d8632a authored by Hai Zhang's avatar Hai Zhang
Browse files

Fix default grant running for secondary user.

USER_SYSTEM is the same thing as the primary user, so we need to pass
USER_ALL to listen to package changes for all users.

Bug: 124452117
Bug: 124401873
Test: manual
Change-Id: Iab8469deb0e1ac3e7c286aba7fe2573187eb76f7
parent f7ecba9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ public class RoleManagerService extends SystemService implements RoleUserState.C
                }
                performInitialGrantsIfNecessary(userId);
            }
        }, UserHandle.SYSTEM, intentFilter, null /* broadcastPermission */, null /* handler */);
        }, UserHandle.ALL, intentFilter, null, null);

        getContext().getContentResolver().registerContentObserver(
                Settings.Global.getUriFor(Settings.Global.SMS_ACCESS_RESTRICTION_ENABLED), false,