summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2018-01-22 11:26:44 -0800
committerAndreas Huber <andih@google.com>2018-01-23 15:51:04 -0800
commit7fe2053a55ed071bc28d44cb2f34dfc9f4efd520 (patch)
tree23187698e932702e580c1ba572269fa7fd2e7646 /core/java
parent011651c560f437d7d439803bd4fcb43d70d99a20 (diff)
Fingerprint data is now stored in one of two ways depending on the
shipping API version: For devices shipped before Android P nothing changes, data is stored under /data/system/users/<user-id>/fpdata/... Devices shipped from now on will instead store fingerprint data under /data/vendor_de/<user-id>/fpdata. Support for /data/vendor_de and /data/vendor_ce has been added to vold. Bug: 36997597 Change-Id: Ib500ede221db6a3cb18595162c412c52dce5c931 Test: manually
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/Environment.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/os/Environment.java b/core/java/android/os/Environment.java
index b1794a6dfa6c..62731e84a401 100644
--- a/core/java/android/os/Environment.java
+++ b/core/java/android/os/Environment.java
@@ -292,6 +292,16 @@ public class Environment {
}
/** {@hide} */
+ public static File getDataVendorCeDirectory(int userId) {
+ return buildPath(getDataDirectory(), "vendor_ce", String.valueOf(userId));
+ }
+
+ /** {@hide} */
+ public static File getDataVendorDeDirectory(int userId) {
+ return buildPath(getDataDirectory(), "vendor_de", String.valueOf(userId));
+ }
+
+ /** {@hide} */
public static File getProfileSnapshotPath(String packageName, String codePath) {
return buildPath(buildPath(getDataDirectory(), "misc", "profiles", "ref", packageName,
"primary.prof.snapshot"));