diff --git a/native/src/init/getinfo.cpp b/native/src/init/getinfo.cpp index 7de8a63bd..9ab9ec8d1 100644 --- a/native/src/init/getinfo.cpp +++ b/native/src/init/getinfo.cpp @@ -236,6 +236,9 @@ bool check_two_stage() { return true; if (access("/system/bin/init", F_OK) == 0) return true; + // Use the apex folder to determine whether 2SI (Android 10+) + if (access("/apex", F_OK) == 0) + return true; // If we still have no indication, parse the original init and see what's up mmap_data init(backup_init()); return init.contains("selinux_setup");