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

Commit 0e7f5bbb authored by Valentin Iftime's avatar Valentin Iftime Committed by Iavor-Valentin Iftime
Browse files

Use caller uid for logRecordWithUid in addAccountAsUser

Fix logRecordWithUid, it was using userId parameter instead of uid

Test: atest AccountsDbTest
Change-Id: I29a90121ad2306ba203c9e6261290ed1f8706d32
parent c5042441
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3248,7 +3248,7 @@ public class AccountManagerService
            UserAccounts accounts = getUserAccounts(userId);
            logRecordWithUid(
                    accounts, AccountsDb.DEBUG_ACTION_CALLED_ACCOUNT_ADD, AccountsDb.TABLE_ACCOUNTS,
                    userId);
                    uid);
            new Session(accounts, response, accountType, expectActivityLaunch,
                    true /* stripAuthTokenFromResult */, null /* accountName */,
                    false /* authDetailsRequired */, true /* updateLastAuthenticationTime */) {