Commit cecc0b93 authored by topjohnwu's avatar topjohnwu

Remove some traits

parent 0faed715
...@@ -515,8 +515,12 @@ initialize: ...@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment