Change-Id: I905f3b3e1e65f9659164358b254c3fb50e8bb261
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
const unsigned int windowId = GetActiveWindow();
const int processId = GetProcessId(windowId);
char pkgname[255] = {0, };
- aul_app_get_pkgname_bypid(processId, pkgname, 255);
+ if (aul_app_get_pkgname_bypid(processId, pkgname, 255) != AUL_R_OK)
+ {
+ SysSecureLog(NID_APP, "Failed to get the package name from pid=%x appId=%ls", processId, appId.GetPointer());
+ return E_SYSTEM;
+ }
appId = _Aul::GetRealAppId(String(pkgname));