summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunwoo Kim <hwlove.kim@samsung.com>2013-07-01 21:08:31 +0900
committerHyunwoo Kim <hwlove.kim@samsung.com>2013-07-01 21:08:38 +0900
commit303104361f1cd7a839bf00e97cc026397a5a56e8 (patch)
tree85ba40bba867c23541105895dfa98afef7cf90c0
parent944a9c0d0753be4f13b37c479cedf5d4eb6cf0ad (diff)
downloadsecure-element-303104361f1cd7a839bf00e97cc026397a5a56e8.tar.gz
secure-element-303104361f1cd7a839bf00e97cc026397a5a56e8.tar.bz2
secure-element-303104361f1cd7a839bf00e97cc026397a5a56e8.zip
Revert "Revert "Added Feature check""
This reverts commit 944a9c0d0753be4f13b37c479cedf5d4eb6cf0ad. Change-Id: Ia03c6579ada6c3ba0dff44242b2031436e666882
-rw-r--r--src/FSecSeSecureElementService.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FSecSeSecureElementService.cpp b/src/FSecSeSecureElementService.cpp
index d550460..0e4fedb 100644
--- a/src/FSecSeSecureElementService.cpp
+++ b/src/FSecSeSecureElementService.cpp
@@ -14,6 +14,7 @@
* @brief This file contains implementation of Secure Element Service.
*/
#include <new>
+#include <FSys_SystemInfoImpl.h>
#include <FBaseSysLog.h>
#include <FBaseResult.h>
#include <FSecAccessController.h>
@@ -44,6 +45,10 @@ result
SecureElementService::Initialize(ISecureElementServiceEventListener* pListener)
{
result r = E_SUCCESS;
+ bool isSeSupported = false;
+
+ Tizen::System::_SystemInfoImpl::GetSysInfo(L"http://tizen.org/feature/network.secure_element", isSeSupported);
+ SysTryReturnResult(NID_SEC, isSeSupported == true, E_UNSUPPORTED_OPERATION, "Secure Element is not supported.");
r = AccessController::CheckPrivilege(L"http://tizen.org/privilege/secureelement");
SysTryReturnResult(NID_SEC, !IsFailed(r), E_PRIVILEGE_DENIED, "[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.");