Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fb0fc6f authored by Ray Essick's avatar Ray Essick
Browse files

Preload sfplugin_ccodec.so to speed app startup

Bug: 133186424
Test: boot, volume control, monitor for known logcat patterns
Test: CtsMediaTestCases
Change-Id: I05e5b34224163de8fd6046d299a9381424c2c4e1
parent eefabdd0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -184,6 +184,12 @@ public class ZygoteInit {
        System.loadLibrary("android");
        System.loadLibrary("compiler_rt");
        System.loadLibrary("jnigraphics");

        try {
            System.loadLibrary("sfplugin_ccodec");
        } catch (Error | RuntimeException e) {
            // tolerate missing sfplugin_ccodec which is only present on Codec 2 devices
        }
    }

    native private static void nativePreloadAppProcessHALs();