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

Commit f00d2348 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder_ndk: dead binder when associating dead binder" am: b46521f5...

Merge "libbinder_ndk: dead binder when associating dead binder" am: b46521f5 am: 54fffc5b am: d15e50b3 am: ce2ff0a9

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

Change-Id: Iaaf3134984826358d7fc5d753f50710b2f421d19
parents 54d7de2a ce2ff0a9
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -99,8 +99,14 @@ bool AIBinder::associateClass(const AIBinder_Class* clazz) {

    String8 descriptor(getBinder()->getInterfaceDescriptor());
    if (descriptor != newDescriptor) {
        if (getBinder()->isBinderAlive()) {
            LOG(ERROR) << __func__ << ": Expecting binder to have class '" << newDescriptor.c_str()
                       << "' but descriptor is actually '" << descriptor.c_str() << "'.";
        } else {
            // b/155793159
            LOG(ERROR) << __func__ << ": Cannot associate class '" << newDescriptor.c_str()
                       << "' to dead binder.";
        }
        return false;
    }