#include <telephony-client/ITapiModem.h>
#include <vconf.h>
+#include <FIo.h>
#include <FBaseSysLog.h>
#include <FSysSystemTime.h>
r = __pCommunicationDispatcher->AddCommunicationEventListener(*this);
SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "It is failed to add event listener");
- __pPowerManager = _PowerManager::GetInstance();
- SysTryCatch(NID_SYS, __pPowerManager != null, r = E_SYSTEM, E_SYSTEM, "_pPowerManager initiate is failed");
+ if(Tizen::Io::File::IsFileExist(L"/opt/usr/etc/common_service_for_powermanager") != true)
+ {
+ __pPowerManager = _PowerManager::GetInstance();
+ SysTryCatch(NID_SYS, __pPowerManager != null, r = E_SYSTEM, E_SYSTEM, "_pPowerManager initiate is failed");
+ }
pAppManagerImpl = _AppManagerImpl::GetInstance();
SysTryCatch(NID_SYS, pAppManagerImpl != null, r = E_SYSTEM, E_SYSTEM, "It is failed to get _AppManagerImpl class.");