+ return is_wakeup_engine;
+}
+
+bool CServiceMain::is_voice_assistant(const pkgmgrinfo_appinfo_h handle)
+{
+ bool is_voice_assistant = false;
+ char* metadata_value = NULL;
+ const char* voice_assistant_metadata = "http://tizen.org/metadata/multi-assistant/name";
+ int ret = pkgmgrinfo_appinfo_get_metadata_value(handle, voice_assistant_metadata, &metadata_value);
+ if (PMINFO_R_OK == ret && NULL != metadata_value) {
+ is_voice_assistant = true;
+ } else {
+ LOGE("pkgmgrinfo_appinfo_get_metadata_value failed! error code=%d", ret);
+ }
+ return is_voice_assistant;
+}
+
+static int pkg_app_list_cb(const pkgmgrinfo_appinfo_h handle, void *user_data)
+{
+ if (!g_service_main) return 0;
+
+ int *result = (int*)user_data;
+ if (result) {
+ if (g_service_main->is_voice_assistant(handle)) {
+ *result = 1;
+ } else if (g_service_main->is_wakeup_engine(handle)) {
+ *result = 1;
+ }
+ }