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

Commit 3726d524 authored by Songchun Fan's avatar Songchun Fan Committed by Victor Chang
Browse files

Revert "[SettingsProvider] enforce permission on openFile"

This reverts commit 5b50cebd.

Reason for revert: should check appops permission instead because the permission is granted upon user approval

Bug: 230791848

Change-Id: Icc86eb38372753a5f6aa8b91918ecb4b120c1fa8
parent 5b50cebd
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -818,9 +818,6 @@ public class SettingsProvider extends ContentProvider {
            getContext().enforceCallingPermission(Manifest.permission.INTERACT_ACROSS_USERS,
                    "Access files from the settings of another user");
        }
        if (mode.contains("w")) {
            enforceWritePermission(Manifest.permission.WRITE_SETTINGS);
        }
        uri = ContentProvider.getUriWithoutUserId(uri);

        final String cacheRingtoneSetting;