summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-03-23 17:39:02 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2017-03-28 03:24:00 -0700
commitf090c4e6850956341d63c0e6982561d60a82debd (patch)
tree790f22a656c345c2a68d3a0b637c3552750d204f
parent8eeea9e0db78fdfc195dedaf96ff1aa15e513ec1 (diff)
downloadlaunchpad-f090c4e6850956341d63c0e6982561d60a82debd.tar.gz
launchpad-f090c4e6850956341d63c0e6982561d60a82debd.tar.bz2
launchpad-f090c4e6850956341d63c0e6982561d60a82debd.zip
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> (cherry picked from commit fd8e1ee299d5a115e7362a659e8a147eed9c3df5)
-rw-r--r--inc/launchpad_common.h1
-rwxr-xr-xsrc/launchpad.c1
-rw-r--r--src/launchpad_lib.c1
3 files changed, 3 insertions, 0 deletions
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);