mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 16:26:02 +00:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user