Fix to call cleanup of keyguard after container deletion 14/128514/1
authorSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 10 May 2017 08:01:45 +0000 (17:01 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Wed, 10 May 2017 08:01:45 +0000 (17:01 +0900)
Change-Id: I910ce44d7c8ce963e1e6fd90fa2161fbba3bc503
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
tools/apps/setup-wizard/src/main.c

index 9775270..afa683b 100644 (file)
@@ -53,6 +53,13 @@ static void __krate_request_done(const char *from, const char *info, void *user_
                app_control_set_app_id(app_control, KASKIT_PACKAGE);
                __launch_krate_app(ad->krate_manager, ad->krate_name, app_control);
                app_control_destroy(app_control);
+       } else if (!strcmp(ad->mode, "remove")) {
+               app_control_create(&app_control);
+               app_control_set_app_id(app_control, KEYGUARD_PACKAGE);
+               snprintf(uri, sizeof(uri), "krate://cleanup/%s", ad->krate_name);
+               app_control_set_uri(app_control, uri);
+               app_control_send_launch_request(app_control, NULL, NULL);
+               app_control_destroy(app_control);
        }
 
        ad->request_done = true;