aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2017-06-16 14:35:54 +0100
committerSubhrajyoti Sen <subhrajyoti12@gmail.com>2017-07-15 18:53:40 +0530
commit645c37bc7341340714e6d6f91dcaca1fcca980b2 (patch)
treebb3829e709ea96213fc3623ea0f6b86917d0f2a7
parentbc0b1dd2b918ffc41ae5dee0cf217093955e2a44 (diff)
onyx: Abandon TARGET_UNIFIED_DEVICE flag
* Override the unified properties using vendor init Change-Id: I41a63728e809f68f5575236b05a726778258fb6a
-rw-r--r--BoardConfig.mk1
-rw-r--r--init/init_onyx.cpp8
2 files changed, 4 insertions, 5 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index f05c619..9a9b1b1 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -135,7 +135,6 @@ TARGET_SPECIFIC_HEADER_PATH := $(PLATFORM_PATH)/include
# Init
TARGET_INIT_VENDOR_LIB := libinit_onyx
TARGET_RECOVERY_DEVICE_MODULES := libinit_onyx
-TARGET_UNIFIED_DEVICE := true
# Keymaster
TARGET_KEYMASTER_WAIT_FOR_QSEE := true
diff --git a/init/init_onyx.cpp b/init/init_onyx.cpp
index f7d150d..978b231 100644
--- a/init/init_onyx.cpp
+++ b/init/init_onyx.cpp
@@ -57,19 +57,19 @@ void vendor_load_properties()
if (rf_version == "101") {
/* China */
- property_set("ro.product.model", "ONE E1001");
+ property_override("ro.product.model", "ONE E1001");
property_set("ro.rf_version", "TDD_FDD_Ch_All");
} else if (rf_version == "102") {
/* Asia/Europe */
- property_set("ro.product.model", "ONE E1003");
+ property_override("ro.product.model", "ONE E1003");
property_set("ro.rf_version", "TDD_FDD_Eu");
} else if (rf_version == "103"){
/* America */
- property_set("ro.product.model", "ONE E1005");
+ property_override("ro.product.model", "ONE E1005");
property_set("ro.rf_version", "TDD_FDD_Am");
} else if (rf_version == "107"){
/* China CTCC Version */
- property_set("ro.product.model", "ONE E1000");
+ property_override("ro.product.model", "ONE E1000");
property_set("ro.rf_version", "TDD_FDD_ALL_OPTR");
}
device = property_get("ro.product.device");