_AI_RESTART,
_AI_MULTI,
_AI_HWACC,
+ _AI_PKGID,
_AI_MAX,
};
#define _AI_START _AI_NAME /* start index */
[_AI_RESTART] = { "AutoRestart", AIT_RESTART, },
[_AI_MULTI] = { "Multiple", AIT_MULTI, },
[_AI_HWACC] = { "Hwacceleration", AIT_HWACC, },
+ [_AI_PKGID] = { "PkgId", AIT_PKGID, },
};
struct appinfo {
char *exec;
char *type;
char *appid;
+ char *pkgid;
bool multiple;
bool onboot;
bool restart;
r = pkgmgrinfo_appinfo_get_exec(handle, &exec);
c->val[_AI_EXEC] = strdup(exec);
+ r = pkgmgrinfo_appinfo_get_pkgid(handle, &pkgid);
+ c->val[_AI_PKGID] = strdup(pkgid);
+
r = pkgmgrinfo_appinfo_get_apptype(handle, &type);
if(strncmp(type, "capp", 4) == 0 ) {
c->val[_AI_TYPE] = strdup("rpm");
char *multiple = NULL;
char *app_path = NULL;
char *pkg_type = NULL;
+ char *pkg_id = NULL;
int pid = -1;
char tmp_pid[MAX_PID_STR_BUFSZ];
char *hwacc;
- int location = -1;
- app2ext_handle *app2_handle = NULL;
-
if(strncmp(appid, "org.tizen.sat-ui", 18) == 0) {
pid = __sat_ui_launch(appid, kb, cmd, caller_pid, fd);
return pid;
componet = appinfo_get_value(ai, AIT_COMP);
app_path = appinfo_get_value(ai, AIT_EXEC);
pkg_type = appinfo_get_value(ai, AIT_TYPE);
+ pkg_id = appinfo_get_value(ai, AIT_PKGID);
+
+ ret = app2ext_enable_external_pkg(pkg_id);
+ if (ret < 0)
+ _E("pass enable external pkg");
+
if (componet && strncmp(componet, "ui", 2) == 0) {
multiple = appinfo_get_value(ai, AIT_MULTI);
if (!multiple || strncmp(multiple, "false", 5) == 0) {
_E("unkown application");
}
- location = app2ext_get_app_location(appid);
- if (location == APP2EXT_SD_CARD)
- {
- app2_handle = app2ext_init(APP2EXT_SD_CARD);
- if (app2_handle == NULL) {
- _E("app2_handle : app2ext init failed\n");
- return -1;
- }
-
- ret = app2_handle->interface.enable(appid);
- if (ret) {
- _E("app2_handle : app enable API fail Reason %d", ret);
- }
-
- app2ext_deinit(app2_handle);
- }
-
__real_send(fd, pid);
if(pid > 0) {