public static interface MountServiceInternal.ExternalStorageMountPolicy
Modifier and Type | Method and Description |
---|---|
int |
getMountMode(int uid,
String packageName)
Gets the external storage mount mode for the given uid.
|
boolean |
hasExternalStorage(int uid,
String packageName)
Gets whether external storage should be reported to the given UID.
|
int getMountMode(int uid, String packageName)
uid
- The UID for which to determine mount mode.packageName
- The package in the UID for making the call.Zygote.MOUNT_EXTERNAL_NONE
,
Zygote.MOUNT_EXTERNAL_DEFAULT
,
Zygote.MOUNT_EXTERNAL_READ
,
Zygote.MOUNT_EXTERNAL_WRITE
boolean hasExternalStorage(int uid, String packageName)
uid
- The UID for which to determine whether it has external storage.packageName
- The package in the UID for making the call.