summaryrefslogtreecommitdiff
path: root/libs/binder/IAppOpsService.cpp
diff options
context:
space:
mode:
author Nate Myren <ntmyren@google.com> 2021-04-01 15:19:26 -0700
committer Nate Myren <ntmyren@google.com> 2021-04-01 15:19:26 -0700
commita0ae2f99a166b5adbf30542ae4cbe55b2276586f (patch)
treec0c49f0e46f6574941fea4e033588ba829a5a0b6 /libs/binder/IAppOpsService.cpp
parent2ce1b7e95170f000a25175423af7732abf0294ab (diff)
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
Diffstat (limited to 'libs/binder/IAppOpsService.cpp')
-rw-r--r--libs/binder/IAppOpsService.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}