Separate SAR and legacy implementation

This commit is contained in:
topjohnwu
2019-06-16 12:45:32 -07:00
parent f1d9015e5f
commit 5c7f69acaa
4 changed files with 140 additions and 107 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ constexpr const char wrapper[] =
"exec /sbin/magisk.bin \"$0\" \"$@\"\n"
;
void MagiskInit::setup_rootfs() {
void BaseInit::setup_rootfs() {
bool patch_init = patch_sepolicy();
if (cmd->system_as_root) {
@@ -173,7 +173,7 @@ void MagiskInit::setup_rootfs() {
close(sbin);
}
bool MagiskInit::patch_sepolicy() {
bool BaseInit::patch_sepolicy() {
bool patch_init = false;
if (access(SPLIT_PLAT_CIL, R_OK) == 0) {