summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libsysutils/Android.mk1
-rw-r--r--libsysutils/EventLogTags.logtags4
-rw-r--r--libsysutils/src/FrameworkListener.cpp1
3 files changed, 6 insertions, 0 deletions
diff --git a/libsysutils/Android.mk b/libsysutils/Android.mk
index cccf484..57cc313 100644
--- a/libsysutils/Android.mk
+++ b/libsysutils/Android.mk
@@ -12,6 +12,7 @@ LOCAL_SRC_FILES:= \
src/FrameworkCommand.cpp \
src/SocketClient.cpp \
src/ServiceManager.cpp \
+ EventLogTags.logtags
LOCAL_MODULE:= libsysutils
diff --git a/libsysutils/EventLogTags.logtags b/libsysutils/EventLogTags.logtags
new file mode 100644
index 0000000..27785f0
--- /dev/null
+++ b/libsysutils/EventLogTags.logtags
@@ -0,0 +1,4 @@
+# See system/core/logcat/event.logtags for a description of the format of this file.
+
+# FrameworkListener dispatchCommand overflow
+78001 dispatchCommand_overflow
diff --git a/libsysutils/src/FrameworkListener.cpp b/libsysutils/src/FrameworkListener.cpp
index 3416ceb..90be754 100644
--- a/libsysutils/src/FrameworkListener.cpp
+++ b/libsysutils/src/FrameworkListener.cpp
@@ -159,6 +159,7 @@ out:
return;
overflow:
+ LOG_EVENT_INT(78001, cli->getUid());
cli->sendMsg(500, "Command too long", false);
goto out;
}