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

Commit cb318e88 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

libbinder: Export older version of enforceInterface symbol

libbinder's enforceInterface function has changed, and even though the API
is backwards-compatible, the ABI isn't. Proprietaries linked with an older
(pre-gb) libbinder.so will fail without this

Change-Id: Id3c81a11ad37d062184cb3b2991007ce425e1025
parent 670e1c7b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ public:
    // passed in.
    bool                enforceInterface(const String16& interface,
                                         IPCThreadState* threadState = NULL) const;
    bool                enforceInterface(const String16& interface) const;
    bool                checkInterface(IBinder*) const;

    void                freeData();
+7 −1
Original line number Diff line number Diff line
@@ -452,9 +452,15 @@ status_t Parcel::writeInterfaceToken(const String16& interface)
    return writeString16(interface);
}

bool Parcel::enforceInterface(const String16& interface) const
{
	return enforceInterface(interface,NULL);
}


bool Parcel::checkInterface(IBinder* binder) const
{
    return enforceInterface(binder->getInterfaceDescriptor());
    return enforceInterface(binder->getInterfaceDescriptor(),NULL);
}

bool Parcel::enforceInterface(const String16& interface,