land: Set proper ro.product.model prop for Redmi 3X

Change-Id: I3238751782658bc2c5d5058a66569befde3b53ea
This commit is contained in:
Zhao Wei Liew 2016-12-25 10:20:31 +08:00
parent 74ebcefa33
commit 2e3477ae13
2 changed files with 9 additions and 1 deletions

4
cm.mk
View file

@ -30,7 +30,6 @@ $(call inherit-product, $(LOCAL_PATH)/device.mk)
PRODUCT_BRAND := Xiaomi PRODUCT_BRAND := Xiaomi
PRODUCT_DEVICE := land PRODUCT_DEVICE := land
PRODUCT_MANUFACTURER := Xiaomi PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_MODEL := Redmi 3S
PRODUCT_NAME := cm_land PRODUCT_NAME := cm_land
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
@ -40,3 +39,6 @@ TARGET_VENDOR_PRODUCT_NAME := land
PRODUCT_BUILD_PROP_OVERRIDES += \ PRODUCT_BUILD_PROP_OVERRIDES += \
BUILD_FINGERPRINT=Xiaomi/land/land:6.0.1/MMB29M/6.12.22:user/release-keys \ BUILD_FINGERPRINT=Xiaomi/land/land:6.0.1/MMB29M/6.12.22:user/release-keys \
PRIVATE_BUILD_DESC="land-user 6.0.1 MMB29M 6.12.22 release-keys" PRIVATE_BUILD_DESC="land-user 6.0.1 MMB29M 6.12.22 release-keys"
PRODUCT_SYSTEM_PROPERTY_BLACKLIST += \
ro.product.model

View file

@ -134,5 +134,11 @@ void vendor_load_properties()
property_set("ro.build.display.wtid", "SW_S88537EC1_V070_M20_MP_XM"); property_set("ro.build.display.wtid", "SW_S88537EC1_V070_M20_MP_XM");
} }
if (!strcmp(board_id, "S88537AB1")) {
property_set("ro.product.model", "Redmi 3X");
} else {
property_set("ro.product.model", "Redmi 3S");
}
init_alarm_boot_properties(); init_alarm_boot_properties();
} }