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

Commit a124bb85 authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "libbinder_ndk: warning for transact on local objs" am: 7ee24369 am: 92336079

am: 0f20c9f9

Change-Id: I907394a4cf9cfd73bb8aae0a0464815a49e46863
parents 981ce231 0f20c9f9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -285,6 +285,10 @@ binder_status_t AIBinder_prepareTransaction(AIBinder* binder, AParcel** in) {
        return EX_ILLEGAL_STATE;
    }

    if (!binder->isRemote()) {
        LOG(WARNING) << "A binder object at " << binder << " is being transacted on, however, this object is in the same process as its proxy. Transacting with this binder is expensive compared to just calling the corresponding functionality in the same process.";
    }

    *in = new AParcel(binder);
    binder_status_t status = (**in)->writeInterfaceToken(clazz->getInterfaceDescriptor());
    if (status != EX_NONE) {