Use security_server_app_give_access() API for updating smack rule
[platform/framework/native/appfw.git] / src / app / FApp_AppImpl.cpp
index 1fad052..7b187c4 100644 (file)
@@ -890,7 +890,7 @@ _AppImpl::OnDataControlRequestReceived(const _AppArg& arg, RequestId reqId)
                pInsertMap->Construct();
 
                SysLog(NID_APP, "[DC_PROV_RECV] version: %ls", version.GetPointer());
-               if (version == L"ver_2.1.0.2")
+               if (version == L"ver_2.1.0.2" || version == L"ver_2.1.0.3")
                {
                        pTmpPath = dynamic_cast< String* >(pList->GetAt(2)); // request list[2]: path
                        SysTryCatch(NID_APP, pTmpPath != null, , E_SYSTEM, "[E_SYSTEM] invalid request");
@@ -981,7 +981,7 @@ _AppImpl::OnDataControlRequestReceived(const _AppArg& arg, RequestId reqId)
                pUpdateMap->Construct();
 
                SysLog(NID_APP, "[DC_PROV_RECV] version: %ls", version.GetPointer());
-               if (version == L"ver_2.1.0.2")
+               if (version == L"ver_2.1.0.2" || version == L"ver_2.1.0.3")
                {
                        pTmpPath = dynamic_cast< String* >(pList->GetAt(2)); // request list[2]: path
                        SysTryCatch(NID_APP, pTmpPath != null, , E_SYSTEM, "[E_SYSTEM] invalid request");