diff options
| -rw-r--r-- | services/core/java/com/android/server/accounts/AccountManagerService.java | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java index 577cada36c3e..9108acf9c40a 100644 --- a/services/core/java/com/android/server/accounts/AccountManagerService.java +++ b/services/core/java/com/android/server/accounts/AccountManagerService.java @@ -1553,9 +1553,15 @@ public class AccountManagerService } } } - - logRecord(accounts, DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE, TABLE_ACCOUNTS); - + SQLiteDatabase db = accounts.openHelper.getReadableDatabase(); + final long accountId = getAccountIdLocked(db, account); + logRecord( + db, + DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE, + TABLE_ACCOUNTS, + accountId, + accounts, + callingUid); try { new RemoveAccountSession(accounts, response, account, expectActivityLaunch).bind(); } finally { @@ -1587,7 +1593,15 @@ public class AccountManagerService throw new SecurityException(msg); } UserAccounts accounts = getUserAccountsForCaller(); - logRecord(accounts, DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE, TABLE_ACCOUNTS); + SQLiteDatabase db = accounts.openHelper.getReadableDatabase(); + final long accountId = getAccountIdLocked(db, account); + logRecord( + db, + DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE, + TABLE_ACCOUNTS, + accountId, + accounts, + callingUid); long identityToken = clearCallingIdentity(); try { return removeAccountInternal(accounts, account, callingUid); |