summaryrefstree
path: root/bootimg/ramdisk/init.watchdog.rc
blob: 3f0a75af698126bbd69ca7d6ab8e4ad441e1ba37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Originally device/intel/common/watchdog/init.field_watchdog.rc

service watchdogd /sbin/watchdogd 60 30
    class core
    oneshot
    seclabel u:r:watchdogd:s0

# Reset the watchdog counter once boot is completed
on property:sys.boot_completed=1
    write /sys/devices/virtual/misc/watchdog/counter "0"

on property:init.svc.droidboot=running
    write /sys/devices/virtual/misc/watchdog/counter "0"

on property:init.svc.charger_app=running
    write /sys/devices/virtual/misc/watchdog/counter "0"