|
void vendor_load_properties() { |
|
const std::string hwc = GetProperty("ro.boot.hwc", ""); |
|
if (hwc == "CN") { |
|
model_property_override("sunstone", "Redmi Note 12R Pro"); |
|
} else if (hwc == "GL") { |
|
model_property_override("moonstone", "POCO X5"); |
|
} else { |
|
model_property_override("sunstone", "Redmi Note 12 5G"); |
|
} |
|
} |
Those HWC checks make no sense and will not work properly on certain device variants.
sunstone can be CN, GL or IN/INDIA.
moonstone can be GL or IN/INDIA.
So according to those checks, a Global sunstone will be identified as moonstone, and any Indian model will be recognized as sunstone...
android_device_xiaomi_moonstone/init/init_moonstone.cpp
Lines 53 to 62 in ac7b1e1
Those HWC checks make no sense and will not work properly on certain device variants.
sunstone can be CN, GL or IN/INDIA.
moonstone can be GL or IN/INDIA.
So according to those checks, a Global sunstone will be identified as moonstone, and any Indian model will be recognized as sunstone...