From 87d0c3c987a6b4c0bbc1dbe8d529ec1451ed2e79 Mon Sep 17 00:00:00 2001 From: sunjian Date: Fri, 14 Jul 2017 11:54:46 -0700 Subject: [PATCH] Improve documentation for custome token. Bug: 37963830 Test: none Change-Id: I1ca14d0b5e0779ae96c867806ddcc6792621876f --- .../accounts/AbstractAccountAuthenticator.java | 13 +++++++++---- core/java/android/accounts/AccountManager.java | 7 +++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/core/java/android/accounts/AbstractAccountAuthenticator.java b/core/java/android/accounts/AbstractAccountAuthenticator.java index 87e512c31bfa5..bf9bd79e63efa 100644 --- a/core/java/android/accounts/AbstractAccountAuthenticator.java +++ b/core/java/android/accounts/AbstractAccountAuthenticator.java @@ -547,7 +547,9 @@ public abstract class AbstractAccountAuthenticator { * @param authTokenType the type of auth token to retrieve after adding the account, may be null * @param requiredFeatures a String array of authenticator-specific features that the added * account must support, may be null - * @param options a Bundle of authenticator-specific options, may be null + * @param options a Bundle of authenticator-specific options. It always contains + * {@link AccountManager#KEY_CALLER_PID} and {@link AccountManager#KEY_CALLER_UID} + * fields which will let authenticator know the identity of the caller. * @return a Bundle result or null if the result is to be returned via the response. The result * will contain either: *