diff options
author | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-06-17 17:06:57 +0200 |
---|---|---|
committer | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-06-17 17:10:01 +0200 |
commit | 0d75ecd1a15d7cbd01a87ca2fec186be6f4167a5 (patch) | |
tree | bc05aa8029a037c68ae75a16465d2c24a1b1f474 /core/java | |
parent | 44d22ba5d90b340cb99566ee99ac0b5f4fb2e826 (diff) | |
download | frameworks_base-0d75ecd1a15d7cbd01a87ca2fec186be6f4167a5.zip frameworks_base-0d75ecd1a15d7cbd01a87ca2fec186be6f4167a5.tar.gz frameworks_base-0d75ecd1a15d7cbd01a87ca2fec186be6f4167a5.tar.bz2 |
FileUtils: add method to get UUID of a volume
Change-Id: I41b76c5e01c82a2f8e67b33133a76947877a2814
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/os/FileUtils.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/os/FileUtils.java b/core/java/android/os/FileUtils.java index 2bec1c1..f3f1725 100644 --- a/core/java/android/os/FileUtils.java +++ b/core/java/android/os/FileUtils.java @@ -54,6 +54,13 @@ public class FileUtils { public static native int setPermissions(String file, int mode, int uid, int gid); + /** returns the UUID for the volume mounted + * at the given mount point, or -1 for failure + * @param mountPoint point for volume + * @return UUID or -1 + */ + public static native int getVolumeUUID(String mountPoint); + /** returns the FAT file system volume ID for the volume mounted * at the given mount point, or -1 for failure * @param mountPoint point for FAT volume |