diff options
| author | 2021-04-08 21:57:20 +0000 | |
|---|---|---|
| committer | 2021-04-08 21:57:20 +0000 | |
| commit | 875d75d3e8817d4f736dff93bd865217a04fcffb (patch) | |
| tree | 44a662d063a81dab7fc77a1627520a60eefa3b10 | |
| parent | 2df6be75f3404b7d9a44851261df6bbe942335aa (diff) | |
| parent | 2b437b27ecb8cb4c5b096e5d20993830c8b5b82a (diff) | |
Merge "Properly unparcel return from note/startOperation" into sc-dev
| -rw-r--r-- | libs/binder/IAppOpsService.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <binder/IAppOpsService.h> -#include <utils/Log.h> #include <binder/Parcel.h> +#include <utils/Log.h> #include <utils/String8.h> #include <optional> @@ -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(); } |