{
int value = 0;
+ r = _AccessController::CheckSystemPrivilege(__currentPkgId, _PRV_SETTING);
+ SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_PRIVILEGE_DENIED, r, "The application[%ls] does not have the privilege to call this method.", __currentPkgId.GetPointer());
+
pKey = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_KEY);
SysTryCatch(NID_SYS, pKey != null, r = E_SYSTEM, r, "There is no key information.");
pValue = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_VALUE);
{
bool value = false;
+ r = _AccessController::CheckSystemPrivilege(__currentPkgId, _PRV_SETTING);
+ SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_PRIVILEGE_DENIED, r, "The application[%ls] does not have the privilege to call this method.", __currentPkgId.GetPointer());
+
pKey = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_KEY);
SysTryCatch(NID_SYS, pKey != null, r = E_SYSTEM, r, "There is no key information.");
pValue = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_VALUE);
}
else if(*pCommand == SETTING_SERVICE_COMMAND_SET_STRING)
{
+
+ r = _AccessController::CheckSystemPrivilege(__currentPkgId, _PRV_SETTING);
+ SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_PRIVILEGE_DENIED, r, "The application[%ls] does not have the privilege to call this method.", __currentPkgId.GetPointer());
+
pKey = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_KEY);
SysTryCatch(NID_SYS, pKey != null, r = E_SYSTEM, r, "There is no key information.");
pValue = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_VALUE);
{
bool value = false;
+ r = _AccessController::CheckSystemPrivilege(__currentPkgId, _PRV_SETTING);
+ SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_PRIVILEGE_DENIED, r, "The application[%ls] does not have the privilege to call this method.", __currentPkgId.GetPointer());
+
pKey = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_KEY);
SysTryCatch(NID_SYS, pKey != null, r = E_SYSTEM, r, "There is no key information.");
pValue = (String*)request.GetAt(SETTING_SERVICE_IPC_MSG_VALUE);