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

Commit d8d25e00 authored by Svetoslav's avatar Svetoslav
Browse files

Use resolved calling user id

bug:25476216

Change-Id: I0093a5c071affaa5f3ca8eeb0e3a7a36b66a3c1f
parent 12262af4
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);