Add TW2 reference device tfeature
[platform/core/telephony/tel-plugin-database.git] / feature / tfeature.c
index 762ea85..36d40ec 100644 (file)
@@ -119,6 +119,26 @@ static void _tfeature_check_model_config()
        }
 }
 
+static void _tfeature_check_platform_feature()
+{
+       int ret;
+       char *model_name;
+
+       ret = system_info_get_platform_string("http://tizen.org/system/model_name", &model_name);
+       if (ret != SYSTEM_INFO_ERROR_NONE) {
+               TFEATURE_INFO("system_info_get_platform_string() failed!!! (%d,%s)", ret, get_error_message(ret));
+               return;
+       }
+
+       TFEATURE_INFO("model_name[%s]", model_name);
+       if (!g_strcmp0(model_name, "TW2")) {
+               SET_FEATURE(TFEATURE_DEVICE_CHIPSET_VENDOR_EXYNOS);
+               SET_FEATURE(TFEATURE_FUNCTION_SEND_APN_INFO);
+       }
+
+       free(model_name);
+}
+
 static void _tfeature_print_hex_dump()
 {
        char buf[255] = {0, };
@@ -149,6 +169,7 @@ static void _tfeature_init(void)
        _tfeature_check_default_feature();
        _tfeature_check_build_feature();
        _tfeature_check_model_config();
+       _tfeature_check_platform_feature();
 
        _tfeature_print_hex_dump();
        features.valid = TRUE;