#define ALARM_TYPE_VOLATILE 0x02 /*< volatile */
#define ALARM_TYPE_NOLAUNCH 0x04 /*<without launch */
#define ALARM_TYPE_INEXACT 0x08 /*<inexact alarm */
+#define ALARM_TYPE_EXACT_SERVICE_APP 0x10 /*<exact alarm for in-house service app*/
/**
char *app_type = NULL;
ret = pkgmgrinfo_appinfo_get_component_type(handle, &app_type);
if (app_type && strcmp("uiapp", app_type) == 0) {
+ if (alarm_type & ALARM_TYPE_EXACT_SERVICE_APP) {
+ ALARM_MGR_EXCEPTION_PRINT("[%s] is ui application. it is not allowed", app_id);
+ _return = false;
+ goto out;
+ }
ALARM_MGR_LOG_PRINT("[%s] is ui application. It is allowed", app_id);
_return = true;
goto out;
.has_bg = false
};
- if (alarm_type & ALARM_TYPE_INEXACT) {
+ if (alarm_type & ALARM_TYPE_INEXACT || alarm_type & ALARM_TYPE_EXACT_SERVICE_APP) {
ret = pkgmgrinfo_appinfo_foreach_background_category(handle, __bg_category_func, &info);
if (ret == PMINFO_R_OK && info.has_bg) {
- ALARM_MGR_LOG_PRINT("[%s] has background categories.", app_id);
+ ALARM_MGR_LOG_PRINT("[%s] has background categories. It is allowed", app_id);
_return = true;
goto out;
} else {
- ALARM_MGR_EXCEPTION_PRINT("Failed to foreach background category. [%s] is not allowed\n", app_id);
+ ALARM_MGR_EXCEPTION_PRINT("Failed to foreach background category. [%s] is not allowed", app_id);
}
}
}