bool TaskSmack::setLabelForSharedDir(const char* pkgId)
{
/* /shared directory */
- if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(pkgId,
m_context.locations->getSharedRootDir().c_str(),
APP_PATH_ANY_LABEL, "_")) {
_W("Add label to %s", m_context.locations->getUserDataRootDir().c_str());
}
/* /shared/res directory */
- if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(pkgId,
m_context.locations->getSharedResourceDir().c_str(),
APP_PATH_ANY_LABEL, "_")) {
_W("Add label to %s", m_context.locations->getSharedResourceDir().c_str());
_D("sha1 label string : %s", sha1String.c_str());
- if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(pkgId,
m_context.locations->getSharedTrustedDir().c_str(),
APP_PATH_GROUP_RW, sha1String.c_str())) {
_W("Add label to %s", m_context.locations->getBinaryDir().c_str());
}
/* /shared/data directory */
- if (PC_OPERATION_SUCCESS != perm_app_setup_path(m_pkgId,
+ if (PC_OPERATION_SUCCESS != perm_app_setup_path(pkgId,
m_context.locations->getSharedDataDir().c_str(),
APP_PATH_PUBLIC_RO)) {
_W("Add label to %s", m_context.locations->getSharedDataDir().c_str());