Home | History | Annotate | Download | only in crash_reporter
      1 on property:crash_reporter.coredump.enabled=1
      2     write /proc/sys/kernel/core_pattern \
      3           "|/system/bin/crash_reporter --user=%P:%s:%u:%g:%e"
      4 
      5 on property:crash_reporter.coredump.enabled=0
      6     write /proc/sys/kernel/core_pattern "core"
      7 
      8 on post-fs-data
      9     # Allow catching multiple unrelated concurrent crashes, but use a finite
     10     # number to prevent infinitely recursing on crash handling.
     11     write /proc/sys/kernel/core_pipe_limit 4
     12 
     13     # Remove any previous orphaned locks.
     14     rmdir /data/misc/crash_reporter/lock/crash_sender
     15 
     16     # Remove any previous run files.
     17     rm /data/misc/crash_reporter/run/kernel-crash-detected
     18     rmdir /data/misc/crash_reporter/run
     19 
     20     # Create crash directories.
     21     # These directories are group-writable by root so that crash_reporter can
     22     # still access them when it switches users.
     23     mkdir /data/misc/crash_reporter 0770 root root
     24     mkdir /data/misc/crash_reporter/crash 0770 root root
     25     mkdir /data/misc/crash_reporter/lock 0700 root root
     26     mkdir /data/misc/crash_reporter/log 0700 root root
     27     mkdir /data/misc/crash_reporter/run 0700 root root
     28     mkdir /data/misc/crash_reporter/tmp 0770 root root
     29 
     30 service crash_reporter /system/bin/crash_reporter --init
     31     class late_start
     32     oneshot
     33 
     34 service crash_sender /system/bin/periodic_scheduler 3600 14400 crash_sender \
     35     /system/bin/crash_sender
     36     class late_start
     37     group system
     38