Sangyoon Jang [Fri, 28 Oct 2016 02:23:30 +0000 (11:23 +0900)]
Fix a memory leak
Change-Id: I82da1edb86120c3c778e8247b451729f0e7451e1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 25 Oct 2016 10:35:53 +0000 (19:35 +0900)]
Fix compile/linker flags
Add -fPIE, -fPIE flag.
(for applying ASLR)
Change-Id: Icaddc19acd06e41053329596c23432bc3dd60a32
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 20 Oct 2016 07:35:51 +0000 (16:35 +0900)]
Fix memory leak
Change-Id: If1d5ecbffae39f92e31ab97d1ef1f0fe40a07444
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 12 Oct 2016 06:28:54 +0000 (15:28 +0900)]
Get kill/check result from server instead of tmp file
Submit together:
- https://review.tizen.org/gerrit/91895
- https://review.tizen.org/gerrit/91896
Change-Id: Ifda21b50828a13290163b7cc598eb6d40a52e396
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 12 Oct 2016 06:45:07 +0000 (15:45 +0900)]
Fix signature of pkgmgr_client_set_tep_path
Add a const qualifier to tep_path.
Change-Id: Ic90623a9a0be2a242dfff212e03333be542b5f6a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Slava Barinov [Tue, 13 Sep 2016 11:07:27 +0000 (14:07 +0300)]
Add installer requirement to devel package
Without explicit dependency the case is possible when the -devel package
is installed without client package and provides a broken symlink to
/usr/lib/libpkgmgr_installer.so.0
Change-Id: If3123d62535b607873f83658662ff99fab169905
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Sangyoon Jang [Thu, 1 Sep 2016 05:42:21 +0000 (14:42 +0900)]
Code refactoring
- Rename comm_* -> pkgmgr_client_connection_*
- Simplify callback logic
- Move internal headers to source directory
- Remove unused files
Change-Id: I44e9211dddd27e00cc1b908733f0ccb71efc71d1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Tomasz Iwanek [Mon, 10 Oct 2016 08:09:38 +0000 (01:09 -0700)]
Merge "Fix sending signal for reinstall/RDS" into tizen
Tomasz Iwanek [Fri, 7 Oct 2016 09:18:59 +0000 (11:18 +0200)]
Fix sending signal for reinstall/RDS
Change-Id: I7c8f1a66edf1e7e55753e3386c34d69433056d97
Sangyoon Jang [Fri, 7 Oct 2016 07:21:45 +0000 (16:21 +0900)]
Fix converting signal type
Add signal type for clear data.
Change-Id: I31b01178265a773a022120777a8467e41236ab3c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 6 Oct 2016 09:42:46 +0000 (18:42 +0900)]
Add pkgmgr_installer_send_app_uninstall_signal_for_uid()
Change-Id: I9d18d0727d3a91c4977dce62fa674bfcf7e1bcdb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 5 Oct 2016 07:25:16 +0000 (16:25 +0900)]
Fix wrong size type in signal agent
Change-Id: I600c9de85fd3ad3411fba326b9ccee3fee286a5f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Mon, 19 Sep 2016 05:45:17 +0000 (22:45 -0700)]
Merge "Fix sending disable/enable pkg signal" into tizen
Sangyoon Jang [Mon, 12 Sep 2016 12:32:59 +0000 (21:32 +0900)]
Fix sending disable/enable pkg signal
Change-Id: I332a054b63fdd3293442a86a0aa75b9b5e147f5a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 12 Sep 2016 04:48:08 +0000 (13:48 +0900)]
Add auth checking at signal agent
Only root or 'app_fw' user can send to agent.
Change-Id: If3ec8662fa9290af7f0d7ffc22b73b39dcfb9a4f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 12 Sep 2016 02:39:16 +0000 (11:39 +0900)]
Remove duplicated codes
Change-Id: I815838bbb6e423ce35f58719d02fa3fcff8095cb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 31 Aug 2016 08:01:55 +0000 (17:01 +0900)]
Remove unused static functions
Change-Id: Id6c04851a920c18e7d2053595ce8e79dc6ffbadc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 31 Aug 2016 06:09:58 +0000 (15:09 +0900)]
Fix signal agent
Do not unref GVariant from g_variant_new_from_data.
Change-Id: I906789bab1bad084670a494f3d096ba87a293a3d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 30 Aug 2016 07:57:08 +0000 (16:57 +0900)]
Set target_user as tizenglobalapp user when -u option is not set
Submit together:
- https://review.tizen.org/gerrit/86038
Change-Id: I2837adfbb4ce3700caa17cca9c6ee9f8a2099cd7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 29 Aug 2016 06:06:30 +0000 (15:06 +0900)]
Clean up event signal related code
- Use PKGMGR_XXX instead of COMM_XXX
- Subscribe gdbus signal only once
- Remove unused variables
Change-Id: Ib65544c2ba963493ce7cb23eeb816412689819b5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Tomasz Iwanek [Fri, 19 Aug 2016 14:18:14 +0000 (16:18 +0200)]
Global symlink error code
Change-Id: I5e32253c69eba8eaffae1226e5ad50d1806f7716
Junghyun Yeon [Thu, 18 Aug 2016 06:59:42 +0000 (15:59 +0900)]
Remove unused function and codes
-Remove api pkgmgr_client_activate_appv
-Remove csc-related codes
Related change
[pkgmgr-tool] : https://review.tizen.org/gerrit/#/c/84350/
Change-Id: I3aff30ed9c54c9a4d6a20dbee88c0f2a1513cde4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Tue, 16 Aug 2016 10:07:26 +0000 (19:07 +0900)]
Fix getting DBus bus type
Installer now send signal to both of bus types.
The pkgmgr client will connect with proper bus type.
- Request -> system bus
- Listen(system) -> system bus
- Listen(user) -> session bus
Change-Id: If597cecf44e70f8ea9c9264fcdb37bc943057fc5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 9 Aug 2016 07:29:54 +0000 (16:29 +0900)]
Add pkgmgr_installer_send_signal_for_uid
This api sends signal to agent, and agent emit signal into session bus.
Change-Id: I7c01c5703f836a19a0b19805b50b33d088a2a80e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 8 Aug 2016 10:35:51 +0000 (19:35 +0900)]
Implement pkgmgr-installer-signal-agent
pkgmgr-installer-signal-agent receives signal information from backend
installer, and emits into user-session bus.
backend installer running as system user cannot use user session bus, so
this agent will cover for it.
Change-Id: I834782358cf37a151b44737a7592bf40c3fbeba1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Wed, 17 Aug 2016 10:50:51 +0000 (19:50 +0900)]
Fix to set g_target_uid properly
Change-Id: I06ab3e4981f47bfed67f3b971cfd9dbd2b12619c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 20 Jul 2016 05:17:43 +0000 (14:17 +0900)]
tpk/wgt backend will run as system session
Related changes
[pkgmgr-server] https://review.tizen.org/gerrit/#/c/78205/
[app-installers] https://review.tizen.org/gerrit/#/c/78206/
[tpk-backend] https://review.tizen.org/gerrit/#/c/80787/
[wgt-backend] https://review.tizen.org/gerrit/#/c/81099/
Change-Id: Ie19d7b431ef13a035cdd8c4df76b515aa57b4ca3
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Wed, 27 Jul 2016 10:24:25 +0000 (19:24 +0900)]
new internal API for parser-plugin to get target_uid.
Change-Id: Id6ae8ce79be686659baab096ed7db70a5e4263d4
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Thu, 7 Jul 2016 10:13:49 +0000 (19:13 +0900)]
Implement pkg enable/disable
Related changes
[pkgmgr-tool] https://review.tizen.org/gerrit/78916
[pkgmgr-server] https://review.tizen.org/gerrit/78918
[app-installers] https://review.tizen.org/gerrit/78919
[tpk-backend] https://review.tizen.org/gerrit/#/c/79070/
Change-Id: I122cf29824b4ce60327cf6e790474db0dee3d035
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Fri, 15 Jul 2016 02:40:58 +0000 (11:40 +0900)]
Fix pkgmgr_client_set_tep_path
Change-Id: Ib6ba6458d78956adaad5ccb8536caac7984ede76
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Piotr Ganicz [Thu, 30 Jun 2016 14:28:58 +0000 (16:28 +0200)]
Unknown key string addition
The following patchset should be submitted together:
https://review.tizen.org/gerrit/#/c/77782/
Change-Id: Id906263319ec6557c40a4877add9616783b99767
Sangyoon Jang [Fri, 1 Jul 2016 05:27:35 +0000 (14:27 +0900)]
Fix sending upgrade event
Change-Id: I1ecf7a0b3a283c2e3a6bffff838fd6f083043ad7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Wed, 29 Jun 2016 07:20:59 +0000 (16:20 +0900)]
add string for new error
Change-Id: Ia6615da9ffc316827a5371a50c2cf1e76b2fdc6c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 27 Jun 2016 10:31:07 +0000 (19:31 +0900)]
add new pkgcmd errors
Change-Id: I436d7476f89bb58d028210d8538c3e565feeb361
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 31 May 2016 02:52:12 +0000 (11:52 +0900)]
fix style
Change-Id: I7c32da19d027896bba2588cbf7eaee47c19c1567
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Thu, 16 Jun 2016 07:32:29 +0000 (16:32 +0900)]
remove unused function
Change-Id: Id5f85eb750fc9979de96d8a753f2349317199b7e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 9 Jun 2016 02:19:14 +0000 (11:19 +0900)]
Fix pkgmgr move API to get event callback
- move function should receive signal to retrieve
current progress of job requested
- remove mode argument from move api for compatibility previous tizen version.
(actually, mode argument is not used)
changed should be applied with pkgmgr-server
https://review.tizen.org/gerrit/#/c/73622/
Change-Id: I914835ba95cc240ebe3aed06cc3f6217edb926ca
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Wed, 8 Jun 2016 08:08:17 +0000 (17:08 +0900)]
Fix __get_signal_name
Add cases: manifest direct install, mount install
Change-Id: I340a7628dd74d74bf8089a98283a01c319bf43ae
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 7 Jun 2016 04:32:11 +0000 (13:32 +0900)]
Fix crash when event callback is not set
Change-Id: I660591bcfe8c30f62cd6c1700154d019d4e8c08e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Fri, 20 May 2016 06:40:58 +0000 (15:40 +0900)]
Reorder parameters of function for consistency
reorder parameters for get_pkg_restrction_mode
for consistency with other functions
Change-Id: Ie12242e2861638ecbd286e36b8a72e0d260a24db
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 16 May 2016 04:32:52 +0000 (13:32 +0900)]
Integrate blacklist and restrictiom mode
Remove APIs related with pkg blacklist function
and Integrate into restriction mode
Related changes : pkgmgr-server
https://review.tizen.org/gerrit/#/c/69473/
Change-Id: I046a58850c41a442f3ae02b2b1478ef561ad0747
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
changjoo.lee [Fri, 20 May 2016 01:07:31 +0000 (10:07 +0900)]
Changed dependency of pwdutils to /sbin/useradd
pwdutils may be replaced with shadow-utils
Change-Id: Ib070eb8ff330b8f90ba66b7e2dbc6b57da14a42a
Signed-off-by: changjoo.lee <changjoo.lee@samsung.com>
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Semun Lee [Tue, 3 May 2016 09:13:46 +0000 (18:13 +0900)]
Change the owner of /etc/skel/apps_rw to tizenglobalapp
app-installer that runs as tizenglobalapp will create
directories to /etc/skel/apps_rw for global applications
Change-Id: Iaa313ae496a84374ea5d07f083ddf981fa8b7d39
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Sangyoon Jang [Tue, 3 May 2016 10:35:33 +0000 (19:35 +0900)]
Implement restriction mode api
Related patch:
- https://review.tizen.org/gerrit/66938
Change-Id: I9d1edfa4ac20c6e2b543e0694eb27f5f459f7758
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Tomasz Iwanek [Mon, 18 Apr 2016 14:45:05 +0000 (16:45 +0200)]
pkgmgr_client_usr_mount_install
Requires:
- https://review.tizen.org/gerrit/#/c/65834/
Change-Id: Ia05f8efea9613a297568d6983a1528c8b0e43e1d
Tomasz Iwanek [Tue, 12 Apr 2016 11:39:10 +0000 (13:39 +0200)]
Add mount install option handling to pkgmgr_installer API
Change-Id: Ie8b97d9fcbb1d33eacc142a7768766b8823b0e8d
Hwankyu Jhun [Wed, 6 Apr 2016 06:08:21 +0000 (15:08 +0900)]
Implement app signal related with app splash screen display
Change-Id: Ib5923f6dfbd91488b7710b37bc47c00f423ee6ac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghyun Yeon [Wed, 30 Mar 2016 07:14:40 +0000 (16:14 +0900)]
implement pkg move
changes are applied in these repos
[pkgmgr-tool] https://review.tizen.org/gerrit/#/c/64121/
[slp-pkgmgr] https://review.tizen.org/gerrit/#/c/64122/
[pkgmgr-server] https://review.tizen.org/gerrit/#/c/64123/
Change-Id: Ic2de3a2b690aafc78faeb78695862d3d181451de
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 18 Apr 2016 07:56:28 +0000 (16:56 +0900)]
Fix pkgmgr.pc.in
Remove wrong dependency(removed).
Change-Id: I11a3feebceac672ea1cb674581e0b3d2cd0da5b7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 12 Apr 2016 06:53:15 +0000 (15:53 +0900)]
Return PKGMGR_R_EPRIV error when privilege denied
Change-Id: I3bc3a5432fdcb66f5f089eff0135f2cbed2905e7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 12 Apr 2016 05:44:16 +0000 (14:44 +0900)]
Source cleanup
- comm_xxx(pkgmgr_installer_client.so) => merged at pkgmgr_client
- remove unused files
- don't install unnecessary files
Change-Id: Ia369bb621606437645673e2fea136ec9f59d18fb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 6 Apr 2016 06:17:30 +0000 (15:17 +0900)]
Pass it's own uid when calling not 'usr' prefixed api
If the caller is a regular user, pass it's own uid, but if the caller is
a non-regular user(root or system daemon), pass tizenglobalapp user's
uid.
Change-Id: I78d66ebb0e8521e185b97b8cdb53c7fb6de3622a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Mon, 4 Apr 2016 00:01:55 +0000 (09:01 +0900)]
implement functions to used by capi-package-manager
when unset event cb
Change-Id: I3589e878537a04b9bbea41f995f7e631e3a81002
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Myungki Lee [Mon, 4 Apr 2016 05:47:20 +0000 (14:47 +0900)]
Fix build warning
Change-Id: I65aa47edc825fbd5f6250eb55b8a9290c5d665df
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
jongmyeongko [Tue, 22 Mar 2016 06:59:03 +0000 (15:59 +0900)]
add force-removal option for installer.
usage(root only):
tpk-backend -d {pkgid} --preload --force-remove
Change-Id: I0a8e9ddb787d3ae55cb9832ae3bf7918c97fa9fe
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Wed, 16 Mar 2016 11:53:09 +0000 (20:53 +0900)]
seperate app enable/disable signal parameter
Change-Id: Ie38784869255bf35679895f5f4f0f0e7432e878b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 21 Mar 2016 06:21:38 +0000 (15:21 +0900)]
redefine pkg queues
Change-Id: Ieffcd2eb4c26f2d6f03dfda5dd12eeab3a21694b
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Mon, 21 Mar 2016 02:25:22 +0000 (11:25 +0900)]
Send signal with target_uid instead of getuid()
Change-Id: I9a27872c3fbafe9aebd406263c516b8898862a22
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Sat, 12 Mar 2016 04:39:44 +0000 (13:39 +0900)]
fix and add some prototype to suppress build warnings
Change-Id: Ib62e03d5ac11ae4e9ed8c40014f6433d9fd94703
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 11 Mar 2016 11:46:18 +0000 (20:46 +0900)]
- change enum value of COMM_STATUS_BROADCAST_ALL
to cover enable/disable of app
- remove useless code
Change-Id: I7831215bbb64a55c116126606109aed8dd17a6b1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Mon, 7 Mar 2016 08:43:29 +0000 (17:43 +0900)]
add missing declaration for tep related function.
Change-Id: I5c129b59b69b7698a7fdae16e5238fb2370cf432
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Wed, 2 Mar 2016 07:01:19 +0000 (16:01 +0900)]
changes to app signal work properly
Change-Id: Ie3fc60733b9bddeee92df09596145a85fec7afeb
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 25 Feb 2016 03:13:11 +0000 (12:13 +0900)]
Remove sample backend code
These codes are out-dated.
Change-Id: I65b798eecca2eac4db8606d1efeea34ff1693b30
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeong ko [Wed, 24 Feb 2016 09:15:50 +0000 (01:15 -0800)]
fix build error that 'rpm' conflict with file from tpk-backend package
This reverts commit
e416196f661ee7e34860993d802f70a4f423e2b0.
Change-Id: Icc47a52e6aed048c8c8f26c8a0dace0afaf1d327
jongmyeong ko [Tue, 23 Feb 2016 11:26:18 +0000 (03:26 -0800)]
Revert "clear 'rpm' related code"
This reverts commit
c0a0d7ca6485f1fc9c70994bbf2e578f60cf5fc3.
Change-Id: Ife60abc72f9d6d31deb5ef3e636d9610ea9b649e
jongmyeongko [Tue, 23 Feb 2016 07:21:35 +0000 (16:21 +0900)]
change the name of optional_file argument to more common one.
Change-Id: Iad1f4ec4b021cbd33e91db8aa207c93780d20085
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Thu, 18 Feb 2016 03:17:23 +0000 (12:17 +0900)]
clear 'rpm' related code
Change-Id: I4a7099ff8b62a6051d06aaf3bde8dc8e1b54eaea
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 3 Feb 2016 12:33:05 +0000 (21:33 +0900)]
add 'preload' as long option
this option represents current request is for preload app.
Change-Id: Icdbb43bff3e716bea082bea6b51103276d774559
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Tomasz Iwanek [Thu, 28 Jan 2016 12:45:53 +0000 (13:45 +0100)]
Add define PKGMGR_INSTALLER_CLEAR_EVENT_STR
Change-Id: I377dc2e4a45f8d57302941d75911e96006ca5805
Junghyun Yeon [Mon, 25 Jan 2016 06:15:11 +0000 (15:15 +0900)]
Implement app signal related with app disable/enable
Changes applied at
[pkgmgr-tool][pkgmgr-info][slp-pkgmgr][pkgmgr-server]
Change-Id: I0e7af16a23329fd4f364e6d5932e8bc24d43ef0a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Thu, 28 Jan 2016 06:42:39 +0000 (15:42 +0900)]
Fix getsize method call parameter
uid was missing
Change-Id: I493bc74144a732329fdc58c50e06dc0dd865deca
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 21 Jan 2016 01:14:57 +0000 (10:14 +0900)]
Add add/remove blacklist apis
Change-Id: I40e3722ac18de46e260004851809651277987dc3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Wed, 27 Jan 2016 02:24:48 +0000 (11:24 +0900)]
remove unnecessary codes.
Change-Id: If2e7343820977966ea680afe34f86be5c07d4e84
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Pawel Sikorski [Tue, 26 Jan 2016 14:06:38 +0000 (15:06 +0100)]
fix cppcheck warnings
fixing some problems found by cppcheck
Change-Id: Idc8013419db9d9ca391e70750d30da4a1bc07f61
Tomasz Iwanek [Tue, 4 Aug 2015 11:54:47 +0000 (13:54 +0200)]
Introduce recovery option to pkgmgr_installer
Pkgmgr declares enum value for recovery installaton
but there is no way for backend to run with this option
as there is missing parsing in pkgmgr_installer_receive_request
which backend is supposed to use.
Adding processing -b option as PKGMGR_REQ_RECOVER in
pkgmgr_installer API.
Note: app-installers backends will expect invocation:
backend -b /home/guest/apps_rw/recovery-%%%%%%
where file is recovery file generated by interrupted
installation process.
Even the pkgmgr doesn't implements recovery now.
App-installer needs any command line opton to run this mode
when launched from commandline.
Optional parameter of recovery mode is recovery file but if
pkgmgr will support recovery in future, it is supposed that
this may change. This is set in this form for now.
Change-Id: I970607adcb4465e93a84eb774a0d75504cd443d2
Junghyun Yeon [Wed, 20 Jan 2016 05:21:29 +0000 (21:21 -0800)]
Merge "Each user can enable/disable global app separately" into tizen
Junghyun Yeon [Wed, 13 Jan 2016 08:18:26 +0000 (17:18 +0900)]
Each user can enable/disable global app separately
Changes applied at [slp-pkgmgr][pkgmgr-info][pkgmgr-server]
Change-Id: Id436a29fb2ba436e38adfac0427affcc1bccc47f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 14 Jan 2016 06:51:14 +0000 (22:51 -0800)]
Merge "Fix g_variant value to work kill/check command properly" into tizen
Junghyun Yeon [Wed, 13 Jan 2016 08:22:30 +0000 (17:22 +0900)]
Fix g_variant value to work kill/check command properly
Change-Id: I840dd34951760a3a836f88541b21672092f3bdbd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Tomasz Iwanek [Tue, 5 Jan 2016 14:09:54 +0000 (15:09 +0100)]
Add extra constructor for pkgmgr_installer for offline mode
This API will be used by app-installer to install manifest
while creating tizen image. Dbus is not available in that case.
Change-Id: I49eaeee83153dd7d0941f31cfa58e0bfa44aa43f
Tomasz Iwanek [Mon, 21 Dec 2015 13:49:35 +0000 (14:49 +0100)]
Reduce number of arguments for PKGMGR_REQ_MANIFEST_DIRECT_INSTALL
Only pkgid is needed.
Requires:
- https://review.tizen.org/gerrit/55079
Change-Id: Idf7cee0d476e5a193868833249ed43662166927c
jongmyeongko [Wed, 6 Jan 2016 07:43:52 +0000 (16:43 +0900)]
new package command error codes for 3.0
Change-Id: I63d144ff90b48b2834cccdc04b2f943112a3e8e1
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeong ko [Mon, 4 Jan 2016 08:20:30 +0000 (00:20 -0800)]
Revert "remove pwdutils dependency"
This reverts commit
4d9ce8368e67228e103afb7b62a4f7f672848634.
Change-Id: I8811ed92e7a3b7374659c10d3ffa2c1ab539fc5d
jongmyeongko [Tue, 29 Dec 2015 07:43:53 +0000 (16:43 +0900)]
remove pwdutils dependency
Change-Id: Icb76d70c4a3c71d6c0aeec801f79067b49c32fcd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 16 Dec 2015 10:48:50 +0000 (19:48 +0900)]
move header files from 'pkgmgr' package to devel pacakge.
Change-Id: I64626b7474344016402015a78e961fef494e8e37
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Mon, 30 Nov 2015 08:30:40 +0000 (17:30 +0900)]
Remove unused variable
Change-Id: I3d7e18726d1850fca1cf79026e9455188708a892
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 30 Nov 2015 08:28:23 +0000 (17:28 +0900)]
Fix pkgmgr_client_clear_cache_dir
add missing input argument
Change-Id: Ida18176a379500277b3f08a80fcd034c0812ba23
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 26 Nov 2015 10:19:18 +0000 (19:19 +0900)]
Add drm related apis
ADDED:
pkgmgr_client_generate_license_request
pkgmgr_client_register_license
pkgmgr_client_decrypt_package
Change-Id: I92f97b457e04be5efae8e659ec052ad3d15d332b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Junghyun Yeon [Tue, 17 Nov 2015 01:08:12 +0000 (10:08 +0900)]
allows to add db information of manifest direct installed app
[app-installers][slp-pkgmgr]
Change-Id: Ib462d97bcf5b494a5bf947db1a7b29fd72a1aee7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
VBS [Mon, 16 Nov 2015 11:06:18 +0000 (03:06 -0800)]
Merge "implement TEP install, update" into tizen
VBS [Tue, 3 Nov 2015 11:33:55 +0000 (20:33 +0900)]
implement TEP install, update
[app-installer][pkgmgr-info][pkgmgr-server][pkgmgr-tool][slp-pkgmgr]
Signed-off-by: VBS <jungh.yeon@samsung.com>
Change-Id: Ia93fe112076574f9b1f10da10c9e565a29528160
Sangyoon Jang [Wed, 4 Nov 2015 07:49:16 +0000 (16:49 +0900)]
Do not create home directory for tizenglobalapp user
Change-Id: I5a3ee82d5e4c2abdd2f143c6545f9450fd305df1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 2 Nov 2015 06:16:15 +0000 (15:16 +0900)]
Add "pwdutils" as package requires
adduser tool is included at pwdutils package
Change-Id: I0fb7aeaa478708b7c3be1dde7fcfc9b3afb33378
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Thu, 29 Oct 2015 01:54:18 +0000 (10:54 +0900)]
seperate tool and server from slp-pkgmgr (for sync with tizen2.4)
to prevent cyclic dependency
Change-Id: Ibb3b820930b9be2d2496d597b76e7ab52f781e1a
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Sangyoon Jang [Thu, 29 Oct 2015 01:54:18 +0000 (10:54 +0900)]
Create tizenglobalapp user at post script
- create tizenglobalapp user
- remove chsmack command at post script
(this should be at tizen-platform-config package)
Change-Id: Id5677d84a6a8ab7e7d562cd4bfe52562a8fcba86
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Wed, 28 Oct 2015 02:09:30 +0000 (11:09 +0900)]
Set target uid on dbus method call
it is necessary to install global apps
TODO:
allow global app installation only for privileged user
Change-Id: Id08619fc3efe0cece086e51251b8d0d913e89ce3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 6 Oct 2015 08:27:15 +0000 (17:27 +0900)]
Fix pkg_privilege, pkg_install_ug
the structure of package's attributes now uses GList instead of custom
linked list
Change-Id: I5f3b0257b2e2bebfcdb87b90c2e3e0732e144a0d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Mon, 19 Oct 2015 06:26:52 +0000 (15:26 +0900)]
Fix intermittent crash
when fails on g_dbus_proxy_call_sync, the g_variant passed is released
automatically because it uses floating reference count.
so we should convert the g_variant to using normal reference count and
handle reference count manually.
Change-Id: I46b41c0d3f89eca3122a293a47e393b455c973e6
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 15 Oct 2015 12:32:39 +0000 (21:32 +0900)]
Set public, partner privilege when install preloaded packages
platform privilege includes public and parnter privilege
Change-Id: I00515fff91fe31fc22bda5516a1350693f0196ff
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Thu, 15 Oct 2015 10:01:21 +0000 (19:01 +0900)]
Set default privilege when install preloaded packages
set platform level temporarily
this tool will be merged to app-installer
Change-Id: Ic4f852a17216ce1437c66e8380745cdf4d97f04c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>