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

Commit 5afde548 authored by Stanislav Zholnin's avatar Stanislav Zholnin Committed by Android (Google) Code Review
Browse files

Merge "Add WRITE_DEVICE_CONFIG permission check to DeviceConfig API."

parents 58d858ac 5a25a84b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1103,9 +1103,7 @@ public class SettingsProvider extends ContentProvider {

    private boolean mutateConfigSetting(String name, String value, String prefix,
            boolean makeDefault, int operation, int mode) {

        // TODO(b/117663715): Ensure the caller can access the setting.
        // enforceReadPermission(WRITE_DEVICE_CONFIG);
        enforceWritePermission(Manifest.permission.WRITE_DEVICE_CONFIG);

        // Perform the mutation.
        synchronized (mLock) {