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

Commit 1eea88f1 authored by Jerome Gaillard's avatar Jerome Gaillard Committed by Android (Google) Code Review
Browse files

Merge "Allow loading of host runtime for Windows" into main

parents 9ea48c71 3248101b
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -430,7 +430,6 @@ public:

} // namespace android

#ifndef _WIN32
using namespace android;

JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void*) {
@@ -439,12 +438,14 @@ JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void*) {
        return JNI_ERR;
    }

    string useBaseHostRuntime = getJavaProperty(env, "use_base_native_hostruntime");
    if (useBaseHostRuntime == "true") {
        Vector<String8> args;
        HostRuntime runtime;

        runtime.onVmCreated(env);
        runtime.start("HostRuntime", args, false);
    }

    return JNI_VERSION_1_6;
}
#endif