mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 16:26:02 +00:00
davinci: init: Always set the ro.build props
* ro.build. properties are set at runtime if not set already (after libinit runs) in android 10 hence ro.build.fingerprint wasn't set since the prop did not contain a value while libinit ran. Change-Id: I213c4c2c730c294c42a5d4db70359e7b49d7947e
This commit is contained in:
@@ -64,7 +64,10 @@ void property_override(char const prop[], char const value[], bool add = true)
|
||||
void set_ro_build_prop(const std::string &prop, const std::string &value) {
|
||||
for (const auto &source : ro_props_default_source_order) {
|
||||
auto prop_name = "ro." + source + "build." + prop;
|
||||
property_override(prop_name.c_str(), value.c_str(), false);
|
||||
if (source == "")
|
||||
property_override(prop_name.c_str(), value.c_str());
|
||||
else
|
||||
property_override(prop_name.c_str(), value.c_str(), false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user