Commit d1be34c3 authored by topjohnwu's avatar topjohnwu

Support sepolicy_debug

parent bc2cac90
......@@ -318,6 +318,12 @@ static int patch_sepolicy() {
sepol_magisk_rules();
dump_policydb("/sepolicy");
// Remove the stupid debug sepolicy and use our own
if (access("/sepolicy_debug", F_OK) == 0) {
unlink("/sepolicy_debug");
link("/sepolicy", "/sepolicy_debug");
}
return 0;
}
......
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