Add TW2 reference device tfeature 24/130024/1 accepted/tizen/4.0/unified/20170816.013704 accepted/tizen/unified/20170519.195955 submit/tizen/20170519.045350 submit/tizen_4.0/20170811.094300 tizen_4.0.m1_release
authorWootak Jung <wootak.jung@samsung.com>
Fri, 19 May 2017 01:31:54 +0000 (10:31 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Fri, 19 May 2017 01:31:54 +0000 (10:31 +0900)
Change-Id: I483592042e1708ee19febd2bb1461222f18c8d7e

feature/tfeature.c
packaging/tel-plugin-database.spec

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;
index caf3f76..d80b3ef 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 1
-%define patchlevel 33
+%define patchlevel 34
 
 Name:           tel-plugin-database
 Version:        %{major}.%{minor}.%{patchlevel}