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

Commit 522d8ce5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "No permissions needed for static disk attributes."

parents 82e39882 5518cf58
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -155,8 +155,6 @@ public class StorageStatsService extends IStorageStatsManager.Stub {

    @Override
    public boolean isQuotaSupported(String volumeUuid, String callingPackage) {
        enforcePermission(Binder.getCallingUid(), callingPackage);

        try {
            return mInstaller.isQuotaSupported(volumeUuid);
        } catch (InstallerException e) {
@@ -166,8 +164,6 @@ public class StorageStatsService extends IStorageStatsManager.Stub {

    @Override
    public boolean isReservedSupported(String volumeUuid, String callingPackage) {
        enforcePermission(Binder.getCallingUid(), callingPackage);

        if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) {
            return SystemProperties.getBoolean(StorageManager.PROP_HAS_RESERVED, false);
        } else {