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

Commit 6eb12245 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE Add cross-user check for getDefaultSmsPackage()." into rvc-dev

parents 7ab155c9 cf1bd25a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -662,6 +662,12 @@ public class RoleManagerService extends SystemService implements RoleUserState.C

        @Override
        public String getDefaultSmsPackage(int userId) {
            userId = handleIncomingUser(userId, false, "getDefaultSmsPackage");
            if (!mUserManagerInternal.exists(userId)) {
                Slog.e(LOG_TAG, "user " + userId + " does not exist");
                return null;
            }

            long identity = Binder.clearCallingIdentity();
            try {
                return CollectionUtils.firstOrNull(