Send app startup signal 48/120448/5
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 23 Mar 2017 08:39:02 +0000 (17:39 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 23 Mar 2017 08:39:02 +0000 (17:39 +0900)
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 <h.jhun@samsung.com>
inc/launchpad_common.h
src/launchpad.c
src/launchpad_lib.c

index 0d4ef6e..68b1e93 100644 (file)
@@ -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
index 4087450..5cf71de 100755 (executable)
@@ -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));
 
index 70a600e..927046e 100644 (file)
@@ -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);