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:
Arian
2020-04-25 12:37:38 +02:00
parent 68956aa31a
commit 3e024ca758

View File

@@ -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);
}
};