Work around for rule loading to allow email-service and contacts-servce access to...
authorBumjin Im <bj.im@samsung.com>
Fri, 12 Jul 2013 08:41:11 +0000 (17:41 +0900)
committerBumjin Im <bj.im@samsung.com>
Fri, 12 Jul 2013 08:41:11 +0000 (17:41 +0900)
Change-Id: I272a8b29058a736131046e0b3be2a6103e0f62e0

rule_loader/rule_loader.c

index ba8c39e..3d6fd8c 100644 (file)
@@ -56,6 +56,20 @@ int main(int argc, char * argv[])
         fprintf(log_file, "DONE\n");
     }
 
+   ret = add_app_first_run_rules("email-service");
+   if (ret < 0)
+       fprintf(log_file,"Error in add_app_first_run_rules()\n");
+   else
+       //mark rules as loaded
+       mark_rules_as_loaded("email-service"); 
+
+   ret = add_app_first_run_rules("contacts-service");
+   if (ret < 0)
+       fprintf(log_file,"Error in add_app_first_run_rules()\n");
+   else
+       //mark rules as loaded
+       mark_rules_as_loaded("contacts-service"); 
+
 error:
     //cleaning up
     if (installed_app_list != NULL) {