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

Commit 0cb62fa9 authored by Songchun Fan's avatar Songchun Fan Committed by Android (Google) Code Review
Browse files

Merge "[SettingsProvider] enforce permission on openFile" into tm-dev

parents 8ed3ef0f 5b50cebd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -818,6 +818,9 @@ 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;