Merge "Allow pausing Watchdog on the current thread" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3dc28cb1dc
@@ -1167,9 +1167,12 @@ public final class SystemServer {
|
||||
if (!mOnlyCore) {
|
||||
traceBeginAndSlog("UpdatePackagesIfNeeded");
|
||||
try {
|
||||
Watchdog.getInstance().pauseWatchingCurrentThread("dexopt");
|
||||
mPackageManagerService.updatePackagesIfNeeded();
|
||||
} catch (Throwable e) {
|
||||
reportWtf("update packages", e);
|
||||
} finally {
|
||||
Watchdog.getInstance().resumeWatchingCurrentThread("dexopt");
|
||||
}
|
||||
traceEnd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user