Remove some traits

This commit is contained in:
topjohnwu 2018-04-29 12:34:36 +08:00
parent 0faed7159c
commit cecc0b932d

View File

@ -515,8 +515,12 @@ initialize:
void *magisk, *init; void *magisk, *init;
size_t magisk_size, init_size; size_t magisk_size, init_size;
// Create hardlink mirror of /sbin to /root
xmount(NULL, "/", NULL, MS_REMOUNT, NULL); xmount(NULL, "/", NULL, MS_REMOUNT, NULL);
// Remove some traits of Magisk
unlink("/init.magisk.rc");
// Create hardlink mirror of /sbin to /root
mkdir("/root", 0750); mkdir("/root", 0750);
full_read("/sbin/magisk", &magisk, &magisk_size); full_read("/sbin/magisk", &magisk, &magisk_size);
unlink("/sbin/magisk"); unlink("/sbin/magisk");