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
diff --git a/libs/binder/IAppOpsService.cpp b/libs/binder/IAppOpsService.cpp
index 1897969..44aa55e 100644
--- a/libs/binder/IAppOpsService.cpp
+++ b/libs/binder/IAppOpsService.cpp
@@ -63,6 +63,7 @@
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 @@
remote()->transact(START_OPERATION_TRANSACTION, data, &reply);
// fail on exception
if (reply.readExceptionCode() != 0) return MODE_ERRORED;
+ reply.readByte();
return reply.readInt32();
}