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

Commit 0312c20a authored by Roman Kiryanov's avatar Roman Kiryanov
Browse files

Populate `ro.boot.dalvik.vm.checkjni` from `android.checkjni`



emulator passes `android.checkjni` in the kernel
command which we want to use in
frameworks/base/core/jni/AndroidRuntime.cpp

Bug: 182291166
Test: getprop ro.boot.dalvik.vm.checkjni
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
Change-Id: If9473aa9492fa09d8de7cc8fb08614380e4e15f3
parent c755e5ed
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1204,6 +1204,18 @@ static void ProcessKernelCmdline() {
            // emulator specific, should be retired once emulator migrates to
            // androidboot.
            InitPropertySet("ro.boot.debug.sf.nobootanimation", "1");
        } else if (key == "android.checkjni") {
            // emulator specific, should be retired once emulator migrates to
            // androidboot.
            std::string value_bool;
            if (value == "0") {
                value_bool = "false";
            } else if (value == "1") {
                value_bool = "true";
            } else {
                value_bool = value;
            }
            InitPropertySet("ro.boot.dalvik.vm.checkjni", value_bool);
        }
    });
}