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

Commit 9d089afd authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_ndk: BAD_TYPE on bad checkInterface

As is convention. Previously PERMISSION_DENIED which isn't as clear and
also isn't consistent.

Bug: 111445392
Test: ./ndk/runtests.sh (note, this passing just indicates that this
    path isn't exercised. Multi-process tests are still in progress).

Change-Id: Ic66a61e87b7066224fff5ed7423fcfb0d50ffa93
parent 4549f39c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ status_t ABBinder::onTransact(transaction_code_t code, const Parcel& data, Parce
                              binder_flags_t flags) {
    if (isUserCommand(code)) {
        if (!data.checkInterface(this)) {
            return STATUS_PERMISSION_DENIED;
            return STATUS_BAD_TYPE;
        }

        const AParcel in = AParcel::readOnly(this, &data);