"http://tizen.org/privilege/datasharing";
constexpr const char kPrivilegeCheckBypass[] =
"http://tizen.org/rpc-port/privilege-check-bypass";
+constexpr const char kPkgmgrAppId[] = "org.tizen.appfw.pkgmgr";
+constexpr const char kPkgmgrPortName[] = "PkgMgr";
std::unordered_map<int, int> pid_map;
std::string tts_engine_default;
return AMD_CYNARA_RET_ERROR;
}
+ if (app_id == std::string(kPkgmgrAppId) &&
+ port_name == std::string(kPkgmgrPortName)) {
+ SECURE_LOGD("Bypass privilege check for PkgMgr");
+ return AMD_CYNARA_RET_ALLOWED;
+ }
+
uid_t target_uid = amd_request_get_target_uid(req);
if (amd_appinfo_is_platform_app(app_id.c_str(), target_uid)) {
amd_app_property_h app_property = amd_app_property_find(target_uid);