summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2018-08-25 00:50:25 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-08-25 00:50:25 +0000
commit522d8ce500ca2f66195418882a6fae895d29e90e (patch)
tree2b0cb8689c772ca124075da9a56923b8bcc8bebc
parent82e3988254e7e1575a033efc2556f2cc0a3f9250 (diff)
parent5518cf584b7759ddd0b326a9b9213d28d7d8c041 (diff)
Merge "No permissions needed for static disk attributes."
-rw-r--r--services/usage/java/com/android/server/usage/StorageStatsService.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/services/usage/java/com/android/server/usage/StorageStatsService.java b/services/usage/java/com/android/server/usage/StorageStatsService.java
index 61d6b7def981..d12eda75ff32 100644
--- a/services/usage/java/com/android/server/usage/StorageStatsService.java
+++ b/services/usage/java/com/android/server/usage/StorageStatsService.java
@@ -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 {