Send request for locking input in case of implicit launch 00/60800/2
authorJunghoon Park <jh9216.park@samsung.com>
Wed, 2 Mar 2016 09:08:01 +0000 (18:08 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Wed, 2 Mar 2016 09:09:45 +0000 (18:09 +0900)
Change-Id: I3110b01103bcaccdf694c7b69007f57295a55585
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
include/aul_cmd.h
src/service.c

index 63ce4ba..53d8b13 100644 (file)
@@ -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
 };
 
index e8b4d49..f587a07 100755 (executable)
@@ -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) {