summaryrefstree
path: root/system/init.miui.nativedebug.rc
blob: 3077543cf431c42e3be5f9a84f86fc4b63ebe35f (plain)
1
2
3
4
5
6
7
8
9
10
11
# nativedebug rc

on property:sys.miui.ndcd=on
    mkdir /data/system/nativedebug/core 0777 root root
    chmod 0777 /data/system/nativedebug/core
    restorecon /data/system/nativedebug/core
    write /proc/sys/kernel/core_pattern "|/system/bin/micd %e %p"

on property:sys.miui.ndcd=off
    write /proc/sys/kernel/core_pattern "/dev/null"