diff --git a/init/property_service.cpp b/init/property_service.cpp index 46e5e126e..76638b878 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -908,6 +908,13 @@ void CreateSerializedPropertyInfo() { LoadPropertyInfoFromFile("/vendor/etc/selinux/nonplat_property_contexts", &property_infos); } + if (access("/product/etc/selinux/product_property_contexts", R_OK) != -1) { + LoadPropertyInfoFromFile("/product/etc/selinux/product_property_contexts", + &property_infos); + } + if (access("/odm/etc/selinux/odm_property_contexts", R_OK) != -1) { + LoadPropertyInfoFromFile("/odm/etc/selinux/odm_property_contexts", &property_infos); + } } else { if (!LoadPropertyInfoFromFile("/plat_property_contexts", &property_infos)) { return; @@ -916,6 +923,8 @@ void CreateSerializedPropertyInfo() { // Fallback to nonplat_* if vendor_* doesn't exist. LoadPropertyInfoFromFile("/nonplat_property_contexts", &property_infos); } + LoadPropertyInfoFromFile("/product_property_contexts", &property_infos); + LoadPropertyInfoFromFile("/odm_property_contexts", &property_infos); } auto serialized_contexts = std::string();