From a86a3569411faff2bff8dc08c6677646d91f2f7e Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 1 Aug 2019 23:28:34 +0000 Subject: Reland "Binder: support storing interface stability" This reverts commit e9495af181d56a4ba359539e3ff07d092d6d0a51. Relanding original change 5981dcbe4a6701c1776e9ece08aa83fe01655da1 Reason for revert: reland feature Change-Id: I4be143706996ba7ab19a3e1446fece7b5d18f205 --- libs/binder/Binder.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/binder/Binder.cpp') diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp index bdf0f8ef9f..268c85e096 100644 --- a/libs/binder/Binder.cpp +++ b/libs/binder/Binder.cpp @@ -124,6 +124,7 @@ status_t BBinder::transact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { data.setDataPosition(0); + data.setTransactingBinder(this); status_t err = NO_ERROR; switch (code) { @@ -135,8 +136,10 @@ status_t BBinder::transact( break; } + // In case this is being transacted on in the same process. if (reply != nullptr) { reply->setDataPosition(0); + reply->setTransactingBinder(this); } return err; -- cgit v1.2.3-59-g8ed1b