diff options
| author | 2024-12-18 13:21:09 -0800 | |
|---|---|---|
| committer | 2024-12-18 13:42:48 -0800 | |
| commit | e42c1ce78cab1f072cd0d4393e116ca3519a9385 (patch) | |
| tree | 3134ebcf34136613a5f797c0168a8278bc90c61b | |
| parent | d114955e23d5e94791a06857effc8ecf968e44bf (diff) | |
Handle onNullBinding in AccountManagerService
Bug: 370474434
Test: manual
Flag: EXEMPT bugfix
Change-Id: I276564f1443a4d7fa6bb998cf7072fcd5c7ff1fc
| -rw-r--r-- | services/core/java/com/android/server/accounts/AccountManagerService.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java index 3ce645158fe4..2192e1129f31 100644 --- a/services/core/java/com/android/server/accounts/AccountManagerService.java +++ b/services/core/java/com/android/server/accounts/AccountManagerService.java @@ -5253,6 +5253,22 @@ public class AccountManagerService } } + @Override + public void onNullBinding(ComponentName name) { + IAccountManagerResponse response = getResponseAndClose(); + if (response != null) { + try { + response.onError(AccountManager.ERROR_CODE_REMOTE_EXCEPTION, + "disconnected"); + } catch (RemoteException e) { + if (Log.isLoggable(TAG, Log.VERBOSE)) { + Log.v(TAG, "Session.onNullBinding: " + + "caught RemoteException while responding", e); + } + } + } + } + public abstract void run() throws RemoteException; public void onTimedOut() { |