Set global user as the owner of preloaded applications and
applications installed globally.
Change-Id: Idb3f194aacefa7afaa047de6bfdfdb1bee6b8736
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
{
uid_t globalUid = getGlobalUserId();
- if (uid == 0)
- uid = globalUid;
-
if (installationType == SM_APP_INSTALL_NONE)
- installationType = (uid == globalUid) ? SM_APP_INSTALL_GLOBAL :
- SM_APP_INSTALL_LOCAL;
+ installationType = (uid == 0) ? SM_APP_INSTALL_GLOBAL : SM_APP_INSTALL_LOCAL;
+ if ((installationType == SM_APP_INSTALL_GLOBAL)
+ || (installationType == SM_APP_INSTALL_PRELOADED))
+ uid = globalUid;
}
void ServiceImpl::installRequestMangle(app_inst_req &req, std::string &cynaraUserStr)