Integrate sepolicy patching with MagiskSU fixed

This commit is contained in:
topjohnwu
2017-04-16 02:42:24 +08:00
parent 2f7cfa7ab2
commit dfe4b33f2f
12 changed files with 113 additions and 16 deletions

View File

@@ -178,3 +178,8 @@ void unlock_blocks() {
closedir(dir);
}
void unblock_boot_process() {
int fd = open("/dev/.magisk.unblock", O_RDONLY | O_CREAT);
close(fd);
}

View File

@@ -62,5 +62,6 @@ void ps(void (*func)(int));
void ps_filter_proc_name(const char *filter, void (*func)(int));
int create_links(const char *bin, const char *path);
void unlock_blocks();
void unblock_boot_process();
#endif