mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-27 07:14:27 -08:00
support sony's init.real
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user