diff options
| -rw-r--r-- | services/usage/java/com/android/server/usage/StorageStatsService.java | 4 |
1 files changed, 3 insertions, 1 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..142ab9f9baea 100644 --- a/services/usage/java/com/android/server/usage/StorageStatsService.java +++ b/services/usage/java/com/android/server/usage/StorageStatsService.java @@ -33,6 +33,7 @@ import android.content.pm.PackageStats; import android.content.pm.UserInfo; import android.net.Uri; import android.os.Binder; +import android.os.Build; import android.os.Environment; import android.os.FileUtils; import android.os.Handler; @@ -169,7 +170,8 @@ public class StorageStatsService extends IStorageStatsManager.Stub { enforcePermission(Binder.getCallingUid(), callingPackage); if (volumeUuid == StorageManager.UUID_PRIVATE_INTERNAL) { - return SystemProperties.getBoolean(StorageManager.PROP_HAS_RESERVED, false); + return SystemProperties.getBoolean(StorageManager.PROP_HAS_RESERVED, false) + || Build.IS_CONTAINER; } else { return false; } |