summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-17 17:06:57 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-17 17:10:01 +0200
commit0d75ecd1a15d7cbd01a87ca2fec186be6f4167a5 (patch)
treebc05aa8029a037c68ae75a16465d2c24a1b1f474 /core/java
parent44d22ba5d90b340cb99566ee99ac0b5f4fb2e826 (diff)
downloadframeworks_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.java7
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