Update binderDied() error description to spell out the possibilities for those unfamiliar with Android internals. (#11628)

Callers are frequently confused by this message and waste time looking for problems in the client when the root cause is simply a server crash. See b/371447460 for more context.
This commit is contained in:
John Cormie 2024-10-24 10:52:44 -07:00 committed by GitHub
parent b65cbf5081
commit 46c1b387fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ public abstract class BinderTransport
@Override
public synchronized void binderDied() {
shutdownInternal(Status.UNAVAILABLE.withDescription("binderDied"), true);
shutdownInternal(Status.UNAVAILABLE.withDescription("Peer process crashed, exited or was killed (binderDied)"), true);
}
@GuardedBy("this")