fix common service launch timing
authorYoung Ik Cho <youngik.cho@samsung.com>
Mon, 5 Aug 2013 12:50:56 +0000 (21:50 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Mon, 5 Aug 2013 12:58:13 +0000 (21:58 +0900)
Change-Id: Id7dc2914f96f62c882e893d707088dd007c1576e
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
inc/AppService.h [changed mode: 0755->0644]
res/system-services.ini
src/AppService.cpp [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 606bf06..b2d284e
@@ -100,6 +100,7 @@ private:
        bool LaunchUserServices(void);
        bool LaunchChannelService(void);
        bool LaunchSecurityService(void);
+       bool LaunchCommonService(void);
        void ReadySystemServices(void);
        void RegisterPreloadedAppCondition(void);
        Tizen::Base::Collection::ArrayList* GetPackageEventArgsN(const Tizen::App::PackageId& packageId);
index 2beba81..068bcd9 100644 (file)
@@ -5,6 +5,7 @@ AppId=cp7ipabg4k.osp-channel-service
 Priority=High
 AppId=q7097a278m.osp-security-service
 #osp-common-service
+Priority=High
 AppId=sjjevolsjk.osp-common-service
 #osp-connectivity-service
 AppId=57r43275q7.osp-connectivity-service
old mode 100755 (executable)
new mode 100644 (file)
index 6c1adc7..c2228d6
@@ -172,6 +172,7 @@ AppService::OnAppInitialized(void)
        LaunchSecurityService();
        LaunchChannelService();
        ReadySystemServices();
+       LaunchCommonService();
 //     LaunchSystemServices();
 //     LaunchUserServices();
 //     InitializeServices();
@@ -433,6 +434,14 @@ AppService::LaunchSecurityService(void)
 }
 
 bool
+AppService::LaunchCommonService(void)
+{
+       SysLog(NID_APP, "Launching common service...");
+       __pContextMgr->AddSystemServiceApp(L"sjjevolsjk.osp-common-service");
+       return _AulServer::CreateProcess(L"sjjevolsjk.osp-common-service" ) == E_SUCCESS;
+}
+
+bool
 AppService::LaunchUserServices(void)
 {
        SysLog(NID_APP, "Enter.");