AccountManager changes for profile seeding.

Add a new error code to AccountManager and remove the check for
limited user during add account to allow Authenticators to seed
account during limited profile startup.

Change-Id: I5a73def9fc3baeb8e6de1b42e923829c335e1668
This commit is contained in:
Jatin Lodhia
2013-03-27 10:57:23 -07:00
parent f2b0fdb2f7
commit 3df7d697ca
3 changed files with 13 additions and 26 deletions

View File

@@ -151,6 +151,7 @@ public class AccountManager {
public static final int ERROR_CODE_UNSUPPORTED_OPERATION = 6;
public static final int ERROR_CODE_BAD_ARGUMENTS = 7;
public static final int ERROR_CODE_BAD_REQUEST = 8;
public static final int ERROR_CODE_BAD_AUTHENTICATION = 9;
/** @hide */
public static final int ERROR_CODE_USER_RESTRICTED = 100;
@@ -964,10 +965,10 @@ public class AccountManager {
*/
@Deprecated
public AccountManagerFuture<Bundle> getAuthToken(
final Account account, final String authTokenType,
final Account account, final String authTokenType,
final boolean notifyAuthFailure,
AccountManagerCallback<Bundle> callback, Handler handler) {
return getAuthToken(account, authTokenType, null, notifyAuthFailure, callback,
return getAuthToken(account, authTokenType, null, notifyAuthFailure, callback,
handler);
}