set_app_privilege() -> perm_app_set_privilege()
[Issue#] N/A
[Problem] set_app_privilege() will be deprecated.
[Cause] API updates on libprivilege-control.
[Solution] Replaced the deprecated API.
// this code prevent that widget launch with "root" permission,
// when developers launch by command in the shell
- set_app_privilege(
+ perm_app_set_privilege(
DPL::ToUTF8String(m_widgetModel->TizenId).c_str(),
m_widgetModel->Type.Get().getApptypeToString().c_str(),
DPL::ToUTF8String(m_widgetModel->InstallPath.Get()).c_str()
_E("set_app_smack_label() failed");
}
- _D("set_app_privilege(%s)", appPath.c_str());
- set_app_privilege(tzPkgId.c_str(), PRIVILEGE_APP_TYPE, appPath.c_str());
+ _D("perm_app_set_privilege(%s)", appPath.c_str());
+ perm_app_set_privilege(tzPkgId.c_str(), PRIVILEGE_APP_TYPE, appPath.c_str());
}
/* This type of message is received when widget is restarting
const char* pkg_type,
const char* app_path)
{
- return set_app_privilege(pkg_name, pkg_type, app_path);
+ return perm_app_set_privilege(pkg_name, pkg_type, app_path);
}
#else