sm7125: libinit: Also set product and odm props

Change-Id: I5fd37258812e5e19edc51f8e0ed44b79955245f6
fourteen-wip
Simon1511 3 years ago
parent 3074635364
commit 75c9b22acc
  1. 10
      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)); __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(system_prop, value);
property_override(vendor_prop, value); property_override(vendor_prop, value);
property_override(product_prop, value);
property_override(odm_prop, value);
} }
void vendor_load_properties() 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.product.name: %s", name.c_str();
LOG(INFO) << "Setting ro.build.product: %s", device.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_quad("ro.product.model", "ro.product.vendor.model", "ro.product.product.model", "ro.product.odm.model", model.c_str());
property_override_dual("ro.product.device", "ro.vendor.product.device", device.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_dual("ro.product.name", "ro.vendor.product.name", name.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()); property_override("ro.build.product", device.c_str());
} }

Loading…
Cancel
Save