summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-08-05 23:28:54 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-08-05 23:28:54 +0000
commitac7caa95250cf1a6a72b15b140b5df947600282c (patch)
treed4d9b1666f9de40baa982bd7107f545b3924c98e /libs/binder/Parcel.cpp
parent9759952af54d91c2be53a8d46ea779d6603f9195 (diff)
parent2a9f32f1a21e012dfaddc571a741658eaef0d9da (diff)
Merge "Set stability for unset interfaces."
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r--libs/binder/Parcel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 51ca7b4f02..a2333ae07e 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -167,6 +167,8 @@ static void release_object(const sp<ProcessState>& proc,
status_t Parcel::finishFlattenBinder(
const sp<IBinder>& /*binder*/, const flat_binder_object& flat)
{
+ // internal::Stability::tryMarkCompilationUnit(binder.get());
+
status_t status = writeObject(flat, false);
if (status != OK) return status;
@@ -183,11 +185,11 @@ status_t Parcel::finishUnflattenBinder(
// status_t status = readInt32(&stability);
// if (status != OK) return status;
- // if (!internal::Stability::check(stability, mRequiredStability)) {
+ // if (binder != nullptr && !internal::Stability::check(stability, mRequiredStability)) {
// return BAD_TYPE;
// }
- // status = internal::Stability::set(binder.get(), stability);
+ // status = internal::Stability::set(binder.get(), stability, true /*log*/);
// if (status != OK) return status;
*out = binder;