Loading core/java/com/android/internal/os/RuntimeInit.java +3 −1 Original line number Diff line number Diff line Loading @@ -203,13 +203,15 @@ public class RuntimeInit { public static void preForkInit() { if (DEBUG) Slog.d(TAG, "Entered preForkInit."); RuntimeInit.enableDdms(); // TODO(b/142019040#comment13): Decide whether to load the default instance eagerly, i.e. // MimeMap.setDefault(DefaultMimeMapFactory.create()); /* * Replace libcore's minimal default mapping between MIME types and file * extensions with a mapping that's suitable for Android. Android's mapping * contains many more entries that are derived from IANA registrations but * with several customizations (extensions, overrides). */ MimeMap.setDefault(DefaultMimeMapFactory.create()); MimeMap.setDefaultSupplier(DefaultMimeMapFactory::create); } @UnsupportedAppUsage Loading Loading
core/java/com/android/internal/os/RuntimeInit.java +3 −1 Original line number Diff line number Diff line Loading @@ -203,13 +203,15 @@ public class RuntimeInit { public static void preForkInit() { if (DEBUG) Slog.d(TAG, "Entered preForkInit."); RuntimeInit.enableDdms(); // TODO(b/142019040#comment13): Decide whether to load the default instance eagerly, i.e. // MimeMap.setDefault(DefaultMimeMapFactory.create()); /* * Replace libcore's minimal default mapping between MIME types and file * extensions with a mapping that's suitable for Android. Android's mapping * contains many more entries that are derived from IANA registrations but * with several customizations (extensions, overrides). */ MimeMap.setDefault(DefaultMimeMapFactory.create()); MimeMap.setDefaultSupplier(DefaultMimeMapFactory::create); } @UnsupportedAppUsage Loading