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

Commit f24415a9 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge changes I4f475748,I633b634f

* changes:
  libbinder_ndk: more descriptive prune error
  libbinder: clarify RPC binder over kernel message
parents bc1cec09 6d9a2928
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -233,7 +233,7 @@ status_t Parcel::flattenBinder(const sp<IBinder>& binder) {
                ALOGE("null proxy");
                ALOGE("null proxy");
            } else {
            } else {
                if (proxy->isRpcBinder()) {
                if (proxy->isRpcBinder()) {
                    ALOGE("Sending a socket binder over RPC is prohibited");
                    ALOGE("Sending a socket binder over kernel binder is prohibited");
                    return INVALID_OPERATION;
                    return INVALID_OPERATION;
                }
                }
            }
            }
+2 −1
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@
#include <android-base/logging.h>
#include <android-base/logging.h>


using ::android::status_t;
using ::android::status_t;
using ::android::statusToString;
using ::android::binder::Status;
using ::android::binder::Status;


AStatus* AStatus_newOk() {
AStatus* AStatus_newOk() {
@@ -126,7 +127,7 @@ binder_status_t PruneStatusT(status_t status) {
            return STATUS_UNKNOWN_ERROR;
            return STATUS_UNKNOWN_ERROR;


        default:
        default:
            LOG(WARNING) << __func__ << ": Unknown status_t (" << status
            LOG(WARNING) << __func__ << ": Unknown status_t (" << statusToString(status)
                         << ") pruned into STATUS_UNKNOWN_ERROR";
                         << ") pruned into STATUS_UNKNOWN_ERROR";
            return STATUS_UNKNOWN_ERROR;
            return STATUS_UNKNOWN_ERROR;
    }
    }