diff options
| author | 2024-12-19 09:11:16 -0800 | |
|---|---|---|
| committer | 2024-12-19 09:11:16 -0800 | |
| commit | af308b9244fb4fb0e29cf30ceda38ed56341d549 (patch) | |
| tree | d377b902e805f82eec7f34f907fa87a0bbc51bee | |
| parent | 253d3033966f7beaab76612e83ff7e9552fd2018 (diff) | |
| parent | e42c1ce78cab1f072cd0d4393e116ca3519a9385 (diff) | |
Merge "Handle onNullBinding in AccountManagerService" into main
| -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 719928b8e582..09440e0e997d 100644 --- a/services/core/java/com/android/server/accounts/AccountManagerService.java +++ b/services/core/java/com/android/server/accounts/AccountManagerService.java @@ -5266,6 +5266,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() { |