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

Commit 555ea653 authored by Andreas Gampe's avatar Andreas Gampe Committed by Android Git Automerger
Browse files

am ec64c0b6: am 022b1ba1: Merge "Core/jni: Disallow relocation for decryption"

* commit 'ec64c0b6':
  Core/jni: Disallow relocation for decryption
parents 516fa491 ec64c0b6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -696,6 +696,14 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
    if (skip_compilation) {
        addOption("-Xcompiler-option");
        addOption("--compiler-filter=verify-none");

        // We skip compilation when a minimal runtime is brought up for decryption. In that case
        // /data is temporarily backed by a tmpfs, which is usually small.
        // If the system image contains prebuilts, they will be relocated into the tmpfs. In this
        // specific situation it is acceptable to *not* relocate and run out of the prebuilts
        // directly instead.
        addOption("--runtime-arg");
        addOption("-Xnorelocate");
    } else {
        parseCompilerOption("dalvik.vm.dex2oat-filter", dex2oatCompilerFilterBuf,
                            "--compiler-filter=", "-Xcompiler-option");