Loading core/java/android/os/Environment.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -318,6 +318,17 @@ public class Environment { return new File(new File(getSystemSecureDirectory(), "users"), Integer.toString(userId)); return new File(new File(getSystemSecureDirectory(), "users"), Integer.toString(userId)); } } /** * 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. * 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> * @return <code>true</code> if Encrypted File System feature is enabled, <code>false</code> Loading Loading
core/java/android/os/Environment.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -318,6 +318,17 @@ public class Environment { return new File(new File(getSystemSecureDirectory(), "users"), Integer.toString(userId)); return new File(new File(getSystemSecureDirectory(), "users"), Integer.toString(userId)); } } /** * 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. * 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> * @return <code>true</code> if Encrypted File System feature is enabled, <code>false</code> Loading