diff options
author | Mark Salyzyn <salyzyn@google.com> | 2015-05-26 14:57:13 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2015-06-02 15:28:36 -0700 |
commit | 49ed105fd91677f7c87417890bf7441146953fff (patch) | |
tree | c9f795ed2f18d558f8b00451434ccde81730b4b5 /logd/Android.mk | |
parent | cdb468abb38bb75aaad5d4c6699a824559cf272a (diff) | |
download | system_core-49ed105fd91677f7c87417890bf7441146953fff.zip system_core-49ed105fd91677f7c87417890bf7441146953fff.tar.gz system_core-49ed105fd91677f7c87417890bf7441146953fff.tar.bz2 |
init.rc: logd: Add logpersistd (nee logcatd)
(cherry pick from commit 100658c303919d8f69c76f6f25eac376795712f0)
- logpersistd is defined as a thread or process in the context of the
logd domain. Here we define logpersistd as logcat -f in logd domain
and call it logcatd to represent its service mechanics.
- Use logcatd to manage content in /data/misc/logd/ directory.
- Only turn on for persist.logd.logpersistd = logcatd.
- Add logpersist.start, logpersist.stop and logpersist.cat debug
class executables, thus only in the eng and userdebug builds.
ToDo: Wish to add Developer Options menu to turn this feature on or
off, complicated by the fact that user builds have no tools with
access rights to /data/misc/logd.
Bug: 19608716
Change-Id: I57ad757f121c473d04f9fabe9d4820a0eca06f31
Diffstat (limited to 'logd/Android.mk')
-rw-r--r-- | logd/Android.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/logd/Android.mk b/logd/Android.mk index 73da8dc..615d030 100644 --- a/logd/Android.mk +++ b/logd/Android.mk @@ -41,4 +41,15 @@ LOCAL_CFLAGS := -Werror $(event_flag) include $(BUILD_EXECUTABLE) +include $(CLEAR_VARS) + +LOCAL_MODULE := logpersist.start +LOCAL_MODULE_TAGS := debug +LOCAL_MODULE_CLASS := EXECUTABLES +LOCAL_MODULE_PATH := $(bin_dir) +LOCAL_SRC_FILES := logpersist +ALL_TOOLS := logpersist.start logpersist.stop logpersist.cat +LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(filter-out $(LOCAL_MODULE),$(ALL_TOOLS)),ln -sf $(LOCAL_MODULE) $(TARGET_OUT)/bin/$(t);) +include $(BUILD_PREBUILT) + include $(call first-makefiles-under,$(LOCAL_PATH)) |