diff --git a/native/jni/init/getinfo.cpp b/native/jni/init/getinfo.cpp index 5d6734eac..3a2812c6a 100644 --- a/native/jni/init/getinfo.cpp +++ b/native/jni/init/getinfo.cpp @@ -182,6 +182,9 @@ void load_kernel_info(cmdline *cmd) { bool check_two_stage() { if (access("/apex", F_OK) == 0) return true; - auto init = raw_data::mmap_ro("/init"); + if (access("/system/bin/init", F_OK) == 0) + return true; + // If we still have no indication, parse the original init and see what's up + auto init = raw_data::mmap_ro("/.backup/init"); return init.find("selinux_setup"); }