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

Commit 662fcc58 authored by Aseem Kumar's avatar Aseem Kumar Committed by Automerger Merge Worker
Browse files

Prevent apps from spamming addAccountExplicitly. am: 551d70e1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15624525

Change-Id: If96923b691c90b4d2f6e247db3474aba99183383
parents 5a1724e2 551d70e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1815,8 +1815,8 @@ public class AccountManagerService
                        return false;
                    }
                    if (accounts.accountsDb.findAllDeAccounts().size() > 100) {
                        Log.w(TAG, "insertAccountIntoDatabase: " + account
                                + ", skipping since more than 50 accounts on device exist");
                        Log.w(TAG, "insertAccountIntoDatabase: " + account.toSafeString()
                                + ", skipping since more than 100 accounts on device exist");
                        return false;
                    }
                    long accountId = accounts.accountsDb.insertCeAccount(account, password);