#include <dlog.h>
#include <app_control.h>
+#include <app_control_internal.h>
#ifdef LOG_TAG
#undef LOG_TAG
app_control_reply_cb reply_cb;
void *user_data;
char callee[255] = {0, };
- int ret = 0;
+ char instance_id[256] = {0,};
+ int ret;
if (data == NULL)
return;
app_control_set_app_id(reply, callee);
LOGI("app control async result callback callee pid:%d", launched_pid);
+ ret = aul_app_get_instance_id_bypid(launched_pid, instance_id,
+ sizeof(instance_id));
+ if (ret == AUL_R_OK) {
+ app_control_set_instance_id(reply, instance_id);
+ LOGI("instance id(%s)", instance_id);
+ }
+
result = APP_CONTROL_RESULT_APP_STARTED;
request = request_context->app_control;
user_data = request_context->user_data;