SET(provider_deps "glib-2.0 dlog json-glib-1.0 iotcon capi-appfw-app-manager iotcon vconf capi-network-bluetooth capi-network-wifi-direct capi-appfw-application bundle capi-network-connection cynara-creds-gdbus cynara-client cynara-session capi-appfw-package-manager sqlite3 syspopup-caller")
SET(provider_deps "${provider_deps} openssl libwebsockets libcurl nsd-dns-sd")
+# Wearable profile
+IF("${PROFILE}" STREQUAL "wearable")
+ ADD_DEFINITIONS("-D_WEARABLE_")
+ENDIF("${PROFILE}" STREQUAL "wearable")
+
# Mobile profile
IF("${PROFILE}" STREQUAL "mobile")
ADD_DEFINITIONS("-D_MOBILE_")
ACManagerPolicy acManagerPolicy = ACMANAGER_POLICY_U;
IF_FAIL_RETURN_TAG(AddACLDevice(macAddress, deviceName, ip.c_str(), &acManagerPolicy) == ACLResult_OK, CONV_ERROR_INVALID_OPERATION, _E, "AddACLDevice failed");
-
+#if defined(_WEARABLE_)
+ acManagerPolicy = ACMANAGER_POLICY_P;
+#endif
if (acManagerPolicy == ACMANAGER_POLICY_P) {
_D("PERMITTED");
policy = CONV_ACCESS_CONTROL_PERMITTED;
_D("Device IP : %s, Mac : %s", ip.c_str(), macAddress);
ACManagerPolicy acManagerPolicy = ACMANAGER_POLICY_U;
-
+#if !defined(_WEARABLE_)
IF_FAIL_RETURN_TAG(GetACLState(macAddress, &acManagerPolicy) == ACLResult_OK, CONV_ERROR_INVALID_OPERATION, _E, "ACL check failed");
if (acManagerPolicy == ACMANAGER_POLICY_P) {
_D("PERMITTED");
_D("Device is not permitted %d", acManagerPolicy);
return CONV_ERROR_INVALID_OPERATION;
}
-
+#endif
app_control_h app_control;
int reply = 0;
char *appctl_char;