summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorRobin Lee <rgl@google.com>2014-06-05 17:16:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-05 17:16:52 +0000
commit271251d739db12838d1521bcf885b4943e9b00b1 (patch)
treedc9c6f9d6c4880b08e532916aa4925fcc62f4dd5 /core/java/android
parent759a89782d38ddf6ab7f4a2c22c8911ea206b275 (diff)
parent6959133d84b52ad177b22efc80b10dc1ad3fb62f (diff)
downloadframeworks_base-271251d739db12838d1521bcf885b4943e9b00b1.zip
frameworks_base-271251d739db12838d1521bcf885b4943e9b00b1.tar.gz
frameworks_base-271251d739db12838d1521bcf885b4943e9b00b1.tar.bz2
Merge "Add Environment call: get config dir for some user"
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/os/Environment.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/os/Environment.java b/core/java/android/os/Environment.java
index 7bf7367..b554e9f 100644
--- a/core/java/android/os/Environment.java
+++ b/core/java/android/os/Environment.java
@@ -319,6 +319,17 @@ public class Environment {
}
/**
+ * Returns the config directory for a user. This is for use by system services to store files
+ * relating to the user which should be readable by any app running as that user.
+ *
+ * @hide
+ */
+ public static File getUserConfigDirectory(int userId) {
+ return new File(new File(new File(
+ getDataDirectory(), "misc"), "user"), Integer.toString(userId));
+ }
+
+ /**
* Returns whether the Encrypted File System feature is enabled on the device or not.
* @return <code>true</code> if Encrypted File System feature is enabled, <code>false</code>
* if disabled.