Remove unnecessary applets of MagiskInit
This commit is contained in:
parent
9e90a71c04
commit
781ec810d9
@ -609,10 +609,8 @@ void MagiskInit::setup_rootfs() {
|
|||||||
sprintf(path, "/sbin/%s", applet_names[i]);
|
sprintf(path, "/sbin/%s", applet_names[i]);
|
||||||
xsymlink("/sbin/magisk", path);
|
xsymlink("/sbin/magisk", path);
|
||||||
}
|
}
|
||||||
for (int i = 0; init_applet[i]; ++i) {
|
xsymlink("/sbin/magiskinit", "/sbin/magiskpolicy");
|
||||||
sprintf(path, "/sbin/%s", init_applet[i]);
|
xsymlink("/sbin/magiskinit", "/sbin/supolicy");
|
||||||
xsymlink("/sbin/magiskinit", path);
|
|
||||||
}
|
|
||||||
|
|
||||||
close(rootdir);
|
close(rootdir);
|
||||||
close(sbin);
|
close(sbin);
|
||||||
|
Loading…
Reference in New Issue
Block a user