From: Junghoon Park Date: Wed, 2 Mar 2016 09:08:01 +0000 (+0900) Subject: Send request for locking input in case of implicit launch X-Git-Tag: submit/tizen/20160302.105535~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F60800%2F2;p=platform%2Fcore%2Fappfw%2Faul-1.git Send request for locking input in case of implicit launch Change-Id: I3110b01103bcaccdf694c7b69007f57295a55585 Signed-off-by: Junghoon Park --- diff --git a/include/aul_cmd.h b/include/aul_cmd.h index 63ce4ba..53d8b13 100644 --- a/include/aul_cmd.h +++ b/include/aul_cmd.h @@ -84,6 +84,7 @@ enum app_cmd { APP_SET_APP_CONTROL_DEFAULT_APP, APP_UNSET_APP_CONTROL_DEFAULT_APP, APP_START_ASYNC, + APP_INPUT_LOCK, APP_CMD_MAX }; diff --git a/src/service.c b/src/service.c index e8b4d49..f587a07 100755 --- a/src/service.c +++ b/src/service.c @@ -695,6 +695,13 @@ API int aul_svc_run_service(bundle *b, int request_code, return aul_svc_run_service_for_uid(b, request_code, cbfunc, data, getuid()); } +static void __request_input_lock(uid_t uid) +{ + unsigned char dummy[1] = { 0 }; + + aul_sock_send_raw(AUL_UTIL_PID, uid, APP_INPUT_LOCK, dummy, 0, AUL_SOCK_NONE); +} + API int aul_svc_run_service_for_uid(bundle *b, int request_code, aul_svc_res_fn cbfunc, void *data, uid_t uid) { @@ -753,6 +760,8 @@ API int aul_svc_run_service_for_uid(bundle *b, int request_code, goto end; } + __request_input_lock(uid); + /*uri*/ pkgname = _svc_db_get_app(info.op, info.origin_mime, info.uri, uid); if (pkgname != NULL) {