Add appsvc alias feature for tv profile 56/286656/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 11 Jan 2023 09:05:45 +0000 (09:05 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 11 Jan 2023 09:05:45 +0000 (09:05 +0000)
If the profile is tv, the library does not check whether the alias appid
exists or not.

Change-Id: I504d6970a334664633a6aff4dee456cee8691653
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_svc.cc
src/aul_util.h

index df63a25..325423f 100644 (file)
@@ -460,9 +460,11 @@ extern "C" API int aul_svc_set_appid(bundle* b, const char* appid) {
     return AUL_SVC_RET_EINVAL;
   }
 
-  std::string alias_id = ::GetAliasAppId(appid);
-  if (!alias_id.empty())
-    appid = alias_id.c_str();
+  if (TIZEN_FEATURE_APPSVC_ALIAS) {
+    std::string alias_id = ::GetAliasAppId(appid);
+    if (!alias_id.empty())
+      appid = alias_id.c_str();
+  }
 
   return ::SetBundle(b, AUL_SVC_K_PKG_NAME, appid);
 }
index ab86e88..9885415 100644 (file)
@@ -62,6 +62,7 @@ tizen_profile_t _get_tizen_profile(void);
 
 #define TIZEN_FEATURE_SOCKET_TIMEOUT (_get_tizen_profile() & TIZEN_PROFILE_TV)
 #define TIZEN_FEATURE_SHARE_PANEL (_get_tizen_profile() & TIZEN_PROFILE_MOBILE)
+#define TIZEN_FEATURE_APPSVC_ALIAS (!(_get_tizen_profile() & TIZEN_PROFILE_TV))
 
 #ifdef __cplusplus
 }