Merge "Pause watchdog triggering on the main thread during OtaDexoptService" into qt-dev

This commit is contained in:
Zimuzo Ezeozue
2019-05-31 16:14:17 +00:00
committed by Android (Google) Code Review

View File

@@ -749,10 +749,12 @@ public final class SystemServer {
if (!disableOtaDexopt) {
traceBeginAndSlog("StartOtaDexOptService");
try {
Watchdog.getInstance().pauseWatchingCurrentThread("moveab");
OtaDexoptService.main(mSystemContext, mPackageManagerService);
} catch (Throwable e) {
reportWtf("starting OtaDexOptService", e);
} finally {
Watchdog.getInstance().resumeWatchingCurrentThread("moveab");
traceEnd();
}
}