Remove unnecessary applets of MagiskInit

This commit is contained in:
topjohnwu 2019-05-01 13:55:59 -04:00
parent 9e90a71c04
commit 781ec810d9

View File

@ -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);