Remove backwards compatibility symlinks

These links cause magiskhide unable to work ideally and add complications. I think I gave enough time for migration
This commit is contained in:
topjohnwu
2018-03-27 00:35:59 +08:00
parent 31bd642b80
commit 787f7b3035
3 changed files with 2 additions and 32 deletions

View File

@ -127,6 +127,7 @@ void daemon_init() {
rm_rf("/data/magisk");
unlink("/data/magisk.img");
unlink("/data/magisk_debug.log");
xmkdir("/data/adb", 0700);
chmod("/data/adb", 0700);
LOGI("* Creating /sbin overlay");
@ -178,11 +179,6 @@ void daemon_init() {
close(root);
// Backward compatibility
xsymlink(DATABIN, "/data/magisk");
xsymlink(MAINIMG, "/data/magisk.img");
xsymlink(MOUNTPOINT, "/magisk");
xmount(NULL, "/", NULL, MS_REMOUNT | MS_RDONLY, NULL);
LOGI("* Mounting mirrors");