From a0ae2f99a166b5adbf30542ae4cbe55b2276586f Mon Sep 17 00:00:00 2001 From: Nate Myren Date: Thu, 1 Apr 2021 15:19:26 -0700 Subject: Update native AppOpsService to unpack SyncNotedAppOp Still return only mode, but unpack the "null attribution tag" byte from SyncNotedAppOp first. Bug: 184111263 Test: Presubmit Change-Id: I53cf9df803b23c30b0721998ff1ff18d928afd75 --- libs/binder/IAppOpsService.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/binder/IAppOpsService.cpp') diff --git a/libs/binder/IAppOpsService.cpp b/libs/binder/IAppOpsService.cpp index 18979697f8..44aa55e3b3 100644 --- a/libs/binder/IAppOpsService.cpp +++ b/libs/binder/IAppOpsService.cpp @@ -63,6 +63,7 @@ public: remote()->transact(NOTE_OPERATION_TRANSACTION, data, &reply); // fail on exception if (reply.readExceptionCode() != 0) return MODE_ERRORED; + reply.readByte(); return reply.readInt32(); } @@ -84,6 +85,7 @@ public: remote()->transact(START_OPERATION_TRANSACTION, data, &reply); // fail on exception if (reply.readExceptionCode() != 0) return MODE_ERRORED; + reply.readByte(); return reply.readInt32(); } -- cgit v1.2.3-59-g8ed1b