summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2018-03-26 10:23:00 -0500
committerMark Salyzyn2018-04-18 16:02:05 -0500
commitd035dbbecf44191af398261b722d72026678eea8 (patch)
tree791494c18ef3cde456e80aee9c1da34ff4e74f0d /llkd/llkd.rc
parentf089e1403baa70864869aea4eb680c82f7debbb1 (diff)
downloadplatform-system-core-d035dbbecf44191af398261b722d72026678eea8.tar.gz
platform-system-core-d035dbbecf44191af398261b722d72026678eea8.tar.xz
platform-system-core-d035dbbecf44191af398261b722d72026678eea8.zip
llkd: default enabled for userdebug
If LLK_ENABLE_DEFAULT is false, then check "ro.llk.enable" for "eng", also the default value if not set, and then check if userdebug build to establish a default of true for enable. Same for ro.khungtask.enable. Test: llkd_unit_test report eng status on "userdebug" or "user" builds Bug: 33808187 Bug: 72838192 Change-Id: I2adb23c7629dccaa2856c50bccbf4e363703c82c
Diffstat (limited to 'llkd/llkd.rc')
-rw-r--r--llkd/llkd.rc34
1 files changed, 32 insertions, 2 deletions
diff --git a/llkd/llkd.rc b/llkd/llkd.rc
index a257e76e1..f762a5ced 100644
--- a/llkd/llkd.rc
+++ b/llkd/llkd.rc
@@ -1,11 +1,41 @@
1# eng default for ro.llk.enable and ro.khungtask.enable
2on property:ro.debuggable=*
3 setprop llk.enable ${ro.llk.enable:-0}
4 setprop khungtask.enable ${ro.khungtask.enable:-0}
5
6on property:ro.debuggable=1
7 setprop llk.enable ${ro.llk.enable:-1}
8 setprop khungtask.enable ${ro.khungtask.enable:-1}
9
10on property:ro.llk.enable=eng
11 setprop llk.enable ${ro.debuggable:-0}
12
13on property:ro.khungtask.enable=eng
14 setprop khungtask.enable ${ro.debuggable:-0}
15
16on property:llk.enable=1
17 setprop llk.enable true
18
19on property:llk.enable=0
20 setprop llk.enable false
21
22on property:khungtask.enable=1
23 setprop khungtask.enable true
24
25on property:khungtask.enable=0
26 setprop khungtask.enable false
27
1# Configure [khungtaskd] 28# Configure [khungtaskd]
2on property:ro.khungtask.enable=true 29on property:khungtask.enable=true
3 write /proc/sys/kernel/hung_task_timeout_secs ${ro.khungtask.timeout:-720} 30 write /proc/sys/kernel/hung_task_timeout_secs ${ro.khungtask.timeout:-720}
4 write /proc/sys/kernel/hung_task_warnings 65535 31 write /proc/sys/kernel/hung_task_warnings 65535
5 write /proc/sys/kernel/hung_task_check_count 65535 32 write /proc/sys/kernel/hung_task_check_count 65535
6 write /proc/sys/kernel/hung_task_panic 1 33 write /proc/sys/kernel/hung_task_panic 1
7 34
8on property:ro.llk.enable=true 35on property:khungtask.enable=false
36 write /proc/sys/kernel/hung_task_panic 0
37
38on property:llk.enable=true
9 start llkd 39 start llkd
10 40
11service llkd /system/bin/llkd 41service llkd /system/bin/llkd