From: Hwankyu Jhun Date: Thu, 23 Mar 2017 08:39:02 +0000 (+0900) Subject: Send app startup signal X-Git-Tag: accepted/tizen/common/20170330.152049~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd8e1ee299d5a115e7362a659e8a147eed9c3df5;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Send app startup signal After calling security_manager_prepare_app(), the child process sends the app startup signal to the amd. This signal is for handling privacy popup. Change-Id: I46c51bb3ffc42c8f0271815fc8bf5e0f69f011ad Signed-off-by: Hwankyu Jhun --- diff --git a/inc/launchpad_common.h b/inc/launchpad_common.h index 0d4ef6e..68b1e93 100644 --- a/inc/launchpad_common.h +++ b/inc/launchpad_common.h @@ -48,6 +48,7 @@ #define LAUNCHPAD_LAUNCH_SIGNAL 85 #define LAUNCHPAD_DEAD_SIGNAL 61 +#define APP_STARTUP_SIGNAL 91 #define PAD_LOADER_ID_STATIC 0 #define PAD_LOADER_ID_DIRECT 1 diff --git a/src/launchpad.c b/src/launchpad.c index 4087450..5cf71de 100755 --- a/src/launchpad.c +++ b/src/launchpad.c @@ -714,6 +714,7 @@ static int __prepare_exec(const char *appid, const char *app_path, return PAD_ERR_REJECTED; } + _send_cmd_to_amd(APP_STARTUP_SIGNAL); if (bundle_get_type(kb, AUL_K_SDK) == BUNDLE_TYPE_NONE) _setup_stdio(basename(app_path)); diff --git a/src/launchpad_lib.c b/src/launchpad_lib.c index 70a600e..927046e 100644 --- a/src/launchpad_lib.c +++ b/src/launchpad_lib.c @@ -77,6 +77,7 @@ static int __prepare_exec(const char *appid, const char *app_path, return -1; } + _send_cmd_to_amd(APP_STARTUP_SIGNAL); _setup_stdio(basename(app_path)); ret = buxton_open(&bxt_cli, NULL, NULL);