Commit 0f07bbb3 authored by 残页's avatar 残页 Committed by John Wu

Device using split policy can still have monolithic sepolicy file

parent dd5a3416
......@@ -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();
......
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