summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/SystemServer.java
diff options
context:
space:
mode:
authorGavin Corkery <gavincorkery@google.com>2019-12-12 19:06:47 +0000
committerGavin Corkery <gavincorkery@google.com>2020-01-08 22:17:00 +0000
commit69395659e3c25bd2338d13202dbe025debbb7c01 (patch)
tree4baab9121a8a8d68eca0ec4a193458685adb00fe /services/java/com/android/server/SystemServer.java
parente8fd15b2cc271502e189c767bbb50febced5e8ec (diff)
Integrate Rescue Party with Package Watchdog
Integrate Rescue Party as an observer for Package Watchdog, for managing package failures. Rescue Party will be a persistent observer, meaning it may receive failure calls for packages it has not explicitly asked to observe. Remove app failure calls and thresholding logic from Rescue Party. Remove obsolete Rescue Party tests and add persistent observer tests to PackageWatchdogTest. Test: atest PackageWatchdogTest Test: atest RescuePartyTest Test: atest StagedRollbackTest Bug: 136135457 Change-Id: I55ec0de48acd5434255811feba758d38c9304478
Diffstat (limited to 'services/java/com/android/server/SystemServer.java')
-rw-r--r--services/java/com/android/server/SystemServer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index bfec51c92651..b6a8ca447213 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -751,6 +751,7 @@ public final class SystemServer {
// Now that we have the bare essentials of the OS up and running, take
// note that we just booted, which might send out a rescue party if
// we're stuck in a runtime restart loop.
+ RescueParty.registerHealthObserver(mSystemContext);
RescueParty.noteBoot(mSystemContext);
// Manages LEDs and display backlight so we need it to bring up the display.