From 2b437b27ecb8cb4c5b096e5d20993830c8b5b82a Mon Sep 17 00:00:00 2001 From: Nate Myren Date: Thu, 8 Apr 2021 08:14:15 -0700 Subject: Properly unparcel return from note/startOperation still to do: replace manual unparcelling with a C++ SyncNotedAppOp class Fixes: 184695771 Test: atest AppOpsLoggingTest Change-Id: Id1d9e72d9b2e5ba74b4782ca8d014235cf8513a1 --- libs/binder/IAppOpsService.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/binder/IAppOpsService.cpp b/libs/binder/IAppOpsService.cpp index 44aa55e3b3..d59f44562e 100644 --- a/libs/binder/IAppOpsService.cpp +++ b/libs/binder/IAppOpsService.cpp @@ -18,8 +18,8 @@ #include -#include #include +#include #include #include @@ -63,6 +63,8 @@ public: remote()->transact(NOTE_OPERATION_TRANSACTION, data, &reply); // fail on exception if (reply.readExceptionCode() != 0) return MODE_ERRORED; + // TODO b/184855056: extract to class + reply.readInt32(); reply.readByte(); return reply.readInt32(); } @@ -85,6 +87,8 @@ public: remote()->transact(START_OPERATION_TRANSACTION, data, &reply); // fail on exception if (reply.readExceptionCode() != 0) return MODE_ERRORED; + // TODO b/184855056: extract to class + reply.readInt32(); reply.readByte(); return reply.readInt32(); } -- cgit v1.2.3-59-g8ed1b