davinci: init: Set hardware revision property

* The bootloader sets androidboot.hwversion, use this and set
  the ro.boot.hardware.revision property in order to show it
  in settings.

Change-Id: I3c6c678bf055091ea9fcb2a1524d321e2c1be043
This commit is contained in:
Arian 2020-09-05 14:18:03 +02:00
parent 36d4f0f809
commit 6632e3c003
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -80,7 +80,9 @@ void set_ro_product_prop(const std::string &prop, const std::string &value) {
void vendor_load_properties() {
std::string region;
std::string hardware_revision;
region = GetProperty("ro.boot.hwc", "GLOBAL");
hardware_revision = GetProperty("ro.boot.hwversion", "UNKNOWN");
std::string model;
std::string device;
@ -114,4 +116,6 @@ void vendor_load_properties() {
if (mod_device != "") {
property_override("ro.product.mod_device", mod_device.c_str());
}
property_override("ro.boot.hardware.revision", hardware_revision.c_str());
}