Device using split policy can still have monolithic sepolicy file

This commit is contained in:
残页 2022-03-19 07:38:19 +08:00 committed by John Wu
parent dd5a3416bf
commit 0f07bbb3e5

View File

@ -235,7 +235,7 @@ void SARBase::patch_ro_root() {
}
}
if (access("/sepolicy", F_OK) == 0) {
if (access(SPLIT_PLAT_CIL, F_OK) != 0 && access("/sepolicy", F_OK) == 0) {
patch_sepolicy(ROOTOVL "/sepolicy");
} else {
hijack_sepolicy();