From c665fedfe191f236c52715309f250162a3a9d637 Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Mon, 30 Sep 2019 17:59:49 +0000 Subject: docs: Added consent notice re. getAccounts() Test: make ds-docs -j32 Bug: 32704758 Change-Id: Id5e5c00840f2bde6c31a4f95f365b8bc8857884d --- core/java/android/accounts/AccountManager.java | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/core/java/android/accounts/AccountManager.java b/core/java/android/accounts/AccountManager.java index 26c2c0cfdd5d..f4e465ab3adb 100644 --- a/core/java/android/accounts/AccountManager.java +++ b/core/java/android/accounts/AccountManager.java @@ -563,6 +563,21 @@ public class AccountManager { * account, or the AbstractAcccountAuthenticator managing the account did so or because the * client shares a signature with the managing AbstractAccountAuthenticator. * + *

Caution: This method returns personal and sensitive user data. + * If your app accesses, collects, uses, or shares personal and sensitive data, you must clearly + * disclose that fact to users. For apps published on Google Play, policies protecting user data + * require that you do the following:

+ * + *

To learn more, visit the + * Google Play + * Policy regarding user data.

+ * *

* It is safe to call this method from the main thread. * @@ -649,6 +664,22 @@ public class AccountManager { * the account. For example, there are types corresponding to Google and Facebook. The exact * string token to use will be published somewhere associated with the authenticator in * question. + *

+ * + *

Caution: This method returns personal and sensitive user data. + * If your app accesses, collects, uses, or shares personal and sensitive data, you must clearly + * disclose that fact to users. For apps published on Google Play, policies protecting user data + * require that you do the following:

+ * + *

To learn more, visit the + * Google Play + * Policy regarding user data.

* *

* It is safe to call this method from the main thread. -- cgit v1.2.3-59-g8ed1b