You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Remove SAR compatibility mode
This commit is contained in:
@@ -85,7 +85,7 @@ static void load_overlay_rc(int dirfd) {
|
||||
rewinddir(dir);
|
||||
}
|
||||
|
||||
void RootFSBase::setup_rootfs() {
|
||||
void RootFSInit::setup_rootfs() {
|
||||
if (patch_sepolicy()) {
|
||||
char *addr;
|
||||
size_t size;
|
||||
@@ -141,16 +141,6 @@ void RootFSBase::setup_rootfs() {
|
||||
close(fd);
|
||||
}
|
||||
|
||||
void SARCompatInit::setup_rootfs() {
|
||||
// Clone rootfs
|
||||
LOGD("Clone root dir from system to rootfs\n");
|
||||
int system_root = xopen("/system_root", O_RDONLY | O_CLOEXEC);
|
||||
clone_dir(system_root, root, false);
|
||||
close(system_root);
|
||||
|
||||
RootFSBase::setup_rootfs();
|
||||
}
|
||||
|
||||
bool MagiskInit::patch_sepolicy(const char *file) {
|
||||
bool patch_init = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user