proc-monitor: Add support of missing componentbasedapp app type 84/315284/1 accepted/tizen/unified/20240731.010823 accepted/tizen/unified/dev/20240731.044748 accepted/tizen/unified/x/20240731.090026
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 26 Jul 2024 07:54:11 +0000 (16:54 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 29 Jul 2024 10:14:31 +0000 (19:14 +0900)
Component-based app contains the UI/Widget/Service components on one
process. This app type is added on Tizen 5.5. Before this, remained app
type except for ui/widget/service has been handled as GUI app type.

In order to remove the confusion, check the accurate app type name
to support "componentbasedapp" app type.

[1] https://docs.tizen.org/application/native/guides/applications/component-based-app/

Change-Id: I38f47fb826b37c312e79148dc6af2bcd6b3c4c16
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/process/proc-monitor.c

index 6f709e8..62c2319 100644 (file)
@@ -72,6 +72,7 @@
 #define APP_TYPE_UI                    "uiapp"
 #define APP_TYPE_WIDGET                        "widgetapp"
 #define APP_TYPE_WATCH                 "watchapp"
+#define APP_TYPE_COMPONENT_BASED       "componentbasedapp"
 #define APP_TYPE_ROBOT                 "robotapp"
 
 static int current_lcd_state;
@@ -1136,6 +1137,9 @@ static int get_app_type(char *pkgtype, int *apptype)
                *apptype = PROC_TYPE_GUI;
        } else if (!strncmp(pkgtype, APP_TYPE_ROBOT, sizeof(APP_TYPE_ROBOT))) {
                *apptype = PROC_TYPE_SERVICE;
+       } else if (!strncmp(pkgtype, APP_TYPE_COMPONENT_BASED,
+                               sizeof(APP_TYPE_COMPONENT_BASED))) {
+               *apptype = PROC_TYPE_GUI;
        } else {
                _E("Unknown pkgtype is not able to get app type");
                return -EINVAL;