Merge "Grant/revoke legacy "Storage" permissions."

This commit is contained in:
Jeff Sharkey
2019-01-06 20:16:16 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -4588,6 +4588,7 @@ package android.os.storage {
method public void allocateBytes(java.util.UUID, long, int) throws java.io.IOException;
method public void allocateBytes(java.io.FileDescriptor, long, int) throws java.io.IOException;
method public long getAllocatableBytes(java.util.UUID, int) throws java.io.IOException;
method public static boolean hasIsolatedStorage();
field public static final int FLAG_ALLOCATE_AGGRESSIVE = 1; // 0x1
}

View File

@@ -1540,6 +1540,7 @@ public class StorageManager {
}
/** {@hide} */
@SystemApi
@TestApi
public static boolean hasIsolatedStorage() {
// Prefer to use snapshot for current boot when available