Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d6cdfb7 authored by Steve Fung's avatar Steve Fung
Browse files

Update crash_reporter and metrics rc files to trigger on post-fs-data

The /data directory isn't guaranteed to be mounted during the
"on boot" trigger, so switch them to using "on post-fs-data".

Bug: 24941965
Change-Id: Iee84ca0e934967cff7bc4d968d9939d398c73980
parent fcc93587
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ on property:crash_reporter.coredump.enabled=1
on property:crash_reporter.coredump.enabled=0
    write /proc/sys/kernel/core_pattern "core"

on boot
on post-fs-data
    # Allow catching multiple unrelated concurrent crashes, but use a finite
    # number to prevent infinitely recursing on crash handling.
    write /proc/sys/kernel/core_pipe_limit 4
+1 −1
Original line number Diff line number Diff line
on boot
on post-fs-data
    mkdir /data/misc/metrics 0770 system system

service metrics_daemon /system/bin/metrics_daemon --uploader -nodaemon