/sbin/ldconfig
chsmack -a "User::Pkg::org.example.fmw_update_service" /opt/usr/home/owner/apps_rw/org.example.fmw_update_service/data/*
+chsmack -a "User::Pkg::org.example.fmw_update_service" /opt/usr/home/owner/apps_rw/org.example.fmw_update_service/data
chown owner:users /opt/usr/home/owner/apps_rw/org.example.fmw_update_service/data/*
+chown owner:system_share /opt/usr/home/owner/apps_rw/org.example.fmw_update_service/data/
+
%postun -p /sbin/ldconfig
// init oc stack. oc process
if (init_oc_stack() != 0) {
- FWR_LOGE("Failed set_state_changed_cb");
+ FWR_LOGE("Failed init_oc_stack");
}
// init default res. fmw res.
char *security_sql_db_file = g_strconcat(_get_app_data_path(), OC_SECURITY_SQL_DB_FILE_NAME, NULL);
+ FWR_LOGD("security_sql_db_file[%s]", security_sql_db_file);
+
if (OCInitPM(security_sql_db_file) == OC_STACK_OK) {
- FWR_LOGD("OCInitPM() is succeeded!\n");
+ FWR_LOGD("OCInitPM() is succeeded!");
} else {
- FWR_LOGD("OCInitPM() is failed");
+ FWR_LOGE("OCInitPM() is failed");
return -1;
}
free(security_sql_db_file);
OC_RSRVD_INTERFACE_DEFAULT,
"/sec/aircon/0",
_handle_oc_entity, NULL,
- OC_DISCOVERABLE) != OC_STACK_OK) {
+ OC_DISCOVERABLE|OC_OBSERVABLE) != OC_STACK_OK) {
#endif
FWR_LOGD("OCCreateResource() failed\n");
return -1;
#else
if (!OCRepPayloadGetPropString(payload, USER_ID, &loginDetails.uid))
FWR_LOGD("Can't get 'uid'\n");
+ else
+ FWR_LOGD("uuid[%s]", loginDetails.uid);
if (!OCRepPayloadGetPropString(payload, ACCESS_TOKEN, &loginDetails.accessToken))
FWR_LOGD("Can't get 'access_token'\n");
+ else
+ FWR_LOGD("accessToken[%s]", loginDetails.accessToken);
+
#endif
}
<label>fmw_update_service</label>
<icon>fmw_update_service.png</icon>
</service-application>
+ <privileges>
+ <privilege>http://tizen.org/privilege/internet</privilege>
+ <privilege>http://tizen.org/privilege/network.get</privilege>
+ </privileges>
</manifest>