Support sepolicy_debug

This commit is contained in:
topjohnwu 2018-02-02 04:17:13 +08:00
parent bc2cac90fe
commit d1be34c34a

View File

@ -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;
}