Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d13a4ad1 authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by Android (Google) Code Review
Browse files

Merge "Check account type returned by AbstractAccountAuthenticator." into main

parents af6a5266 a3788486
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3227,6 +3227,12 @@ public class AccountManagerService
                                        "the type and name should not be empty");
                                return;
                            }
                            if (!type.equals(mAccountType)) {
                                onError(AccountManager.ERROR_CODE_INVALID_RESPONSE,
                                        "incorrect account type");
                                return;
                            }

                            Account resultAccount = new Account(name, type);
                            if (!customTokens) {
                                saveAuthTokenToDatabase(