mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 21:45:27 +00:00
Remove some traits
This commit is contained in:
parent
0faed7159c
commit
cecc0b932d
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user