Sangyoon Jang [Mon, 10 Aug 2015 12:30:10 +0000 (21:30 +0900)]
Separate source files, clean up repository
separate pkgmgr-info.c into:
pkgmgrinfo_pkginfo.c
pkgmgrinfo_appinfo.c
pkgmgrinfo_certinfo.c
pkgmgrinfo_db.c
pkgmgrinfo_client.c
rename headers
remove unused codes
remove executable permission from some files
Change-Id: Ie56d8c76223ed0593ded98138b3a2ecef0738ea5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 11 Aug 2015 05:48:42 +0000 (14:48 +0900)]
Fix crash
use sizeof() instead of fixed size
Change-Id: I10abd3ba45f0d31519716c14f8d3e236d40d062b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Pawel Sikorski [Mon, 10 Aug 2015 08:44:05 +0000 (10:44 +0200)]
Buildbreak fix in pkgmgr-info.c
Removal of not needed call.
Change-Id: Id8afe37e16acc92765f7d085b434cb08b70d0065
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
Sangyoon Jang [Fri, 7 Aug 2015 09:38:37 +0000 (18:38 +0900)]
Fix listing query
get pkgid or appid list first, and getting pkginfo or appinfo using the
list
Change-Id: Ifd4a5c349f2cb325588ad20710f173a5253b7ed0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 7 Aug 2015 02:09:08 +0000 (11:09 +0900)]
Fix some prevent issues
fix resource leak
fix dereference null return value
Change-Id: I018e365c798de51c8e7f8cc47f1db51768e744f0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 4 Aug 2015 09:08:22 +0000 (18:08 +0900)]
Add new error code: PMINFO_R_ENOENT
return OK when getting no result on filter foreach api
Change-Id: Ie619b75f010d24ab9407d6b8068963589714fe1f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 5 Aug 2015 10:40:41 +0000 (19:40 +0900)]
Fix memory leak
fix parsing & freeing appcontrol
fix _appinfo_get_filtered_foreach
fix __cleanup_appinfo
Change-Id: I074ff97e4fc9f72c6c9e3913b1487133d240068b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Wed, 29 Jul 2015 06:55:19 +0000 (15:55 +0900)]
modify resource manager source.
- remove db saving/loading while using resource manager
Change-Id: Id8d00ddcf1f731e236e12be9bc37cb8b69f29861
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Tue, 4 Aug 2015 08:12:15 +0000 (17:12 +0900)]
Return error when cannot find appinfo
Change-Id: Icbc22ef147e403c17e8acda31da486d59ee7ed8f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 4 Aug 2015 08:02:32 +0000 (17:02 +0900)]
Fix resource leak
finalize sqlite3_stmt
use sqlite3_close_v2 instead of sqlite3_close
Change-Id: Ie48f7b7fbc7d239ba19c46b80cb6623c4b2a1f6d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 27 Jul 2015 12:35:42 +0000 (21:35 +0900)]
Rewrite query apis
increase package version
set so version using package version
unify uiapplication_x serviceapplication_x to application_x
move data structure free code to pkgmgr-info
rewrite query apis:
pkgmgrinfo_pkginfo_get_pkginfo
pkgmgrinfo_pkginfo_get_list
pkgmgrinfo_pkginfo_filter_foreach_pkginfo
pkgmgrinfo_appinfo_get_appinfo
pkgmgrinfo_appinfo_get_list
pkgmgrinfo_appinfo_get_install_list
pkgmgrinfo_appinfo_get_installed_list
pkgmgrinfo_appinfo_filter_foreach_appinfo
pkgmgrinfo_appinfo_metadata_filter_foreach
TODO:
revise list structure
revise free code
Change-Id: I22b0a9c4c06276d793844b86b89fb339037a2515
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 27 Jul 2015 06:53:38 +0000 (15:53 +0900)]
Fix parsing icon path
Change-Id: I472c934f73b85b43ccc84437aeb5f11f5ebb3299
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 21 Jul 2015 08:11:08 +0000 (17:11 +0900)]
Remove warnings
fix mismatching type
remove unused varibales, functions
remove unnecessary initializing of local variable
include missing headers
move declarations to the top of function implementation
fix some spaces, indents
Change-Id: I8a9154d64d9bd1b3e0cde58fdbd43381072b3b2d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 21 Jul 2015 04:30:00 +0000 (13:30 +0900)]
Add missing break statement
Change-Id: I4d7bf6c8296990bc4227b7b26eab4e899eb7d1e5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 20 Jul 2015 08:44:51 +0000 (17:44 +0900)]
Print uid in error log when failed to find pkg/app
Change-Id: Ib24c4cc28b69614b33ce7e51ccd003f065407f10
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 20 Jul 2015 04:28:17 +0000 (13:28 +0900)]
Revise parser, insert db
use static function to getting xml values
set root_path, pkgtype at parsing time
parse api-version from manifest
remove unused attribute: main_package
add attribute: process-pool, ui-gadget
Change-Id: If0d48697912d1644ee8a1164dee8ee896a077505
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 15 Jul 2015 06:23:05 +0000 (15:23 +0900)]
Revise pkginfo appinfo getters
return error code in error case
remove unnecessary initialize
move declarations to the top of function implementation
fix some spaces, indents
Change-Id: I88e181b061b0bbeb415042ab8d7b41c61192f241
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 16 Jul 2015 02:00:34 +0000 (11:00 +0900)]
Add create and initialize db api
add api: create and initialize db
set smack label "System::Shared" to db file
Change-Id: I0f187a0f074d8ac430ca804bc2c121bbe48509c0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Mon, 13 Jul 2015 05:42:47 +0000 (14:42 +0900)]
Fix compare and load certinfo by GLOBAL USER.
- comparing and loading package certinfo by GLOBAL USER returns error
because of for_all_users column.
- modify query in compare and load certinfo function.
Change-Id: I172184fbb813c0254c140fd9302f4311f620943b
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Tue, 7 Jul 2015 10:36:41 +0000 (19:36 +0900)]
Ignore feautre tag during parsing manifest
add feature tag to manifest schema(but ignore)
Change-Id: Ib82dbdce5f722847336f727efe60bcde5bf950b4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 7 Jul 2015 07:40:15 +0000 (16:40 +0900)]
Run external tag parser after insert manifest into db
external parser should be run after base information inserted into db
Change-Id: I8d0e2a0afb8d1164388174d391822d30db7f30b2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 7 Jul 2015 01:25:59 +0000 (10:25 +0900)]
Fix pkgmgrinfo_client_listen_status
Change-Id: I9481873c97965bb2bfa71f076cdde8280a352817
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 3 Jul 2015 07:13:18 +0000 (16:13 +0900)]
Fix compare package certinfo
compare cert info string instead of cert id because cert id can be
different global and user
Change-Id: Id506938fe2f11c7f5f67a1b93397062976b32693
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 3 Jul 2015 01:18:17 +0000 (10:18 +0900)]
Fix load certinfo
TC-2527
distinguish global cert and user cert
Change-Id: I2d7f4bebfdeb681210671b43cc07008952e6408e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 2 Jul 2015 07:59:09 +0000 (16:59 +0900)]
Remove using removed vconf key
Change-Id: I574f71f5c79dbaa787559a17bdb3a75cb145eb65
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 30 Jun 2015 12:44:25 +0000 (21:44 +0900)]
Fix pkgmgrinfo_appinfo_get_launch_mode
service application doesn't have launch mode
Change-Id: I1740c99a92cb01700fe32f755aa8ee01c4fdac75
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 26 Jun 2015 05:24:21 +0000 (14:24 +0900)]
Remove some useless error log
Change-Id: I52cc97b9c8fe381b284cef3b290fccf1eb017925
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 25 Jun 2015 10:59:28 +0000 (19:59 +0900)]
Don't make desktop file
desktop file is no longer used
Change-Id: If01b06662eb203c6ad0b5af2204c6e9488685783
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 25 Jun 2015 10:33:39 +0000 (19:33 +0900)]
Treat root user as globalapp user
Change-Id: I51e726ce6c5c2a187f0a0df292bfec75e0841a72
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Semun Lee [Mon, 15 Jun 2015 11:28:50 +0000 (20:28 +0900)]
remove unnecessary "required" from the XSD
Change-Id: I26a69c8b4c6dd18e17c82e6cabc63484471dba79
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Semun Lee [Mon, 15 Jun 2015 11:21:58 +0000 (04:21 -0700)]
Merge "Set pkgid when getting pkgmgr_appinfo_x" into tizen
Semun Lee [Mon, 15 Jun 2015 08:28:20 +0000 (17:28 +0900)]
Support empty appcontrol strings
Change-Id: I178a907be4eb6da08511828d65bc7587385f0bea
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Sangyoon Jang [Fri, 12 Jun 2015 07:42:41 +0000 (16:42 +0900)]
Set pkgid when getting pkgmgr_appinfo_x
Change-Id: I629754e9a5a34977e59bb7bda619576565660ef1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 12 Jun 2015 05:10:49 +0000 (14:10 +0900)]
Revise manifest.xsd.in
change package version type to xs:string
allow taskmanage, multiple at service-application
set indentation to 2 spaces
Change-Id: Iaa8ed8f1b1e40fdf50562844381b1a687dddc265
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 5 Jun 2015 08:26:25 +0000 (17:26 +0900)]
Allow datacontrol element in ui-application
Change-Id: I726facf89fb434a554203645f987bf9baca99c0f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 4 Jun 2015 11:42:25 +0000 (20:42 +0900)]
Fix app_control process
retrieve appcontrol info when getting appinfo
fix appcontrol_x
fix pkgmgrinfo_appinfo_foreach_appcontrol
fix pkgmgrinfo_appinfo_get_installed_list
Change-Id: Ie70c08331df3981a1d99035b8ba66d8280b0b7d6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 4 Jun 2015 06:21:37 +0000 (15:21 +0900)]
Remove event-system apis
this can be replaced with foreach appcontrol api
Change-Id: Ifc2bd1d67a4cea2fe516b219114bb8d1ab6a1575
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Semun Lee [Wed, 3 Jun 2015 02:45:16 +0000 (19:45 -0700)]
Merge "support resource manager API." into tizen
Semun Lee [Wed, 3 Jun 2015 02:45:07 +0000 (19:45 -0700)]
Merge "add launch_mode attribute to support app_group" into tizen
Jiwoong Im [Tue, 2 Jun 2015 05:23:36 +0000 (14:23 +0900)]
Add glib requires in pc file to avoid build break.
Change-Id: I532735a867cc9c78d966035b2ee8cc4165cdbbd3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 1 Jun 2015 08:30:10 +0000 (17:30 +0900)]
add launch_mode attribute to support app_group
add launch_mode attribute and new api to get application's launch_mode
in package_app_info.
New API: pkgmgrinfo_appinfo_get_launch_mode
Change-Id: I2e4d0db2c6b7a4b7002bb854c1a04741daedcc09
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Mon, 1 Jun 2015 05:23:24 +0000 (14:23 +0900)]
support resource manager API.
Provides interfaces to check and insert resource.xml and get resource
data of specific package from db.
JIRA ticket : TC-2491
Change-Id: Ibd30c9840af30e877caec8d2cf4ba73c72092b45
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Semun Lee [Sat, 30 May 2015 06:01:53 +0000 (23:01 -0700)]
Merge "add api to support event system." into tizen
Sangyoon Jang [Tue, 26 May 2015 08:26:33 +0000 (17:26 +0900)]
Add 'usr' prefixed datacontrol apis
rename column of package_app_datacontrol:
provider_id -> providerid
Change-Id: Ib891d37bd075e9ffdd9dda04cac9372ccc120d5e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Semun Lee [Tue, 26 May 2015 10:46:41 +0000 (03:46 -0700)]
Merge "Fix _mkdir_for_user" into tizen
Jiwoong Im [Tue, 26 May 2015 07:09:26 +0000 (16:09 +0900)]
add api to support event system.
add api which find event_launch_list in package_app_app_control table.
JIRA ticket : TC-2473
Change-Id: I1980d96da012d96a0560a03056d0c0ef311aa3b1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Tue, 26 May 2015 05:09:04 +0000 (14:09 +0900)]
Fix _mkdir_for_user
add constraint to prevent infinite loop
Change-Id: Iab35153b83a7d53cde23b5cbe2720aa7672f16cd
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Tue, 19 May 2015 06:53:24 +0000 (15:53 +0900)]
change package_app_app_control table to apply 2.3 app_control.
In current, package_app_app_control table has operation,
uri_scheme, mime_type and subapp_name fields.
Put these filed together into one app_control filed.
Jira ticket : TC-2513
Change-Id: Iec68cb593d97d86fdba5bdc9af6cb61fba2b8049
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Maciej Piotrowski [Wed, 31 Dec 2014 13:02:00 +0000 (14:02 +0100)]
Remove unused variables
This patch impacts below files:
- src/pkgmgr-info.c
- parser/pkgmgr_parser.c
- parser/pkgmgr_parser_db.c
Change-Id: I8f2292c11b727c530202523f65a4ca33c31aa3c2
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
Tomasz Iwanek [Fri, 20 Mar 2015 13:23:41 +0000 (14:23 +0100)]
Fix formatting of icon path for global installation
Change-Id: Iffe87b566fb1090132bb96abc81c46a806fd4e74
Sangyoon Jang [Wed, 25 Feb 2015 12:32:23 +0000 (21:32 +0900)]
Include "sys/types.h" at pkgmgr-info.h
Change-Id: I01ca2b52a1501aba9c98a983c6b9b230d8ba7ca3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 17 Feb 2015 01:54:19 +0000 (10:54 +0900)]
Add get gid using getgrnam_r
tzplatform_getgid cannot get gid from group name
Change-Id: I5a31cddc070bc654f170136dc034bec048b094eb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 16 Feb 2015 07:20:08 +0000 (16:20 +0900)]
Change owner of parent directory
revise making directory
when create directory recursively, change owner of parent directory
Change-Id: I5beda08252f050a6104699b28bcde26e0a6957f5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 16 Feb 2015 04:11:19 +0000 (13:11 +0900)]
Create db if not exists
Change-Id: I2b227cdc5e76c18ab908801715fdee8bbd9cea97
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Suchang Woo [Fri, 6 Feb 2015 04:33:46 +0000 (20:33 -0800)]
Merge "Add missing declaration, remove unused declaration" into tizen
Tomasz Iwanek [Wed, 4 Feb 2015 13:29:32 +0000 (14:29 +0100)]
pkgmgr-info.h - include what you use
This causes problem to use this header in other projects.
Header should be able to provide all definitions it uses.
Change-Id: I1c443a7ffc273c269ced91e91f56215d84f0d98b
Sangyoon Jang [Tue, 3 Feb 2015 06:19:42 +0000 (15:19 +0900)]
Add missing declaration, remove unused declaration
added:
pkgmgr_parser_get_usr_manifest_file
removed:
pkgmgr_parser_get_manifest_info
pkgmgr_parser_has_parser
pkgmgr_parser_get_list
pkgmgr_parser_initialize_db (change to static function)
pkgmgr_parser_check_and_create_db (change to static function)
Change-Id: I001ca5e5014fac337a351365e087934a44678657
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Fri, 23 Jan 2015 06:47:15 +0000 (15:47 +0900)]
Add pkgmgrinfo_appinfo_is_category_exists
Change-Id: I2b7aa3eec0e2d2f6cdfe4a13fe420cfe16bacf82
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Baptiste DURAND [Tue, 20 Jan 2015 14:00:46 +0000 (06:00 -0800)]
Merge "Add X-TIZEN-AppID filed in destop file" into tizen
Semun Lee [Tue, 20 Jan 2015 04:12:53 +0000 (20:12 -0800)]
Merge "Add api from tizen 2.3 : pkgmgrinfo_appinfo_get_localed_label" into tizen
Sangyoon Jang [Thu, 15 Jan 2015 05:27:47 +0000 (14:27 +0900)]
Clean up logic opening/attaching manifest and cert db
rename '_pkgmgr_parser_attach_create_view_parserdb' and '_pkgmgr_parser_attach_create_view_certdb' to
'__attach_and_create_view'
remove some unused variables
clean up duplicate code
Change-Id: Ib3c86eec3b4ea06b76fec08aba3d9b30d2461d34
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 6 Jan 2015 05:29:41 +0000 (14:29 +0900)]
Add api from tizen 2.3 : pkgmgrinfo_appinfo_get_localed_label
Change-Id: I3ea422055376763ef5ed0a1dc8d8ae6a2cb75084
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Semun Lee [Tue, 20 Jan 2015 00:11:36 +0000 (16:11 -0800)]
Merge "Add missing declaration" into tizen
Sangyoon Jang [Wed, 14 Jan 2015 05:47:37 +0000 (14:47 +0900)]
Add missing declaration
added:
pkgmgrinfo_pkginfo_get_label
pkgmgrinfo_pkginfo_get_size_from_xml
pkgmgrinfo_pkginfo_get_location_from_xml
pkgmgrinfo_pkginfo_is_for_all_users pkgmgrinfo_save_pkgusrdbinfo
pkgmgrinfo_appinfo_set_usr_state_enabled
pkgmgrinfo_appinfo_set_state_enabled
pkgmgrinfo_appinfo_set_usr_default_label
pkgmgrinfo_appinfo_set_default_label
Change-Id: I832d850e9990c4dfd0b71598814257f927feaef3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Suchang Woo [Wed, 14 Jan 2015 08:47:52 +0000 (00:47 -0800)]
Merge "Remove meaningless code" into tizen
Suchang Woo [Wed, 14 Jan 2015 08:39:09 +0000 (00:39 -0800)]
Merge "Remove unused files and change file permission" into tizen
Semun Lee [Wed, 14 Jan 2015 01:16:05 +0000 (17:16 -0800)]
Merge "add api and db table to support data-control api" into tizen
Sangyoon Jang [Fri, 9 Jan 2015 05:35:09 +0000 (14:35 +0900)]
Remove meaningless code
__pkgmgr_parser_create_parser_db and __pkgmgr_parser_create_cert_db do same thing,
so remove one and rename
Change-Id: Idca8c82ffaa5f5d15b51c40eb43c7f6db19eda2e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 12 Jan 2015 06:08:42 +0000 (15:08 +0900)]
Remove unused files and change file permission
remove unwanted permission
remove unused script
remove unused image file
remove unused PG file
Change-Id: I6f36a2c1ad8b0fd4be8d5054e5d7d7dd1617cc56
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Thu, 8 Jan 2015 08:32:39 +0000 (17:32 +0900)]
add api and db table to support data-control api
- Add getter api for datacontrol.
pkgmgrinfo_appinfo_get_datacontrol_info
pkgmgrinfo_appinfo_get_datacontrol_appid
- Add datacontrol table to parse DB.
Change-Id: Ib930f0ad61f594bc5e67ad66ee6f95b7218481e8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Corentin Lecouvey [Wed, 7 Jan 2015 15:58:16 +0000 (16:58 +0100)]
do not use hardcoded paths in get user path APIs
Change-Id: Iaa811f7539de77069fea0a6a8daa6df0b6ed5797
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Baptiste DURAND [Thu, 8 Jan 2015 14:07:01 +0000 (06:07 -0800)]
Merge "fix insert retrieve and delete cert info" into tizen
Sabera Djelti (sdi2) [Fri, 26 Dec 2014 17:13:30 +0000 (18:13 +0100)]
fix insert retrieve and delete cert info
fix appsvcdb, open datacontroldb
Bug-Tizen: TC-2222
Change-Id: I608874c486eb70586f81cd5b4017291e35224790
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Sangyoon Jang [Mon, 5 Jan 2015 05:27:27 +0000 (14:27 +0900)]
Fix user manifest install/uninstall/upgrade
__add_preload_info is not for user's app, it set the app non-removable
Change-Id: I5aa82d428ccc747fa41ee1666aeffbadd4c86665
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 31 Dec 2014 08:18:46 +0000 (17:18 +0900)]
Create directory recursively
when try to create directories for users' manifest, package db and desktop file, it fails because parent directory does not exists.
so we need to create parent directory.
Change-Id: I088650a8e9697e9884c7605769b49bf1e8510542
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 31 Dec 2014 08:13:34 +0000 (17:13 +0900)]
Fix manifest schema for support tizen 2.3 tpk package
for support ".tpk" package files in tizen 2.3
Change-Id: I95837c27ba26f692bc1d7e3f8ba01a709a8fd8b6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Baptiste DURAND [Wed, 10 Dec 2014 14:46:59 +0000 (15:46 +0100)]
package manager CAPI are not robustness when they are called recursively
For example the CAPI pkgmgrinfo_appinfo_usr_filter_foreach_appinfo with a callback that also
call a CAPI.
Refactoring Database management to allow it.
BUG-Tizen=TC-2221
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Change-Id: If4bd6c7687d1b875f945935488d93563dae92e3c
Baptiste DURAND [Mon, 1 Dec 2014 10:36:07 +0000 (11:36 +0100)]
Fix CREATE VIEW Request.
Change-Id: Ia4305e87694931cfcd04fd74a5367e94d3d761e4
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Sabera Djelti (sdi2) [Fri, 28 Nov 2014 15:44:30 +0000 (16:44 +0100)]
list once global package with pkgcmd -l
Change-Id: I7b27c21f3558bfd4104031cffe23f8e525fcd95d
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Sabera Djelti (sdi2) [Thu, 13 Nov 2014 11:07:19 +0000 (12:07 +0100)]
Enable to list app and pkg with pkginfo --listpkg/--listapp
--> add open_cert_db
--> put uid to callback via the handle
--> add columns uid in pkg_parser.db view
Bug-Tizen: TC-1590
Change-Id: I1f6e154635ede033e89e62a010e92b1671645afa
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Baptiste DURAND [Thu, 13 Nov 2014 09:59:31 +0000 (10:59 +0100)]
Refactoring code related to package database
Change-Id: Id8ec826aafafb8598d7efb6a127bb32125e3dd85
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Pawel Sikorski [Sun, 23 Nov 2014 22:47:34 +0000 (23:47 +0100)]
Small optimiziation:
Using temporary value to keep returned value from getUserPkgParserDBPathUID function
for passing to other functions.
Change-Id: If2a6d7168bf3a188bcb8178c6d9970bf6bde2c4e
Baptiste DURAND [Fri, 14 Nov 2014 10:55:36 +0000 (11:55 +0100)]
Preintialize the returned handle values to NULL
For the following CAPI functions :
pkgmgrinfo_pkginfo_get_usr_pkginfo
pkgmgrinfo_appinfo_get_usr_appinfo
pkgmgrinfo_pkginfo_create_certinfo
pkgmgrinfo_create_certinfo_set_handle
pkgmgrinfo_create_pkgusrdbinfo
pkgmgrinfo_create_pkgdbinfo
this permit to not have a randoming value as handle and avoid crash
BUG-Tizen=TC-1744
Change-Id: Ib648328a6a964db200e7035b37b9d9fd6620caf1
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Baptiste DURAND [Thu, 6 Nov 2014 13:57:40 +0000 (14:57 +0100)]
Fix Update issue, during update the desktop is deleted but never recreated
BUG-Tizen=TC-2025
Change-Id: I9b25d19f0e322f8a00d72d0a9bb0379f305b9c78
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Baptiste DURAND [Fri, 31 Oct 2014 16:40:25 +0000 (09:40 -0700)]
Merge "Move manifest file (from .config) to TZ_USER_PACKAGES / TZ_SYS_RW_PACKAGES" into tizen
Baptiste DURAND [Fri, 31 Oct 2014 16:39:42 +0000 (09:39 -0700)]
Merge "Add robustness to mkdir" into tizen
Baptiste DURAND [Wed, 29 Oct 2014 12:46:38 +0000 (13:46 +0100)]
Add X-TIZEN-AppID filed in destop file
This permits to have the AppId in desktop file when we install an
app trougth Application framework
It is usefull for TC-1968
BUG-Tizen=TC-1968
Change-Id: I152778db34bc2a018596a960890c2d4f367e9d23
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Sabera Djelti (sdi2) [Thu, 23 Oct 2014 09:22:12 +0000 (11:22 +0200)]
Move manifest file (from .config) to TZ_USER_PACKAGES / TZ_SYS_RW_PACKAGES
Bug-Tizen: XWALK-2672
Change-Id: I0241574a23adf0af41ad14c90bcb87de48c66277
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Baptiste DURAND [Thu, 23 Oct 2014 14:10:54 +0000 (16:10 +0200)]
Fix Widget Installation with metadatas
Remove wrong call to ret = __insert_uiapplication_appmetadata_info(mfx);
by ret = __insert_serviceapplication_appmetadata_info(mfx);
calling __insert_uiapplication_appmetadata_info twice lead to installation error
BUG-Tizen=XWALK-2463
Change-Id: I465f573a2bbfd345a660494d7fc0d62a0c85bfe5
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Sabera Djelti (sdi2) [Fri, 3 Oct 2014 13:34:59 +0000 (15:34 +0200)]
Add robustness to mkdir
Change-Id: I9a988e447446332374fb2922b89739d834c95da7
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Baptiste DURAND [Tue, 30 Sep 2014 12:30:15 +0000 (14:30 +0200)]
Fix owner of /usr/share/packages directory.
To allow installation for all users, we need to assign tizenglobalapp user as owner of
/usr/share/packages
Change-Id: I3b05bc77e65185783a769f13e04c8870b7e00b87
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Baptiste DURAND [Wed, 17 Sep 2014 12:34:42 +0000 (14:34 +0200)]
Fix Error case
In case of missing database, using some CAPI leads to crash.
Fix this case
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Change-Id: I418f5fff728df15aafe2d699f860af46db44d416
Sabera Djelti (sdi2) [Fri, 12 Sep 2014 15:30:00 +0000 (17:30 +0200)]
Robustness changes
As Root user has no databases:
- getUserPkgCertDBPathUID()
-getUserPkgParserDBPathUID()
- getIconPath()
should fail if they call by root user
Change-Id: I3661d77c079d28d4fd3c7d14093183695a92489d
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Baptiste DURAND [Thu, 11 Sep 2014 10:04:33 +0000 (12:04 +0200)]
Fix DB filename
Change-Id: I181a9db2f32073103bf54d60715a15c1f4cb3061
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Sabera Djelti (sdi2) [Mon, 8 Sep 2014 13:09:00 +0000 (15:09 +0200)]
Fix permission management
Database should have correct label and permission
Change-Id: Ib38f3e0c6e728a71508f250d545cb669dcaf7fd5
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Sabera Djelti (sdi2) [Tue, 2 Sep 2014 16:19:16 +0000 (18:19 +0200)]
change GLOBAL_USER to tzplatform_getuid
Change-Id: I104aacd93c93d27ab0ac2cd2489fe8708bf3a4a4
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Sabera Djelti (sdi2) [Thu, 4 Sep 2014 09:31:55 +0000 (11:31 +0200)]
Remove chsmack + fix surplus directories
Change-Id: I281c3adbd11297fa26c3a9330de1f89b73af48e9
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Sabera Djelti (sdi2) [Mon, 1 Sep 2014 14:13:23 +0000 (16:13 +0200)]
Refactoring code (use the call of _usr_ function)
Change-Id: I5a827de69caf5e95504a545e9d64229cac2bcb0a
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Baptiste DURAND [Thu, 28 Aug 2014 11:50:59 +0000 (13:50 +0200)]
Fix TC-1539
Fix icon management to avoid segfault during pkginit_db execution
Change-Id: Ie52a5e87e526ec85ec0ce45310c2732e1576faa0
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Sabera Djelti (sdi2) [Mon, 18 Aug 2014 08:41:59 +0000 (10:41 +0200)]
fix TC-1516
fix permission icons dir
fix display image icon
fix use pkgmgr_appinfo_get_usr_list
Bug-Tizen: TC-1516
Change-Id: I95a13a215e4700dc471eec95dbf10b060f3881db
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>