#endif
#define KEY_SCREEN_SHAPE_CIRCLE "http://tizen.org/feature/screen.shape.circle"
-#define METADATA_SETUP_APPID "http://tizen.org/metadata/watch/setup-appid"
#define DEVICED_PATH_DISPLAY "/Org/Tizen/System/DeviceD/Display"
#define DEVICED_INTERFACE_DISPLAY "org.tizen.system.deviced.display"
char *tmp_appid = NULL;
ret = pkgmgrinfo_appinfo_get_appinfo(app_id, &handle);
- if (ret != PMINFO_R_OK)
+ if (ret != PMINFO_R_OK) {
+ LOGE("fail to get app info");
return -1;
+ }
- ret = pkgmgrinfo_appinfo_get_metadata_value(handle,
- METADATA_SETUP_APPID, &tmp_appid);
+ ret = pkgmgrinfo_appinfo_get_setup_appid(handle, &tmp_appid);
if (ret != PMINFO_R_OK) {
+ LOGE("fail to get setup appid");
pkgmgrinfo_appinfo_destroy_appinfo(handle);
return -1;
}