From 347bea0c4e7ead7d20be54f4425c7e4d01dc6b2d Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Thu, 5 May 2022 19:29:46 +0200 Subject: [PATCH] sm7125: libinit: Also set product and odm props Change-Id: I5fd37258812e5e19edc51f8e0ed44b79955245f6 --- init/init_sm7125.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init/init_sm7125.cpp b/init/init_sm7125.cpp index 42c5798..1ab3684 100644 --- a/init/init_sm7125.cpp +++ b/init/init_sm7125.cpp @@ -27,10 +27,12 @@ static void property_override(char const prop[], char const value[]) { __system_property_add(prop, strlen(prop), value, strlen(value)); } -void property_override_dual(char const system_prop[], char const vendor_prop[], char const value[]) +void property_override_quad(char const system_prop[], char const vendor_prop[], char const product_prop[], char const odm_prop[], char const value[]) { property_override(system_prop, value); property_override(vendor_prop, value); + property_override(product_prop, value); + property_override(odm_prop, value); } void vendor_load_properties() @@ -66,8 +68,8 @@ void vendor_load_properties() LOG(INFO) << "Setting ro.product.name: %s", name.c_str(); LOG(INFO) << "Setting ro.build.product: %s", device.c_str(); - property_override_dual("ro.product.model", "ro.vendor.product.model", model.c_str()); - property_override_dual("ro.product.device", "ro.vendor.product.device", device.c_str()); - property_override_dual("ro.product.name", "ro.vendor.product.name", name.c_str()); + property_override_quad("ro.product.model", "ro.product.vendor.model", "ro.product.product.model", "ro.product.odm.model", model.c_str()); + property_override_quad("ro.product.device", "ro.product.vendor.device", "ro.product.product.device", "ro.product.odm.device", device.c_str()); + property_override_quad("ro.product.name", "ro.product.vendor.name", "ro.product.product.name", "ro.product.odm.name", name.c_str()); property_override("ro.build.product", device.c_str()); }