summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-04-06 18:34:07 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-04-06 18:34:07 +0000
commitddae80ef83667d87e0ac8e83f795d1bb45f9bbb6 (patch)
tree0723f7f12929165b760db824cf62f909a0fad6d5
parent87f1e3fe07ac72cb6e8d94fe0ccf551bbcc5b2f2 (diff)
parenta0ae2f99a166b5adbf30542ae4cbe55b2276586f (diff)
Merge "Update native AppOpsService to unpack SyncNotedAppOp" into sc-dev
-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();
}