summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-07-09 21:53:56 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-07-09 21:53:56 -0700
commit33c5bc476e4a3d612d09efc5d3f8643c042dadb4 (patch)
tree8a0a6eeaebb14d60038388aa1f0a374734cd425c /core/java
parent102cf84de6dc5335e6146e2b270e37cd7bf7d4ea (diff)
parent0d75ecd1a15d7cbd01a87ca2fec186be6f4167a5 (diff)
downloadframeworks_base-33c5bc476e4a3d612d09efc5d3f8643c042dadb4.zip
frameworks_base-33c5bc476e4a3d612d09efc5d3f8643c042dadb4.tar.gz
frameworks_base-33c5bc476e4a3d612d09efc5d3f8643c042dadb4.tar.bz2
Merge "FileUtils: add method to get UUID of a volume" into cm-10.1
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