Remove Feature Check 98/146298/1 accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20170828.112501 accepted/tizen/3.0/ivi/20170828.062024 accepted/tizen/3.0/mobile/20170828.062016 accepted/tizen/3.0/wearable/20170828.062013 submit/tizen_3.0/20170828.020844
authorJooseok Song <seogii.song@samsung.com>
Mon, 28 Aug 2017 01:51:24 +0000 (10:51 +0900)
committerJooseok Song <seogii.song@samsung.com>
Mon, 28 Aug 2017 01:51:24 +0000 (10:51 +0900)
Change-Id: Ifdb47ba6a27b3fdc37e6456d1f07e99025945032

packaging/libaccount-service.spec
src/account.c

index c1c3723..ea49678 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libaccount-service
 Summary:    Account DB library
-Version:    0.4.18
+Version:    0.4.19
 Release:    1
 Group:      Social & Content/API
 License:    Apache-2.0
index 3cf527a..b938127 100644 (file)
 #include "account_internal.h"
 #include "account_private_client.h"
 
-#define ACCOUNT_FEATURE "http://tizen.org/feature/account"
-
-#define CHECK_ACCOUNT_SUPPORTED(feature_name) \
-do { \
-       bool is_supported = false; \
-       if (!system_info_get_platform_bool(feature_name, &is_supported)) { \
-               if (is_supported == false) { \
-                       LOGE("[%s] feature is disabled", feature_name); \
-                       return ACCOUNT_ERROR_NOT_SUPPORTED; \
-               } \
-       } else { \
-               LOGE("Error - Feature getting from System Info"); \
-       } \
-} while (0)
-
 #define ACCOUNT_DB_OPEN_READONLY 0
 #define ACCOUNT_DB_OPEN_READWRITE 1
 
@@ -246,8 +231,6 @@ ACCOUNT_API int account_disconnect(void)
 
 ACCOUNT_API int account_insert_to_db(account_h account, int *account_db_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("1. account_insert_to_db start");
 
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
@@ -286,8 +269,6 @@ CATCH:
 
 ACCOUNT_API int account_delete_from_db_by_id(int account_db_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("1. account_delete_from_db_by_id starting [%d]", account_db_id);
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -332,8 +313,6 @@ ACCOUNT_API int account_delete_from_db_by_id(int account_db_id)
 
 ACCOUNT_API int account_delete_from_db_by_user_name(char *user_name, char *package_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        int error_code = ACCOUNT_ERROR_NONE;
        _INFO("account_delete_from_db_by_user_name start");
 
@@ -386,8 +365,6 @@ ACCOUNT_API int account_delete_from_db_by_user_name(char *user_name, char *packa
 
 int _account_delete_from_db_by_package_name(const char *package_name, bool permission)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("_account_delete_from_db_by_package_name starting permission opions = %d", permission);
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -437,16 +414,12 @@ int _account_delete_from_db_by_package_name(const char *package_name, bool permi
 
 ACCOUNT_API int account_delete_from_db_by_package_name(const char *package_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_delete_from_db_by_package_name starting with permission");
        return _account_delete_from_db_by_package_name(package_name, true);
 }
 
 ACCOUNT_API int account_update_to_db_by_id(account_h account, int account_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("1. account_update_to_db_by_id start");
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -493,8 +466,6 @@ ACCOUNT_API int account_update_to_db_by_id(account_h account, int account_id)
 
 ACCOUNT_API int account_update_to_db_by_id_ex(account_h account, int account_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        int ret = -1;
        ret = account_update_to_db_by_id(account, account_id);
 
@@ -503,8 +474,6 @@ ACCOUNT_API int account_update_to_db_by_id_ex(account_h account, int account_id)
 
 ACCOUNT_INTERNAL_API int account_update_to_db_by_id_without_permission(account_h account, int account_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_update_to_db_by_id_without_permission start");
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -570,8 +539,6 @@ ACCOUNT_INTERNAL_API int account_update_to_db_by_id_without_permission(account_h
 
 ACCOUNT_API int account_update_to_db_by_user_name(account_h account, const char *user_name, const char *package_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_update_to_db_by_user_name starting");
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -617,8 +584,6 @@ ACCOUNT_API int account_update_to_db_by_user_name(account_h account, const char
 
 ACCOUNT_API int account_create(account_h *account)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_create start");
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account is NULL.\n", __FUNCTION__, __LINE__);
@@ -652,8 +617,6 @@ ACCOUNT_API int account_create(account_h *account)
 
 ACCOUNT_API int account_destroy(account_h account)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_destroy start");
        account_s *data = (account_s *)account;
 
@@ -667,8 +630,6 @@ ACCOUNT_API int account_destroy(account_h account)
 
 ACCOUNT_API int account_set_user_name(account_h account, const char *user_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -693,8 +654,6 @@ ACCOUNT_API int account_set_user_name(account_h account, const char *user_name)
 
 ACCOUNT_API int account_set_display_name(account_h account, const char *display_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -719,8 +678,6 @@ ACCOUNT_API int account_set_display_name(account_h account, const char *display_
 
 ACCOUNT_API int account_set_email_address(account_h account, const char *email_address)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -745,8 +702,6 @@ ACCOUNT_API int account_set_email_address(account_h account, const char *email_a
 
 ACCOUNT_API int account_set_icon_path(account_h account, const char *icon_path)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -771,8 +726,6 @@ ACCOUNT_API int account_set_icon_path(account_h account, const char *icon_path)
 
 ACCOUNT_API int account_set_source(account_h account, const char *source)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -796,8 +749,6 @@ ACCOUNT_API int account_set_source(account_h account, const char *source)
 
 ACCOUNT_API int account_set_package_name(account_h account, const char *package_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -822,8 +773,6 @@ ACCOUNT_API int account_set_package_name(account_h account, const char *package_
 
 ACCOUNT_API int account_set_domain_name(account_h account, const char *domain_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -847,8 +796,6 @@ ACCOUNT_API int account_set_domain_name(account_h account, const char *domain_na
 
 ACCOUNT_API int account_set_access_token(account_h account, const char *access_token)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -873,8 +820,6 @@ ACCOUNT_API int account_set_access_token(account_h account, const char *access_t
 
 ACCOUNT_API int account_set_user_text(account_h account, int idx, const char *user_txt)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -903,8 +848,6 @@ ACCOUNT_API int account_set_user_text(account_h account, int idx, const char *us
 
 ACCOUNT_API int account_set_custom(account_h account, const char *key, const char *value)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account) {
                ACCOUNT_SLOGE("(%s)-(%d) account handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -993,8 +936,6 @@ ACCOUNT_API int account_set_custom(account_h account, const char *key, const cha
 
 ACCOUNT_API int account_set_auth_type(account_h account, const account_auth_type_e auth_type)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account handle is NULL.\n",  __FUNCTION__, __LINE__));
 
        if (((int)auth_type < 0) || (auth_type > ACCOUNT_AUTH_TYPE_CLIENT_LOGIN))
@@ -1009,8 +950,6 @@ ACCOUNT_API int account_set_auth_type(account_h account, const account_auth_type
 
 ACCOUNT_API int account_set_secret(account_h account, const account_secrecy_state_e secret)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account handle is NULL.\n",      __FUNCTION__, __LINE__));
 
        if (((int)secret < 0) || (secret > ACCOUNT_SECRECY_VISIBLE))
@@ -1025,8 +964,6 @@ ACCOUNT_API int account_set_secret(account_h account, const account_secrecy_stat
 
 ACCOUNT_API int account_set_sync_support(account_h account, const account_sync_state_e sync_support)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account handle is NULL.\n",      __FUNCTION__, __LINE__));
 
        if (((int)sync_support < 0) || (sync_support > ACCOUNT_SUPPORTS_SYNC))
@@ -1041,8 +978,6 @@ ACCOUNT_API int account_set_sync_support(account_h account, const account_sync_s
 
 ACCOUNT_API int account_set_user_int(account_h account, int idx, const int user_int)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1058,8 +993,6 @@ ACCOUNT_API int account_set_user_int(account_h account, int idx, const int user_
 
 ACCOUNT_API int account_set_capability(account_h account, const char *capability_type, account_capability_state_e capability_value)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("account handle is null"));
        ACCOUNT_RETURN_VAL((capability_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type is null"));
        ACCOUNT_RETURN_VAL((strlen(capability_type) > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type is Empty"));
@@ -1109,8 +1042,6 @@ ACCOUNT_API int account_set_capability(account_h account, const char *capability
 
 ACCOUNT_API int account_get_user_name(account_h account, char **user_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1131,8 +1062,6 @@ ACCOUNT_API int account_get_user_name(account_h account, char **user_name)
 
 ACCOUNT_API int account_get_display_name(account_h account, char **display_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1155,8 +1084,6 @@ ACCOUNT_API int account_get_display_name(account_h account, char **display_name)
 
 ACCOUNT_API int account_get_email_address(account_h account, char **email_address)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1178,8 +1105,6 @@ ACCOUNT_API int account_get_email_address(account_h account, char **email_addres
 
 ACCOUNT_API int  account_get_icon_path(account_h account, char **icon_path)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1201,8 +1126,6 @@ ACCOUNT_API int  account_get_icon_path(account_h account, char **icon_path)
 
 ACCOUNT_API int account_get_source(account_h account, char **source)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1224,8 +1147,6 @@ ACCOUNT_API int account_get_source(account_h account, char **source)
 
 ACCOUNT_API int account_get_package_name(account_h account, char **package_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1248,8 +1169,6 @@ ACCOUNT_API int account_get_package_name(account_h account, char **package_name)
 
 ACCOUNT_API int account_get_domain_name(account_h account, char **domain_name)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1271,8 +1190,6 @@ ACCOUNT_API int account_get_domain_name(account_h account, char **domain_name)
 
 ACCOUNT_API int account_get_access_token(account_h account, char **access_token)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1294,8 +1211,6 @@ ACCOUNT_API int account_get_access_token(account_h account, char **access_token)
 
 ACCOUNT_API int account_get_user_text(account_h account, int user_text_index, char **text)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1319,8 +1234,6 @@ ACCOUNT_API int account_get_user_text(account_h account, int user_text_index, ch
 
 ACCOUNT_API int account_get_auth_type(account_h account, account_auth_type_e *auth_type)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1336,8 +1249,6 @@ ACCOUNT_API int account_get_auth_type(account_h account, account_auth_type_e *au
 
 ACCOUNT_API int account_get_secret(account_h account, account_secrecy_state_e *secret)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1353,8 +1264,6 @@ ACCOUNT_API int account_get_secret(account_h account, account_secrecy_state_e *s
 
 ACCOUNT_API int account_get_sync_support(account_h account, account_sync_state_e *sync_support)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1370,8 +1279,6 @@ ACCOUNT_API int account_get_sync_support(account_h account, account_sync_state_e
 
 ACCOUNT_API int account_get_account_id(account_h account, int *account_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1387,8 +1294,6 @@ ACCOUNT_API int account_get_account_id(account_h account, int *account_id)
 
 ACCOUNT_API int account_get_user_int(account_h account, int user_int_index, int *integer)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -1406,8 +1311,6 @@ ACCOUNT_API int account_get_user_int(account_h account, int user_int_index, int
 
 ACCOUNT_API int account_get_capability(account_h account, const char *capability_type, account_capability_state_e *capability_value)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
        ACCOUNT_RETURN_VAL((capability_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type is NULL"));
        ACCOUNT_RETURN_VAL((capability_value != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_value is NULL"));
@@ -1431,8 +1334,6 @@ ACCOUNT_API int account_get_capability(account_h account, const char *capability
 
 ACCOUNT_API int account_get_capability_all(account_h account, capability_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
        ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO CALLBACK FUNCTION"));
 
@@ -1453,8 +1354,6 @@ ACCOUNT_API int account_get_capability_all(account_h account, capability_cb call
 
 ACCOUNT_API int account_get_custom(account_h account, const char *key, char **value)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
        ACCOUNT_RETURN_VAL((key != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO KEY TO REQUEST"));
        ACCOUNT_RETURN_VAL((value != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("VALUE POINTER IS NULL"));
@@ -1484,8 +1383,6 @@ ACCOUNT_API int account_get_custom(account_h account, const char *key, char **va
 
 ACCOUNT_API int account_get_custom_all(account_h account, account_custom_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
        ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO CALLBACK FUNCTION"));
 
@@ -1508,8 +1405,6 @@ ACCOUNT_API int account_get_custom_all(account_h account, account_custom_cb call
 
 ACCOUNT_API int account_foreach_account_from_db(account_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_foreach_account_from_db start");
 
        ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
@@ -1558,8 +1453,6 @@ ACCOUNT_API int account_foreach_account_from_db(account_cb callback, void *user_
 
 ACCOUNT_API int account_query_account_by_account_id(int account_db_id, account_h *account)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_query_account_by_account_id start [%d]", account_db_id);
 
        ACCOUNT_RETURN_VAL((account_db_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT INDEX IS LESS THAN 0"));
@@ -1610,8 +1503,6 @@ ACCOUNT_API int account_query_account_by_account_id(int account_db_id, account_h
 
 ACCOUNT_API int account_query_account_by_user_name(account_cb callback, const char *user_name, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_query_account_by_user_name starting");
 
        ACCOUNT_RETURN_VAL((user_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("USER NAME IS NULL"));
@@ -1663,8 +1554,6 @@ ACCOUNT_API int account_query_account_by_user_name(account_cb callback, const ch
 
 ACCOUNT_API int account_query_account_by_package_name(account_cb callback, const char *package_name, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_query_account_by_package_name starting");
 
        ACCOUNT_RETURN_VAL((package_name != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("PACKAGE NAME IS NULL"));
@@ -1723,8 +1612,6 @@ ACCOUNT_API int account_query_account_by_package_name(account_cb callback, const
 
 ACCOUNT_API int account_query_account_by_capability(account_cb callback, const char *capability_type, account_capability_state_e capability_value, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_query_account_by_capability starting");
 
        ACCOUNT_RETURN_VAL((capability_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type IS NULL"));
@@ -1781,8 +1668,6 @@ ACCOUNT_API int account_query_account_by_capability(account_cb callback, const c
 
 ACCOUNT_API int account_query_account_by_capability_type(account_cb callback, const char *capability_type, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_query_account_by_capability_type starting");
 
        ACCOUNT_RETURN_VAL((capability_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type IS NULL"));
@@ -1834,8 +1719,6 @@ ACCOUNT_API int account_query_account_by_capability_type(account_cb callback, co
 
 ACCOUNT_API int account_query_capability_by_account_id(capability_cb callback, int account_id, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_query_capability_by_account_id starting");
 
        ACCOUNT_RETURN_VAL((account_id > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT INDEX IS LESS THAN 0"));
@@ -1886,8 +1769,6 @@ ACCOUNT_API int account_query_capability_by_account_id(capability_cb callback, i
 
 static int _account_get_total_count(int *count, bool include_hidden)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_get_total_count_from_db starting");
 
        if (!count) {
@@ -1919,8 +1800,6 @@ static int _account_get_total_count(int *count, bool include_hidden)
 
 ACCOUNT_API int account_get_total_count_from_db(int *count)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_get_total_count_from_db starting");
 
        return _account_get_total_count(count, true);
@@ -1928,8 +1807,6 @@ ACCOUNT_API int account_get_total_count_from_db(int *count)
 
 ACCOUNT_INTERNAL_API int account_get_total_count_from_db_ex(int *count)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_get_total_count_from_db_ex starting");
 
        return _account_get_total_count(count, false);
@@ -1937,8 +1814,6 @@ ACCOUNT_INTERNAL_API int account_get_total_count_from_db_ex(int *count)
 
 ACCOUNT_API int account_update_sync_status_by_id(int account_db_id, const account_sync_state_e sync_status)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_update_sync_status_by_id starting");
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -1968,8 +1843,6 @@ ACCOUNT_API int account_update_sync_status_by_id(int account_db_id, const accoun
 
 ACCOUNT_API int account_type_create(account_type_h *account_type)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type) {
                ACCOUNT_SLOGE("(%s)-(%d) account type handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -1999,8 +1872,6 @@ ACCOUNT_API int account_type_create(account_type_h *account_type)
 
 ACCOUNT_API int account_type_destroy(account_type_h account_type)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_destroy");
 
        account_type_s *data = (account_type_s *)account_type;
@@ -2017,8 +1888,6 @@ ACCOUNT_API int account_type_destroy(account_type_h account_type)
 
 ACCOUNT_INTERNAL_API int account_type_set_app_id(account_type_h account_type, const char *app_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type) {
                ACCOUNT_SLOGE("(%s)-(%d) account_type handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -2043,8 +1912,6 @@ ACCOUNT_INTERNAL_API int account_type_set_app_id(account_type_h account_type, co
 
 ACCOUNT_INTERNAL_API int account_type_set_service_provider_id(account_type_h account_type, const char *service_provider_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2065,8 +1932,6 @@ ACCOUNT_INTERNAL_API int account_type_set_service_provider_id(account_type_h acc
 
 ACCOUNT_INTERNAL_API int account_type_set_icon_path(account_type_h account_type, const char *icon_path)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2087,8 +1952,6 @@ ACCOUNT_INTERNAL_API int account_type_set_icon_path(account_type_h account_type,
 
 ACCOUNT_INTERNAL_API int account_type_set_small_icon_path(account_type_h account_type, const char *small_icon_path)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2109,8 +1972,6 @@ ACCOUNT_INTERNAL_API int account_type_set_small_icon_path(account_type_h account
 
 ACCOUNT_INTERNAL_API int account_type_set_multiple_account_support(account_type_h account_type, bool multiple_account_support)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account handle is NULL.\n",  __FUNCTION__, __LINE__));
 
        account_type_s *data = (account_type_s *)account_type;
@@ -2122,8 +1983,6 @@ ACCOUNT_INTERNAL_API int account_type_set_multiple_account_support(account_type_
 
 ACCOUNT_INTERNAL_API int account_type_set_label(account_type_h account_type, const char *label, const char *locale)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type) {
                ACCOUNT_SLOGE("(%s)-(%d) account_type handle is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -2163,8 +2022,6 @@ ACCOUNT_INTERNAL_API int account_type_set_label(account_type_h account_type, con
 
 ACCOUNT_INTERNAL_API int account_type_set_provider_feature(account_type_h account_type, const char *provider_feature)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("account type handle is null"));
        ACCOUNT_RETURN_VAL((provider_feature != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("provider_feature is null"));
        ACCOUNT_RETURN_VAL((strlen(provider_feature) > 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("provider_feature is Empty"));
@@ -2208,8 +2065,6 @@ ACCOUNT_INTERNAL_API int account_type_set_provider_feature(account_type_h accoun
 
 ACCOUNT_API int account_type_query_provider_feature_by_app_id(provider_feature_cb callback, const char *app_id, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_query_provider_feature_by_app_id start");
 
        ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
@@ -2264,8 +2119,6 @@ ACCOUNT_API int account_type_query_provider_feature_by_app_id(provider_feature_c
 
 ACCOUNT_API bool account_type_query_supported_feature(const char *app_id, const char *capability)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_query_supported_feature start");
 
        if (app_id == NULL || capability == NULL) {
@@ -2305,8 +2158,6 @@ ACCOUNT_API bool account_type_query_supported_feature(const char *app_id, const
 
 ACCOUNT_API int account_type_get_app_id(account_type_h account_type, char **app_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2327,8 +2178,6 @@ ACCOUNT_API int account_type_get_app_id(account_type_h account_type, char **app_
 
 ACCOUNT_API int account_type_get_service_provider_id(account_type_h account_type, char **service_provider_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2349,8 +2198,6 @@ ACCOUNT_API int account_type_get_service_provider_id(account_type_h account_type
 
 ACCOUNT_API int account_type_get_icon_path(account_type_h account_type, char **icon_path)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2371,8 +2218,6 @@ ACCOUNT_API int account_type_get_icon_path(account_type_h account_type, char **i
 
 ACCOUNT_API int account_type_get_small_icon_path(account_type_h account_type, char **small_icon_path)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2394,8 +2239,6 @@ ACCOUNT_API int account_type_get_small_icon_path(account_type_h account_type, ch
 
 ACCOUNT_API int account_type_get_multiple_account_support(account_type_h account_type, int *multiple_account_support)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_type)
                return ACCOUNT_ERROR_INVALID_PARAMETER;
 
@@ -2411,8 +2254,6 @@ ACCOUNT_API int account_type_get_multiple_account_support(account_type_h account
 
 ACCOUNT_API int account_type_get_provider_feature_all(account_type_h account_type, provider_feature_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
        ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO CALLBACK FUNCTION"));
 
@@ -2435,8 +2276,6 @@ ACCOUNT_API int account_type_get_provider_feature_all(account_type_h account_typ
 
 ACCOUNT_API int account_type_get_label_by_locale(account_type_h account_type, const char *locale, char **label)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
        ACCOUNT_RETURN_VAL((label != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("INVALID PARAMETER"));
 
@@ -2504,8 +2343,6 @@ ACCOUNT_API int account_type_get_label_by_locale(account_type_h account_type, co
 
 ACCOUNT_API int account_type_get_label(account_type_h account_type, account_label_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT HANDLE IS NULL"));
        ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO CALLBACK FUNCTION"));
 
@@ -2528,8 +2365,6 @@ ACCOUNT_API int account_type_get_label(account_type_h account_type, account_labe
 
 ACCOUNT_INTERNAL_API int account_type_insert_to_db(account_type_h account_type, int *account_type_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_insert_to_db starting");
 
        ACCOUNT_RETURN_VAL((account_type != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT TYPE HANDLE IS NULL"));
@@ -2577,8 +2412,6 @@ ACCOUNT_INTERNAL_API int account_type_insert_to_db(account_type_h account_type,
 
 ACCOUNT_INTERNAL_API int account_type_update_to_db_by_app_id(const account_type_h account_type, const char *app_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_update_to_db_by_app_id starting");
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -2611,8 +2444,6 @@ ACCOUNT_INTERNAL_API int account_type_update_to_db_by_app_id(const account_type_
 
 ACCOUNT_INTERNAL_API int account_type_delete_by_app_id(const char *app_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_delete_by_app_id starting");
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -2647,8 +2478,6 @@ ACCOUNT_INTERNAL_API int account_type_delete_by_app_id(const char *app_id)
 
 ACCOUNT_API int account_type_query_label_by_app_id(account_label_cb callback, const char *app_id, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_query_label_by_app_id starting");
 
        ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
@@ -2695,8 +2524,6 @@ ACCOUNT_API int account_type_query_label_by_app_id(account_label_cb callback, co
 
 ACCOUNT_API int account_type_query_by_app_id(const char *app_id, account_type_h *account_type)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_query_by_app_id starting");
 
        ACCOUNT_RETURN_VAL((app_id != 0), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("APP ID IS NULL"));
@@ -2743,8 +2570,6 @@ ACCOUNT_API int account_type_query_by_app_id(const char *app_id, account_type_h
 
 ACCOUNT_API int account_type_foreach_account_type_from_db(account_type_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_foreach_account_type_from_db starting");
 
        ACCOUNT_RETURN_VAL((callback != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("ACCOUNT Callback IS NULL"));
@@ -2795,8 +2620,6 @@ ACCOUNT_API int account_type_foreach_account_type_from_db(account_type_cb callba
 
 ACCOUNT_API int account_type_query_label_by_locale(const char *app_id, const char *locale, char **label)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_query_label_by_locale starting");
 
        ACCOUNT_RETURN_VAL((app_id != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("NO APP ID"));
@@ -2840,8 +2663,6 @@ ACCOUNT_API int account_type_query_label_by_locale(const char *app_id, const cha
 
 ACCOUNT_API int account_type_query_by_provider_feature(account_type_cb callback, const char *key, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_query_by_provider_feature starting");
 
        ACCOUNT_RETURN_VAL((key != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("capability_type IS NULL"));
@@ -2893,8 +2714,6 @@ ACCOUNT_API int account_type_query_by_provider_feature(account_type_cb callback,
 
 ACCOUNT_API int account_type_query_app_id_exist(const char *app_id)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        _INFO("account_type_query_app_id_exist starting");
        int error_code = ACCOUNT_ERROR_NONE;
 
@@ -2979,8 +2798,6 @@ static void _account_subscribe_vconf_callback(keynode_t *key, void *user_data)
 
 ACCOUNT_API int account_subscribe_create(account_subscribe_h *account_subscribe)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        if (!account_subscribe) {
                ACCOUNT_SLOGE("account is NULL.\n", __FUNCTION__, __LINE__);
                return ACCOUNT_ERROR_INVALID_PARAMETER;
@@ -2999,8 +2816,6 @@ ACCOUNT_API int account_subscribe_create(account_subscribe_h *account_subscribe)
 
 ACCOUNT_API int account_subscribe_notification(account_subscribe_h account_subscribe, account_event_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_subscribe != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account subscribe handle is NULL.\n",  __FUNCTION__, __LINE__));
 
        account_subscribe_s *tmp = (account_subscribe_s *)account_subscribe;
@@ -3025,8 +2840,6 @@ ACCOUNT_API int account_subscribe_notification(account_subscribe_h account_subsc
 
 ACCOUNT_API int account_unsubscribe_notification(account_subscribe_h account_subscribe)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_subscribe != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account subscribe handle is NULL.\n",  __FUNCTION__, __LINE__));
 
        account_subscribe_s *tmp = (account_subscribe_s *)account_subscribe;
@@ -3103,8 +2916,6 @@ static void _account_subscribe_vconf_callback_ex(keynode_t *key, void *user_data
 
 ACCOUNT_API int account_unsubscribe_notification_ex(account_subscribe_h account_subscribe)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_subscribe != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account subscribe handle is NULL.\n",  __FUNCTION__, __LINE__));
 
        account_subscribe_s *tmp = (account_subscribe_s *)account_subscribe;
@@ -3122,8 +2933,6 @@ ACCOUNT_API int account_unsubscribe_notification_ex(account_subscribe_h account_
 
 ACCOUNT_API int account_subscribe_notification_ex(account_subscribe_h account_subscribe, account_event_cb callback, void *user_data)
 {
-       CHECK_ACCOUNT_SUPPORTED(ACCOUNT_FEATURE);
-
        ACCOUNT_RETURN_VAL((account_subscribe != NULL), {}, ACCOUNT_ERROR_INVALID_PARAMETER, ("(%s)-(%d) account subscribe handle is NULL.\n",  __FUNCTION__, __LINE__));
 
        account_subscribe_s *tmp = (account_subscribe_s *)account_subscribe;