Merge "Load preinstalled sytem font if fs-verity is not supported"

This commit is contained in:
TreeHugger Robot
2023-06-28 12:58:04 +00:00
committed by Android (Google) Code Review

View File

@@ -269,6 +269,9 @@ public final class FontManagerService extends IFontManager.Stub {
synchronized (mUpdatableFontDirLock) {
mUpdatableFontDir = createUpdatableFontDir();
if (mUpdatableFontDir == null) {
// If fs-verity is not supported, load preinstalled system font map and use it for
// all apps.
Typeface.loadPreinstalledSystemFontMap();
setSerializedFontMap(serializeSystemServerFontMap());
return;
}