diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 0a1a5408..95772863 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -275,9 +275,22 @@ service ssr_setup /system/bin/ssr_setup oneshot disabled +service ss_ramdump /system/bin/subsystem_ramdump + class main + user system + group system + disabled + on property:persist.sys.ssr.restart_level=* start ssr_setup +on property:persist.sys.ssr.enable_ramdumps=1 + write /sys/module/subsystem_restart/parameters/enable_ramdumps 1 + start ss_ramdump + +on property:persist.sys.ssr.enable_ramdumps=0 + write /sys/module/subsystem_restart/parameters/enable_ramdumps 0 + on property:sys.boot_completed=1 write /dev/kmsg "Boot completed "