From c29a709025b14bbffc1664c8b4a31c0f9e759a1e Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 21 Jan 2026 14:34:43 +0800 Subject: [PATCH] support sony's init.real --- native/src/init/getinfo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/init/getinfo.rs b/native/src/init/getinfo.rs index d26d99db4..d51aeaa3e 100644 --- a/native/src/init/getinfo.rs +++ b/native/src/init/getinfo.rs @@ -43,7 +43,7 @@ impl MagiskInit { // Use the apex folder to determine whether 2SI (Android 10+) cstr!("/apex").exists() || // If we still have no indication, parse the original init and see what's up - MappedFile::open(backup_init()) + MappedFile::open(Some(cstr!("/init.real")).take_if(|p| p.exists()).unwrap_or(backup_init())) .map(|data| data.contains(b"selinux_setup")) .unwrap_or(false) }