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

Commit a02cf96b authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am 02dd0a36: am cf831c87: am f9c6dbb6: Merge "Add missing conditional in...

am 02dd0a36: am cf831c87: am f9c6dbb6: Merge "Add missing conditional in settings provider" into mnc-dev

* commit '02dd0a36':
  Add missing conditional in settings provider
parents 947e3447 02dd0a36
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -905,7 +905,9 @@ public class SettingsProvider extends ContentProvider {
    private boolean mutateSystemSetting(String name, String value, int runAsUserId,
            int operation) {
        // Check for permissions first.
        hasPermissionsToMutateSystemSettings();
        if (!hasPermissionsToMutateSystemSettings()) {
            return false;
        }

        // Verify whether this operation is allowed for the calling package.
        if (!isAppOpWriteSettingsAllowedForCallingPackage()) {