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

Commit c47132c2 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Use resolved calling user id"

parents 1f683a11 d8d25e00
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -904,12 +904,12 @@ public class SettingsProvider extends ContentProvider {
            }
        }

        // Enforce what the calling package can mutate the system settings.
        enforceRestrictedSystemSettingsMutationForCallingPackage(operation, name, runAsUserId);

        // Resolve the userId on whose behalf the call is made.
        final int callingUserId = resolveCallingUserIdEnforcingPermissionsLocked(runAsUserId);

        // Enforce what the calling package can mutate the system settings.
        enforceRestrictedSystemSettingsMutationForCallingPackage(operation, name, callingUserId);

        // Determine the owning user as some profile settings are cloned from the parent.
        final int owningUserId = resolveOwningUserIdForSystemSettingLocked(callingUserId, name);