Watchdog: break timeout loop via system fatal crash

Request system fatal crash via SysRq when a watchdog timeout loop is
detected. This escapes automatically the device hanging symptom and also
preserves context of system server in memory snapshot.

More details and background: go/break-sys-watchdog-loop

Bug: 141948707
Test: Insert 'sleep_forever()' to block BinderThreadMonitor to reproduce
      watchdog timeout.
Change-Id: I3ae4b33b0d7811764c61663ac3718311b55fd048
This commit is contained in:
Woody Lin
2020-05-20 23:24:09 +08:00
parent 5d2e89e03d
commit c1125934ec
6 changed files with 215 additions and 0 deletions

View File

@@ -19,3 +19,11 @@ sysprop_library {
api_packages: ["android.sysprop"],
vendor_available: false,
}
sysprop_library {
name: "com.android.sysprop.watchdog",
srcs: ["WatchdogProperties.sysprop"],
property_owner: "Platform",
api_packages: ["android.sysprop"],
vendor_available: false,
}