Merge "Add a service for reporting runtime debug info" am: 08cbafefdc am: 20547cf20d

am: b5354b7ca9

Change-Id: I2395418164f3dbcb04bc18647c6cccf7a025c1b4
This commit is contained in:
Neil Fuller
2018-12-04 00:56:36 -08:00
committed by android-build-merger
3 changed files with 221 additions and 0 deletions

View File

@@ -1503,6 +1503,14 @@ public final class SystemServer {
}
traceEnd();
traceBeginAndSlog("RuntimeService");
try {
ServiceManager.addService("runtime", new RuntimeService(context));
} catch (Throwable e) {
reportWtf("starting RuntimeService", e);
}
traceEnd();
// timezone.RulesManagerService will prevent a device starting up if the chain of trust
// required for safe time zone updates might be broken. RuleManagerService cannot do
// this check when mOnlyCore == true, so we don't enable the service in this case.