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

Commit c360a109 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_ndk: Fix 'isRemote' value for Bn*.

Bn* is not remote (it's local).

This wasn't noticed before since the AIDL generated method 'associate'
always wrapped a proxy, and since a wrapped Bn object will always have
a null remoteBinder, it would properly show that it was local even
though it was wrapped.

Bug: 127336441
Test: atest android.binder.cts
Change-Id: Ic4d96822a355e88bc8f3dbbc8fa602835653139e
parent 304f9d37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ class BnCInterface : public INTERFACE {

    SpAIBinder asBinder() override;

    bool isRemote() override { return true; }
    bool isRemote() override { return false; }

   protected:
    /**