INNER CODE UNIT · Java

initEntryPoint

termux/termux-x11 · lorie/src/main/java/com/termux/x11/CmdEntryPoint.java:189

    private static void initEntryPoint() {
        ctx = createContext();

        String path = "lib/" + Build.SUPPORTED_ABIS[0] + "/libXlorie.so";
        ClassLoader loader = CmdEntryPoint.class.getClassLoader();
        URL res = loader != null ? loader.getResource(path) : null;
        String libPath = res != null ? res.getFile().replace("file:", "") : null;
        if (libPath != null) {
            try {
                System.load(libPath);
            } catch (Exception e) {
                Log.e("CmdEntryPoint", "Failed to dlopen " + libPath, e);
                System.err.println("Failed to load native library. Did you install the right apk? Try the universal one.");
                System.exit(134);
            }
        }
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…