summaryrefslogtreecommitdiff
path: root/init/property_service.cpp
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2021-04-07 15:16:00 -0700
committerRoman Kiryanov <rkir@google.com>2021-04-07 15:55:21 -0700
commit0312c20a71da5fb1ce155c832f264534bb90a37f (patch)
tree2a9501ae98f1bc39897cac7d975c0cc0a2e9bb91 /init/property_service.cpp
parentc755e5edf945d1740acee3c1c1f529db569ec7c2 (diff)
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: Roman Kiryanov <rkir@google.com> Change-Id: If9473aa9492fa09d8de7cc8fb08614380e4e15f3
Diffstat (limited to 'init/property_service.cpp')
-rw-r--r--init/property_service.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/init/property_service.cpp b/init/property_service.cpp
index d1ba3c7ea..c2eb73c61 100644
--- a/init/property_service.cpp
+++ b/init/property_service.cpp
@@ -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);
}
});
}