llkd.rc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # eng default for ro.llk.enable and ro.khungtask.enable
  2. on property:ro.debuggable=*
  3. setprop llk.enable ${ro.llk.enable:-0}
  4. setprop khungtask.enable ${ro.khungtask.enable:-0}
  5. on property:ro.llk.enable=true
  6. setprop llk.enable true
  7. on property:llk.enable=1
  8. setprop llk.enable true
  9. on property:llk.enable=0
  10. setprop llk.enable false
  11. on property:ro.khungtask.enable=true
  12. setprop khungtask.enable true
  13. on property:khungtask.enable=1
  14. setprop khungtask.enable true
  15. on property:khungtask.enable=0
  16. setprop khungtask.enable false
  17. # Configure [khungtaskd]
  18. on property:khungtask.enable=true
  19. write /proc/sys/kernel/hung_task_timeout_secs ${ro.khungtask.timeout:-720}
  20. write /proc/sys/kernel/hung_task_warnings 65535
  21. write /proc/sys/kernel/hung_task_check_count 65535
  22. write /proc/sys/kernel/hung_task_panic 1
  23. on property:khungtask.enable=false
  24. write /proc/sys/kernel/hung_task_panic 0
  25. on property:llk.enable=true
  26. start llkd-${ro.debuggable:-0}
  27. service llkd-0 /system/bin/llkd
  28. class late_start
  29. disabled
  30. user llkd
  31. group llkd readproc
  32. capabilities KILL IPC_LOCK
  33. file /dev/kmsg w
  34. file /proc/sysrq-trigger w
  35. writepid /dev/cpuset/system-background/tasks