From 2e3477ae13de25411b329ad0db783d23de6d354b Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sun, 25 Dec 2016 10:20:31 +0800 Subject: [PATCH] land: Set proper ro.product.model prop for Redmi 3X Change-Id: I3238751782658bc2c5d5058a66569befde3b53ea --- cm.mk | 4 +++- init/init_land.cpp | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cm.mk b/cm.mk index 0b4505b..7aa5f1e 100644 --- a/cm.mk +++ b/cm.mk @@ -30,7 +30,6 @@ $(call inherit-product, $(LOCAL_PATH)/device.mk) PRODUCT_BRAND := Xiaomi PRODUCT_DEVICE := land PRODUCT_MANUFACTURER := Xiaomi -PRODUCT_MODEL := Redmi 3S PRODUCT_NAME := cm_land PRODUCT_GMS_CLIENTID_BASE := android-xiaomi @@ -40,3 +39,6 @@ TARGET_VENDOR_PRODUCT_NAME := land PRODUCT_BUILD_PROP_OVERRIDES += \ 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" + +PRODUCT_SYSTEM_PROPERTY_BLACKLIST += \ + ro.product.model diff --git a/init/init_land.cpp b/init/init_land.cpp index baf84bb..39b75f4 100644 --- a/init/init_land.cpp +++ b/init/init_land.cpp @@ -134,5 +134,11 @@ void vendor_load_properties() 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(); }