You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
init: support 2SI devices with skip_initramfs
This commit is contained in:
@@ -200,8 +200,7 @@ mount_root:
|
||||
xmount("tmpfs", "/dev", "tmpfs", 0, "mode=755");
|
||||
mount_list.emplace_back("/dev");
|
||||
|
||||
// Use the apex folder to determine whether 2SI (Android 10+)
|
||||
bool is_two_stage = access("/apex", F_OK) == 0;
|
||||
bool is_two_stage = access("/system/bin/init", F_OK) == 0;
|
||||
LOGD("is_two_stage: [%d]\n", is_two_stage);
|
||||
|
||||
// For API 28 AVD, it uses legacy SAR setup that requires
|
||||
|
||||
Reference in New Issue
Block a user