From 0f07bbb3e59ac05388189c4af60f15fba24791a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=8B=E9=A1=B5?= <31466456+canyie@users.noreply.github.com> Date: Sat, 19 Mar 2022 07:38:19 +0800 Subject: [PATCH] Device using split policy can still have monolithic sepolicy file --- native/jni/init/rootdir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/init/rootdir.cpp b/native/jni/init/rootdir.cpp index 7b34fb418..c5ad0279e 100644 --- a/native/jni/init/rootdir.cpp +++ b/native/jni/init/rootdir.cpp @@ -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();