_AppArg resultArg;
String* pDataId = null;
result r = E_SUCCESS;
- int ret = -1;
+ //int ret = -1;
_AppControlManager* pAppMgr = _AppControlManager::GetInstance();
SysTryReturnResult(NID_APP, pAppMgr, E_SYSTEM, "Failed to get instance.");
resultArg.UpdateKeyValue(OSP_K_DATACONTROL_PROTOCOL_VERSION, version);
//resultArg.Print();
- r = _Aul::SendResult(resultArg.GetBundle(), static_cast< appsvc_result_val >(0));
+ r = _Aul::SendResult(resultArg.GetBundle(), static_cast< appsvc_result_val >(0), false, false);
SysTryCatch(NID_APP, !IsFailed(r), , r, "[%s] Failed to send result.", GetErrorMessage(r));
// Erases _AppArg after sending the result back to the caller
result
_DataControlProviderManagerImpl::AllowAccess(const AppId& appId)
{
- if (IsCached(appId) == false)
- {
+ //if (IsCached(appId) == false)
+ //{
const PackageId& pkgId = _PackageManagerImpl::GetPackageIdByAppId(appId);
unique_ptr< char[] > pPkgId(_StringConverter::CopyToCharArrayN(pkgId));
SysTryReturnResult(NID_APP, pPkgId != null, E_SYSTEM, "The method cannot proceed due to a severe system error.");
SysTryReturnResult(NID_APP, ret == 0, E_SYSTEM,
"Failed to call security_server_app_give_access(), provider: %s, ret: %d", pPkgId.get(), ret);
- Cache(appId);
- }
+ // Cache(appId);
+ //}
SysLog(NID_APP, "[DC_PROV_SEND] Allow %ls to access", appId.GetPointer());
return E_SUCCESS;