Remove SAR compatibility mode

This commit is contained in:
topjohnwu
2019-12-12 03:25:48 -05:00
parent 490e6a6f23
commit 8c500709e4
4 changed files with 14 additions and 72 deletions
+1 -11
View File
@@ -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;