Register a new appid for dynamic box and its symbolic link to /usr/bin/WebProcess
authorYunchan Cho <yunchan.cho@samsung.com>
Mon, 26 Aug 2013 09:04:58 +0000 (18:04 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 10 Sep 2013 10:20:10 +0000 (10:20 +0000)
commit03dd9db6f0df82df0df091321467fceedd22199f
tree7b692f18e272ff80432cc550ecc095f156e08699
parenta56f7a3b3aa6d5bf67c9d5c1dc03e75b50172531
Register a new appid for dynamic box and its symbolic link to /usr/bin/WebProcess

- Tizen application is registered to app_info DB on installation time, hence
  this change needs to be done in wrt-installer

[Issue]    N/A
[Problem]  wrt-plugins (or external root daemon) cannot retrieve appid properly
           based on the pid of Box WebProcess.
[Cause]    app_manager API which gets appid from pid considers only
           registered executable path on app_info DB.
           (app_manager gets executable path from /proc/<pid>/cmdline
             matched to pid of WebProcess)
[Solution] WebProcess associated with the box needs to be registered to
           app_info DB on installation time.
           1. Register symbolic link (/usr/bin/WebProcess) per box
           2. Register the box's new appid to app_info DB on installation time
           2. wrt-installer adds 'root_path' attribute of <package> on application xml.
              - 'root_path' has application root directory (absolute path) as value,
                so that web-provider gets root dir of package using pkgmgr API.

Change-Id: Ic37d5172d9ee4434375858d5e441257ae8e7a736
src/jobs/widget_install/manifest.cpp
src/jobs/widget_install/manifest.h
src/jobs/widget_install/task_manifest_file.cpp
src/jobs/widget_install/task_manifest_file.h