summaryrefslogtreecommitdiff
path: root/Binder.cpp
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-05-08 18:54:22 -0700
committerDianne Hackborn <hackbod@google.com>2012-05-09 14:53:26 -0700
commit86a50a691c3e60a47a4b69e8fb7db1c3ae83d205 (patch)
tree21aecadf393d65f68d2b1a29e7b23c367c6c4878 /Binder.cpp
parent9ce74c631aecf45eb6691fe40b28ce224bda3bf2 (diff)
downloadlibhwbinder-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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Binder.cpp b/Binder.cpp
index e20d8a3..1f21f9c 100644
--- a/Binder.cpp
+++ b/Binder.cpp
@@ -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;
}