Reworking handling privileges for hybrid application 40/90540/6
authorTomasz Iwanek <t.iwanek@samsung.com>
Thu, 29 Sep 2016 13:49:00 +0000 (15:49 +0200)
committerjongmyeongko <jongmyeong.ko@samsung.com>
Thu, 3 Nov 2016 12:44:01 +0000 (21:44 +0900)
commitad26771e057fdb154c91369b5329f7c0de1e5613
tree96eb13899e637d208b1306b3a6db99032cb0204b
parentd07f19b2c43fdd099dd028b5dfdc83e4469927af
Reworking handling privileges for hybrid application

This patch keeps single list of privileges (stored in
manifest_x) and filters privileges when registring
security rules of applications. Following changed:
 - generated platform manifest xml contains <privilege>
   tags with 'type' atttibute set to 'tpk' or 'wgt',
 - in case of absence of attribute, its default value
   is 'tpk',
 - manifest_x changes privilege type from GList of char*
   to GList of privilege_x. Structure named 'privilege_x'
   contain parsed privilege type,
 - although there is one privilege list, given the fact
   that privilege now have type, native and web privileges
   should be registered in native or web apps only.

Verification:
 - no regression in tpk/wgt smoke tests,
 - install hybrid app with native and web privileges
   and check generated manifest file for privileges,
 - install web app with privileges and check generated
   manifest file,
 - install web app without privileges and check generated
   manifest file -> default privileges should be added.

Submit together:
 - https://review.tizen.org/gerrit/#/c/90540/
 - https://review.tizen.org/gerrit/#/c/90543/
 - https://review.tizen.org/gerrit/#/c/90544/
 - https://review.tizen.org/gerrit/#/c/90546/
 - https://review.tizen.org/gerrit/#/c/90561/

Change-Id: I901d61800251519a48327a0ea2b6400d20dfe2f7
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
include/pkgmgrinfo_basic.h
parser/manifest.xsd.in
parser/manifest.xsd.ref
parser/pkgmgr_parser.c
parser/pkgmgr_parser_db.c
src/pkgmgrinfo_basic.c
src/pkgmgrinfo_pkginfo.c