crash_reporter: Fix a couple crash_sender issues
- Added grep to the list of required modules. - Run crash_sender with the 'system' group to allow calls to metrics_client to read both metrics files owned by system and crash_reporter files owned by root. - Fix periodic_scheduler's check delay to actually be 5 minutes. Bug: 23122375 Change-Id: Iff214c4e591a676a516162a92ea5aedcf0824f46
This commit is contained in:
parent
c372a77862
commit
4a1bc3824e
|
@ -81,7 +81,7 @@ include $(CLEAR_VARS)
|
|||
LOCAL_MODULE := crash_sender
|
||||
LOCAL_MODULE_CLASS := EXECUTABLES
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)
|
||||
LOCAL_REQUIRED_MODULES := curl periodic_scheduler
|
||||
LOCAL_REQUIRED_MODULES := curl grep periodic_scheduler
|
||||
LOCAL_SRC_FILES := crash_sender
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
|
|
|
@ -27,3 +27,4 @@ service crash_reporter /system/bin/crash_reporter --init
|
|||
service crash_sender /system/bin/periodic_scheduler 3600 14400 crash_sender \
|
||||
/system/bin/crash_sender
|
||||
class late_start
|
||||
group system
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
set -e -u
|
||||
|
||||
SCRIPT_NAME="$(basename "$0")"
|
||||
#CHECK_DELAY=300 # Check every 5 minutes.
|
||||
CHECK_DELAY=15 # Check every 5 minutes.
|
||||
CHECK_DELAY=300 # Check every 5 minutes.
|
||||
KILL_DELAY=10 # How long to let the job clean up after a timeout.
|
||||
# Let the unittests override.
|
||||
: ${SPOOL_DIR:=/data/misc/crash_reporter/spool/cron-lite}
|
||||
|
|
Loading…
Reference in New Issue