mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-01 16:46:39 +00:00
Update sepolicy handling
This commit is contained in:
@@ -364,7 +364,8 @@ static void magisk_init_daemon() {
|
|||||||
sepol_allow("su", ALL, ALL, ALL);
|
sepol_allow("su", ALL, ALL, ALL);
|
||||||
|
|
||||||
// Wait till init cold boot done
|
// Wait till init cold boot done
|
||||||
wait_till_exists("/dev/.coldboot_done");
|
while (access("/dev/.coldboot_done", F_OK))
|
||||||
|
usleep(1);
|
||||||
|
|
||||||
int null = open("/dev/null", O_RDWR | O_CLOEXEC);
|
int null = open("/dev/null", O_RDWR | O_CLOEXEC);
|
||||||
dup3(null, STDIN_FILENO, O_CLOEXEC);
|
dup3(null, STDIN_FILENO, O_CLOEXEC);
|
||||||
|
|||||||
Submodule core/jni/magiskpolicy updated: edab891427...5c338cd0a7
Reference in New Issue
Block a user