#include "bm_bt_util.h"
#include "bm_log.h"
+#define DEFAULT_APPID "Tizen"
+
/*
* To get AppID from PID - Needs to be handled by the respective framework owners:
* The PID might become outdated by the time data is read, which will create problems in mapping the application.
ret = aul_app_get_appid_bypid_for_uid(pid, appid, sizeof(appid), uid);
- if (ret < 0)
- _E("fail to get current appid ret=[%d], appid=%s\n", ret, appid);
+ if (ret < 0) {
+ _E("fail to get current appid ret=[%d]\n", ret);
+ appid_ret = strdup(DEFAULT_APPID);
+ } else {
+ appid_ret = strdup(appid);
+ }
- appid_ret = strdup(appid);
if (appid_ret == NULL)
_E("Memory Allocation Failed");