Clear updated font files in safe mode.

Bug: 176939176
Bug: 181536798
Bug: 187190639
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Test: manually triggered safe mode and confirmed updated fonts are
      removed.
Change-Id: I946a7df383a27bbfda2931a916ca28d8ee14feb6
This commit is contained in:
Kohsuke Yatoh
2021-03-02 13:38:07 -08:00
parent a759abbe4b
commit d18a901b23
5 changed files with 67 additions and 34 deletions

View File

@@ -1804,7 +1804,7 @@ public final class SystemServer implements Dumpable {
t.traceEnd();
t.traceBegin("StartFontManagerService");
mSystemServiceManager.startService(FontManagerService.Lifecycle.class);
mSystemServiceManager.startService(new FontManagerService.Lifecycle(context, safeMode));
t.traceEnd();
t.traceBegin("StartTextServicesManager");