You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: play-services-auth-workaccount/core/src/main/kotlin/com/google/android/gms/auth/account/authenticator/WorkAccountAuthenticator.kt
+36-26Lines changed: 36 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* SPDX-FileCopyrightText: 2026 e foundation
2
+
* SPDX-FileCopyrightText: 2024 e foundation
3
3
* SPDX-License-Identifier: Apache-2.0
4
4
*/
5
5
@@ -38,8 +38,15 @@ class WorkAccountAuthenticator(val context: Context) : AbstractAccountAuthentica
38
38
authTokenType:String?,
39
39
requiredFeatures:Array<outString>?,
40
40
options:Bundle
41
-
): Bundle? {
42
-
41
+
): Bundle {
42
+
/* Calls to this method are always initiated by other applications or by the user.
43
+
* We refuse, because `accountCreationToken` is needed, and because only profile owner is
44
+
* supposed to provision this account. Profile owner will use `WorkAccountAuthenticator`
45
+
* instead, which calls the code in `addAccountInternal` directly.
46
+
*
47
+
* Also note: adding account with `AccountManager.addAccount` can be forbidden by device
0 commit comments