From e48fce6da7bd839d70cbf69abb2780c6d30ea7f6 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Wed, 12 Jun 2013 00:47:55 -0700 Subject: framework: Privacy Guard * Introduce a new privacy feature which allows the user to run an application with reduced visibility into his or her personal data. * Adds a per-application flag and simple API to determine if this flag is enabled for the current or calling process. * This flag can be used by content providers to decide if they should return a limited/empty dataset. Change-Id: Id7c54d728e63acb2b02a2a9322930b54949f6c5d --- core/java/android/content/Context.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/java/android/content/Context.java') diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index f0c6ce8..bd7868f 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -2267,6 +2267,16 @@ public abstract class Context { public static final String USER_SERVICE = "user"; /** + * Determine whether the application or calling application has + * privacy guard. This is a privacy feature intended to permit the user + * to control access to personal data. Applications and content providers + * can check this value if they wish to honor privacy guard. + * + * @hide + */ + public abstract boolean isPrivacyGuardEnabled(); + + /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. * -- cgit v1.1