diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-05-08 18:54:22 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-05-09 14:53:26 -0700 |
commit | 86a50a691c3e60a47a4b69e8fb7db1c3ae83d205 (patch) | |
tree | 21aecadf393d65f68d2b1a29e7b23c367c6c4878 /Binder.cpp | |
parent | 9ce74c631aecf45eb6691fe40b28ce224bda3bf2 (diff) | |
download | libhwbinder-86a50a691c3e60a47a4b69e8fb7db1c3ae83d205.tar.gz |
Add callback hack to find out when to reload system properties.
Every IBinder object can accept a new transaction to tell it that
it might want to reload system properties, and in the process
anyone can register a callback to be executed when this happens.
Use this to reload the trace property.
This is very much ONLY for debugging.
Change-Id: I55c67c46f8f3fa9073bef0dfaab4577ed1d47eb4
Diffstat (limited to 'Binder.cpp')
-rw-r--r-- | Binder.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -17,6 +17,7 @@ #include <binder/Binder.h> #include <utils/Atomic.h> +#include <utils/misc.h> #include <binder/BpBinder.h> #include <binder/IInterface.h> #include <binder/Parcel.h> @@ -199,6 +200,12 @@ status_t BBinder::onTransact( } return dump(fd, args); } + + case SYSPROPS_TRANSACTION: { + report_sysprop_change(); + return NO_ERROR; + } + default: return UNKNOWN_TRANSACTION; } |