From dceb04a94f33971e2021183bb2007f9954b416f3 Mon Sep 17 00:00:00 2001 From: Andrew Chant Date: Thu, 6 Jul 2017 16:57:24 -0700 Subject: [PATCH] Enable ramdump on debug.htc.ramdump.crash Enable ramdump on a live system by enabling the property debug.htc.ramdump.crash. This property is protected by selinux policy with the label ramdump_prop. Bug: 62437259 Test: forced ramdump from Ramdump Uploader app. Change-Id: Ifa9b7cf22749c0686e7d01ca2a4fc10dbd4b729c --- init.hardware.diag.rc.userdebug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.hardware.diag.rc.userdebug b/init.hardware.diag.rc.userdebug index 69219f8a..16d7e834 100644 --- a/init.hardware.diag.rc.userdebug +++ b/init.hardware.diag.rc.userdebug @@ -381,3 +381,6 @@ service cnss_diag_txt /vendor/bin/cnss_diag -s -f -m /data/vendor/wifi/cnss_diag group system disabled oneshot + +on property:debug.htc.ramdump.crash=true + write /proc/sysrq-trigger "c"