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

Commit 4b466a81 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Clarify binder RPC error message with linkToDeath" am: a718db26 am:...

Merge "Clarify binder RPC error message with linkToDeath" am: a718db26 am: 7b4342a8 am: 3d6715c9

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2426275



Change-Id: I73b82891422531876d83bfa37c65d929831d3664
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b290a139 3d6715c9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -388,7 +388,8 @@ status_t BpBinder::linkToDeath(
{
    if (isRpcBinder()) {
        if (rpcSession()->getMaxIncomingThreads() < 1) {
            ALOGE("Cannot register a DeathRecipient without any incoming connections.");
            ALOGE("Cannot register a DeathRecipient without any incoming threads. Need to set max "
                  "incoming threads to a value greater than 0 before calling linkToDeath.");
            return INVALID_OPERATION;
        }
    } else if constexpr (!kEnableKernelIpc) {