platform/core/appfw/app-installers.git
7 years agoAdd sync() command after recovery file content change 34/121234/1 accepted/tizen/3.0/common/20170331.151916 accepted/tizen/3.0/ivi/20170331.044258 accepted/tizen/3.0/mobile/20170331.044021 accepted/tizen/3.0/tv/20170331.044151 accepted/tizen/3.0/wearable/20170331.044226 submit/tizen_3.0/20170329.045543
Bartlomiej Kunikowski [Fri, 24 Feb 2017 07:04:11 +0000 (08:04 +0100)]
Add sync() command after recovery file content change

There is no synchronization between cached memory and
filesystem, and when we stop eg. installation process by
remove battery from device, and after device is launched
again there is no recovery file of this operation, but we need
it to properly recovery of installation process.

Change-Id: Ie9dfe8a3a71cc36d8b95b39ed62bc17b61120b61

7 years agoFix for StepParseManifest for recovery 33/121233/1
Bartlomiej Kunikowski [Fri, 24 Feb 2017 08:06:57 +0000 (09:06 +0100)]
Fix for StepParseManifest for recovery

When some installation process failing, there may
exists invalid manifest file, so recovery process
should check this situation.

Change-Id: Iab06f8748731def99703be5cc6030b4828c72053

7 years agoFix static analyzer issue 54/119754/1 accepted/tizen/3.0/common/20170324.141619 accepted/tizen/3.0/ivi/20170324.053032 accepted/tizen/3.0/mobile/20170324.052917 accepted/tizen/3.0/tv/20170324.052959 accepted/tizen/3.0/wearable/20170324.053022 submit/tizen_3.0/20170320.132949
Sangyoon Jang [Mon, 20 Mar 2017 04:16:48 +0000 (13:16 +0900)]
Fix static analyzer issue

Change-Id: Id75dac30a64d63fbef55d26bd742db4f77ee88dc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit d2b3eac26867ff24fc0eed3d3ede92617c0106f1)

7 years agoFix installer backend crash issue 02/119602/1
Junghyun Yeon [Tue, 14 Mar 2017 05:00:23 +0000 (14:00 +0900)]
Fix installer backend crash issue

- Backend has crashed with some install cases while
undo StepUpdateApplication after failed to update app.
- It caused because old manifest data doesn't set properly.
- Fix it by checking manifest before use and
not performing undo() in some update cases

Change-Id: Ib0f10f151ef8ea87ada839bb897e081f2f8ecb33
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix memory leak 44/118744/2 accepted/tizen/3.0/common/20170315.122632 accepted/tizen/3.0/ivi/20170314.221556 accepted/tizen/3.0/mobile/20170314.221447 accepted/tizen/3.0/tv/20170314.221526 accepted/tizen/3.0/wearable/20170314.221543 submit/tizen_3.0/20170314.022936
Sangyoon Jang [Tue, 14 Mar 2017 01:41:06 +0000 (10:41 +0900)]
Fix memory leak

Change-Id: I4a6e48bec42f1fa2a8908c028bf1e8e808adead3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 3c6a7f21bc7ec21db316048134bc3e32018c43b3)

7 years agoFix static analyzer issues 43/118743/1
Sangyoon Jang [Thu, 9 Mar 2017 08:51:36 +0000 (17:51 +0900)]
Fix static analyzer issues

Change-Id: I6c8c5dcda1ca9b71d8476807802dfc50cdd6f873
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 7457e82c6eb7e8f4439105cc354977a2b8192572)

7 years agoFix crash issue on PartialUninstall 86/117686/1 accepted/tizen/3.0/common/20170309.110520 accepted/tizen/3.0/ivi/20170309.085818 accepted/tizen/3.0/mobile/20170309.085604 accepted/tizen/3.0/tv/20170309.085703 accepted/tizen/3.0/wearable/20170309.085751 submit/tizen_3.0/20170309.043057
Sangyoon Jang [Tue, 7 Mar 2017 05:58:00 +0000 (14:58 +0900)]
Fix crash issue on PartialUninstall

PkgmgrGenerateManifestInfoFromDB generates manifest_x structure not
completely when manifest file not found.

Change-Id: I8e0a0c2a3839e45a088b360085376fae1d1c1f91
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit d08418bc67511fb04a017d0d75b3a8eadc1336b7)

7 years agoSet proper splash screen image for landscape 71/117171/1 accepted/tizen/3.0/common/20170307.113429 accepted/tizen/3.0/ivi/20170307.090629 accepted/tizen/3.0/mobile/20170307.090302 accepted/tizen/3.0/tv/20170307.090457 accepted/tizen/3.0/wearable/20170307.090542 submit/tizen_3.0/20170306.070943 submit/tizen_3.0/20170307.014135
Semun Lee [Fri, 3 Mar 2017 04:31:47 +0000 (13:31 +0900)]
Set proper splash screen image for landscape

Change-Id: Ie1fa1165da087dc53b86754195b21519a732a504
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
(cherry picked from commit f253aeaa46ca697b6e480c6feea4a5fe46ed7e61)

7 years agoAdd pkg_recovery tools 28/117128/1
Sangyoon Jang [Fri, 10 Jun 2016 04:34:21 +0000 (13:34 +0900)]
Add pkg_recovery tools

Two new binary will be introduced:
 1. pkg_recovery
  This tool activated with dbus call and launch backend for recovery process.
 2. pkg_recovery_helper
  This tool will be launched when the user session is started.
  Search recovery files at $HOME/apps_rw and launch pkg_recovery tool by
  dbus for actual recovery process.

For working above new tools, recovry file naming rule is changed to:
<type>-recovery-<tmpstr>

Change-Id: Iec84e4163ae0addd87443bac3d2154b872017d4e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoSkip reference check in case of RW partial request 77/117077/2
jongmyeongko [Thu, 2 Mar 2017 13:50:47 +0000 (22:50 +0900)]
Skip reference check in case of RW partial request

The reference check is not necessary.

Change-Id: Ibd369435bc41a4b5f24e9215e6a4928021cdae95
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoModify the logic of checking metadata privilege 60/115760/1 accepted/tizen/3.0/common/20170224.125754 accepted/tizen/3.0/ivi/20170224.041441 accepted/tizen/3.0/mobile/20170224.040710 accepted/tizen/3.0/tv/20170224.041053 accepted/tizen/3.0/wearable/20170224.041221 submit/tizen_3.0/20170223.013552
jongmyeongko [Tue, 21 Feb 2017 06:57:07 +0000 (15:57 +0900)]
Modify the logic of checking metadata privilege

Only key list should be passed to privilege-manager api.

Change-Id: Ia874a40d34c6d3b57edfbecc9695c05ed3ff28bd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoChange path of rds delta file 99/114699/2 accepted/tizen/3.0/common/20170222.125351 accepted/tizen/3.0/ivi/20170222.081611 accepted/tizen/3.0/mobile/20170222.081237 accepted/tizen/3.0/tv/20170222.081356 accepted/tizen/3.0/wearable/20170222.081437 submit/tizen_3.0/20170221.004258
Junghyun Yeon [Tue, 14 Feb 2017 11:45:12 +0000 (20:45 +0900)]
Change path of rds delta file

- IDE cannot access previous path used in 2.4 so
path of rds delta file has changed.
- So change unpacked dir when reinstall

Change-Id: Iff0ea23c54b6ca8a53e0da9e37caca696f142eff
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoMerge "Add timezone plugin category" into tizen_3.0 accepted/tizen/3.0/common/20170217.122038 accepted/tizen/3.0/ivi/20170217.021816 accepted/tizen/3.0/mobile/20170217.021514 accepted/tizen/3.0/tv/20170217.021613 accepted/tizen/3.0/wearable/20170217.021736 submit/tizen_3.0/20170216.102709
Junghyun Yeon [Thu, 16 Feb 2017 09:45:27 +0000 (01:45 -0800)]
Merge "Add timezone plugin category" into tizen_3.0

7 years agoFix static analysis issue 74/115074/1
Junghyun Yeon [Thu, 16 Feb 2017 08:00:13 +0000 (17:00 +0900)]
Fix static analysis issue

Change-Id: I64a069b552e49149e261eb0f49495e82f970d44e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd timezone plugin category 51/114951/2
Junghyun Yeon [Thu, 16 Feb 2017 01:28:13 +0000 (10:28 +0900)]
Add timezone plugin category

Change-Id: I02cba935b1fd54d548d9b744e22d52f1269651f7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSkip copying rw directories if request mode is global 27/114327/3
Damian Pietruchowski [Fri, 10 Feb 2017 15:58:41 +0000 (16:58 +0100)]
Skip copying rw directories if request mode is global

When request mode is global rw directories should not exist
in /opt/usr/globalapps/pkg_id, so we should not copying
this directories to backup.

Change-Id: I4b0807fa1a65e1da7a2b7c2ff4cc422513653d43
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
7 years agoFix unregister security context for recovery 28/114328/2
Damian Pietruchowski [Tue, 24 Jan 2017 15:18:28 +0000 (16:18 +0100)]
Fix unregister security context for recovery

For recovery of installation, in step StepRecoverSecurity app's
directory did not exist and Check() method returns false.
So in RecoveryNew() method UnregisterSecurityContextForManifest()
was not executed.

Change-Id: I73aa7db8eccfa1d6b74f941cf5db80ef487b3a11
Signed-off-by: Damian Pietruchowski <d.pietruchow@samsung.com>
(cherry picked from commit 75f8f0deff90239be0492a0674482ce305891c5b)

7 years agoFix static analyzer issues 14/114314/1 accepted/tizen/3.0/common/20170214.180722 accepted/tizen/3.0/ivi/20170214.092327 accepted/tizen/3.0/mobile/20170214.092110 accepted/tizen/3.0/tv/20170214.092225 accepted/tizen/3.0/wearable/20170214.092300 submit/tizen_3.0/20170213.113017
Sangyoon Jang [Mon, 13 Feb 2017 02:00:37 +0000 (11:00 +0900)]
Fix static analyzer issues

Change-Id: I3eab39f1c84b0b96d91834f0da8b5bf75394321f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 57aa1da804676bb787363e8f0c0b0005fc01ef26)

7 years agoChange return type of GetRequestInfo 88/114188/1
Sangyoon Jang [Fri, 10 Feb 2017 07:19:53 +0000 (16:19 +0900)]
Change return type of GetRequestInfo

GetRequestInfo returns const char*, but it is used as std::string.
This cause crash when the return value of GetRequestInfo is NULL.

Change-Id: I27bf835daec7eabe7c61490e38739ff0bd9079bb
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 7d1126de539dfad40050ee0d6719db374805f20e)

7 years agoFix StepCheckRestriction 78/113778/1
Sangyoon Jang [Fri, 3 Feb 2017 07:10:40 +0000 (16:10 +0900)]
Fix StepCheckRestriction

Check restriction mode when MountInstall mode.
Do not check when Reinstall mode.

Change-Id: Iac52df7d8c8a9ef3b250e3197354ea663e3685e8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit 83b1ddd6942f0491f2491cde94fc8ddd9958b08d)

7 years agoDisable xdelta3 external decompression 86/110586/3
Venkatesha Sarpangala [Tue, 17 Jan 2017 06:23:39 +0000 (11:53 +0530)]
Disable xdelta3 external decompression

Tizen store doesn't use external compression.
Hence the generated delta files doesn't contain external compression.
So it's required to disable external compression to successfully
patch files that are candidate files for secondary compression such as xz, gz, so on
to avoid patching failures

Change-Id: Idce9dbba60601949a5ab2fcef0aa5e01744a1c55
Signed-off-by: Venkatesha Sarpangala <sarpangala.v@samsung.com>
7 years agoCherry-pick a change from tizen branch 65/111465/1 accepted/tizen/3.0/common/20170124.155427 accepted/tizen/3.0/ivi/20170124.121421 accepted/tizen/3.0/mobile/20170124.121330 accepted/tizen/3.0/tv/20170124.121352 accepted/tizen/3.0/wearable/20170124.121406 submit/tizen_3.0/20170124.024417
jongmyeongko [Fri, 20 Jan 2017 06:44:49 +0000 (15:44 +0900)]
Cherry-pick a change from tizen branch

Change:
 - Add handling Error and NULL result from system-info api

Change-Id: Id809e66da6124716c6c0bbf862acbeceb7799369
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd profile util 52/109552/10 accepted/tizen/3.0/common/20170120.102118 accepted/tizen/3.0/ivi/20170119.225306 accepted/tizen/3.0/mobile/20170119.225218 accepted/tizen/3.0/tv/20170119.225234 accepted/tizen/3.0/wearable/20170119.225249 submit/tizen_3.0/20170118.065338
Junghyun Yeon [Tue, 10 Jan 2017 11:01:27 +0000 (20:01 +0900)]
Add profile util

- Add profile util to determine target profile at runtime

Change-Id: Ia66867a3d8516ace5277c4324f5fa15340bac6e8
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd additional_shared_dirs_ in CreateSkelDirectories() 47/110647/1 accepted/tizen/3.0/common/20170118.131133 accepted/tizen/3.0/ivi/20170118.043430 accepted/tizen/3.0/mobile/20170118.043307 accepted/tizen/3.0/tv/20170118.043347 accepted/tizen/3.0/wearable/20170118.043406 submit/tizen_3.0/20170117.081246
min7.choi [Tue, 17 Jan 2017 09:16:01 +0000 (18:16 +0900)]
Add additional_shared_dirs_ in CreateSkelDirectories()

Change-Id: I8939089ec26c8274ce99405d09e8d78baa8a7585
Signed-off-by: min7.choi <min7.choi@samsung.com>
7 years agoFix StepRecoverChangeOwner for MountUpdate. 53/106153/7 accepted/tizen/3.0/common/20170116.122538 accepted/tizen/3.0/ivi/20170114.000320 accepted/tizen/3.0/mobile/20170114.000209 accepted/tizen/3.0/tv/20170114.000249 accepted/tizen/3.0/wearable/20170114.000305 accepted/tizen/common/20170112.174444 accepted/tizen/ivi/20170112.222536 accepted/tizen/mobile/20170112.222427 accepted/tizen/tv/20170112.222453 accepted/tizen/wearable/20170112.222514 submit/tizen/20170112.013301 submit/tizen_3.0/20170113.111925
Bartlomiej Kunikowski [Tue, 20 Dec 2016 12:39:47 +0000 (13:39 +0100)]
Fix StepRecoverChangeOwner for MountUpdate.

There were problems with owners of some files after recovery.
These files' ownership should be changed.

Verification:
 - $ /usr/bin/wgt-backend-ut/smoke-test --gtest_filter=SmokeTest.RecoveryMode_ForMountUpdate

Change-Id: I4efbf39620a5c65e72b94067e133937f1f11802b

7 years agoForce database cleanup when app files do not exists 81/104381/8 submit/tizen_3.0/20170106.072144
Piotr Ganicz [Tue, 13 Dec 2016 07:17:22 +0000 (08:17 +0100)]
Force database cleanup when app files do not exists

This commit allows user to install app while following conditions
are accomplished:
 1. Database stores the manifest file for the same pkgid as installed app.
 2. There aren't any app files on the device.

It removes whole manifest information from that database and executes
RequestType::Install strategy.

Requires:
  [1] https://review.tizen.org/gerrit/#/c/104380/

Change-Id: I5447002ce3377b8162ecf698303a45a45c0d26f8

7 years agoManifest utils 80/104380/8
Piotr Ganicz [Mon, 12 Dec 2016 17:49:00 +0000 (18:49 +0100)]
Manifest utils

This commit exports two functions for global usage.
 - First one returns manifest_x from database.
 - Second one returns path to manifest file.

Change-Id: I707cf8de7b5acb86aa326a6d21301db9dbf7aa6f

7 years agoForce backup 69/103169/8
Piotr Ganicz [Wed, 7 Dec 2016 10:38:34 +0000 (11:38 +0100)]
Force backup

This commit deletes old backup files that can remain in system
after previous invalid installation before creating a new backup.

Change-Id: I9c983823f7af7b43151799929d5008025e2c04ed

7 years agoSupport legacy image for backward-compatibility 24/107124/17 accepted/tizen/3.0/common/20170109.195852 accepted/tizen/3.0/ivi/20170109.073426 accepted/tizen/3.0/tv/20170110.055251 accepted/tizen/3.0/wearable/20170109.073222 submit/tizen_3.0/20170106.102334
jongmyeongko [Mon, 26 Dec 2016 16:09:40 +0000 (01:09 +0900)]
Support legacy image for backward-compatibility

Refer to:
https://review.tizen.org/gerrit/#/c/104823/

Change-Id: I1ccfb33c0fd12eb642352b9fd0a69f626087b5f8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoApply the change of skel root path from /etc to /opt/etc 40/102740/18 accepted/tizen/3.0/common/20170109.083940 accepted/tizen/3.0/ivi/20170106.095011 accepted/tizen/3.0/mobile/20170106.094820 accepted/tizen/3.0/tv/20170106.094913 accepted/tizen/3.0/wearable/20170106.094941 accepted/tizen/common/20170110.085220 accepted/tizen/ivi/20170106.103643 accepted/tizen/mobile/20170106.103448 accepted/tizen/tv/20170106.103532 accepted/tizen/wearable/20170106.103608 submit/tizen/20170105.051706 submit/tizen_3.0/20170105.051635
jongmyeongko [Tue, 6 Dec 2016 11:00:11 +0000 (20:00 +0900)]
Apply the change of skel root path from /etc to /opt/etc

The change of skel root path is from readonly mount policy of root filesystem.
(/etc is included in root filesystem.)
Because the skel is designed as writable concept, the root path of skel should be changed in RW partition.

Change-Id: Iec87da4ee3533fb415114bc8c24e138e4cb01257
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoSet group of cache dir as system_share 01/108401/2
Sangyoon Jang [Wed, 4 Jan 2017 08:00:16 +0000 (17:00 +0900)]
Set group of cache dir as system_share

cache dir should be treated as data, shared/data.

Change-Id: I9864c0f42ff4901e206d7051605e677d82284359
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRevert "Temporary fix for hybrid pkg installation" 38/107238/4
Sangyoon Jang [Tue, 27 Dec 2016 07:54:49 +0000 (16:54 +0900)]
Revert "Temporary fix for hybrid pkg installation"

This reverts commit 01c6dc4d8426123f93e91130620bd6cd2fdfd86f.

Now hybrid installer can merge manifest completely.

Submit with:
 - https://review.tizen.org/gerrit/107236
 - https://review.tizen.org/gerrit/107237
 - https://review.tizen.org/gerrit/107238
 - https://review.tizen.org/gerrit/107239

Change-Id: Ic90a5d6e8a0e3eb419647c6433e20a48e83fd15d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoSkip to change ownership and permissions to the symlink file 57/107557/3
jongmyeongko [Wed, 28 Dec 2016 11:54:39 +0000 (20:54 +0900)]
Skip to change ownership and permissions to the symlink file

To prevent chaning to the path outside of application path.

Change-Id: Id3c5d3ca33ec7e6f484c8185d0279fc109cafa39
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd new plugin parser library to the list 42/107342/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.121747 accepted/tizen/3.0.m2/tv/20170104.122606 accepted/tizen/3.0.m2/wearable/20170104.122920 accepted/tizen/3.0/common/20161228.162409 accepted/tizen/3.0/ivi/20161228.092328 accepted/tizen/3.0/mobile/20161228.092235 accepted/tizen/3.0/tv/20161228.092303 accepted/tizen/3.0/wearable/20161228.092318 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161228.025249
jongmyeongko [Tue, 27 Dec 2016 13:12:16 +0000 (22:12 +0900)]
Add new plugin parser library to the list

Change-Id: Ia829e470d0a7881bf356ce049134b6fd18289666
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix wrong if condition at CMakeLists.txt 98/107198/1 accepted/tizen/3.0/common/20161228.071616 accepted/tizen/3.0/ivi/20161228.021727 accepted/tizen/3.0/mobile/20161228.021548 accepted/tizen/3.0/tv/20161228.021640 accepted/tizen/3.0/wearable/20161228.021706 submit/tizen_3.0/20161227.023045
Sangyoon Jang [Tue, 27 Dec 2016 06:23:48 +0000 (15:23 +0900)]
Fix wrong if condition at CMakeLists.txt

Change-Id: Ia088843da1b5b24f10afa612af817681e60a3947
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove codes which refers deleted attribute 33/107033/3 accepted/tizen/3.0/common/20161227.181316 accepted/tizen/3.0/ivi/20161227.141643 accepted/tizen/3.0/mobile/20161227.141442 accepted/tizen/3.0/tv/20161227.141522 accepted/tizen/3.0/wearable/20161227.141622 submit/tizen_3.0/20161226.101740
Junghyun Yeon [Mon, 26 Dec 2016 07:31:08 +0000 (16:31 +0900)]
Remove codes which refers deleted attribute

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/107032
[tpk-backend] : https://review.tizen.org/gerrit/107034
[wgt-backend] : https://review.tizen.org/gerrit/107035

Change-Id: I68669c969a484a2bd19a94f75c0cd294b2e804e2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix profile macro 07/107007/1
Sangyoon Jang [Mon, 26 Dec 2016 06:29:34 +0000 (15:29 +0900)]
Fix profile macro

Change-Id: I54594c5d334b8c217acbdeccb9e49bd730d55bdf
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRevert "Support legacy content directory path" 74/106774/2 accepted/tizen/3.0/common/20161228.071533 accepted/tizen/3.0/ivi/20161226.030257 accepted/tizen/3.0/mobile/20161226.030123 accepted/tizen/3.0/tv/20161226.030204 accepted/tizen/3.0/wearable/20161226.030230 submit/tizen_3.0/20161223.043050
Sangyoon Jang [Fri, 23 Dec 2016 02:40:28 +0000 (11:40 +0900)]
Revert "Support legacy content directory path"

This reverts commit 10d8245726f7cc1125878a3af35cb2ddf92df867.

Adjusting legacy content path will be done by pkgmgr-server.

Submit with:
 - https://review.tizen.org/gerrit/106773

Change-Id: I9eb30805c8ba9837cbe33687b3b0dfb349e552bd

7 years agoCleardata will not be handled by backend 91/105691/10
Junghyun Yeon [Mon, 19 Dec 2016 08:39:16 +0000 (17:39 +0900)]
Cleardata will not be handled by backend

- Cleardata operation will be handled by pkg_cleardata
- Remove features related with it

Related changes:
[pkgmgr-server] : https://review.tizen.org/gerrit/106486
[pkgmgr-tool] : https://review.tizen.org/gerrit/106485
[tpk-backend] : https://review.tizen.org/gerrit/106603
[wgt-backend] : https://review.tizen.org/gerrit/106601

Change-Id: I19664fa8841467395c236af9a3a63fd206ded02e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd undo operation at StepCreatePerUserStorageDirectories 00/106500/2
Sangyoon Jang [Thu, 22 Dec 2016 02:23:43 +0000 (11:23 +0900)]
Add undo operation at StepCreatePerUserStorageDirectories

Change-Id: Ifaf8786995d4fad30be39adcd52d463cda2dcbda
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFox to not print error message when certinfo is not exists 57/105957/2 accepted/tizen/3.0/common/20161227.101238 accepted/tizen/3.0/ivi/20161222.024823 accepted/tizen/3.0/mobile/20161222.024704 accepted/tizen/3.0/tv/20161222.024730 accepted/tizen/3.0/wearable/20161222.024756 submit/tizen_3.0/20161221.130430
Junghyun Yeon [Tue, 20 Dec 2016 06:12:23 +0000 (15:12 +0900)]
Fox to not print error message when certinfo is not exists

Change-Id: I4c70db626d2ad65658ab6810c250e67d44734382
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix setting mainapp attribute 80/105780/4
Sangyoon Jang [Mon, 19 Dec 2016 11:37:03 +0000 (20:37 +0900)]
Fix setting mainapp attribute

Use parsed mainapp first, but if there is no parsed mainapp, take first
app as mainapp.

Requires:
 - https://review.tizen.org/gerrit/106007

Change-Id: I021f86bbdfae95034b542d9b9ae4a00875ed7e29
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix undo() of StepCopyStorageDirectories 43/105643/2
Sangyoon Jang [Mon, 19 Dec 2016 07:34:06 +0000 (16:34 +0900)]
Fix undo() of StepCopyStorageDirectories

Skip when global mode like as process().

Change-Id: Ic2dcf9d4782d9018b24941b7cd37471e5bcae9f0
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix some log level 29/105629/2
Sangyoon Jang [Mon, 19 Dec 2016 06:46:29 +0000 (15:46 +0900)]
Fix some log level

Change-Id: I0fd06c529811bbe5bd1da8898f257240e8825cad
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoCreate private tmp directory in skel 68/105468/4 accepted/tizen/3.0/common/20161221.180529 accepted/tizen/3.0/ivi/20161221.005137 accepted/tizen/3.0/mobile/20161221.005217 accepted/tizen/3.0/tv/20161221.004941 accepted/tizen/3.0/wearable/20161221.005038 submit/tizen_3.0/20161219.021225
Piotr Dabrowski [Mon, 19 Dec 2016 07:18:23 +0000 (08:18 +0100)]
Create private tmp directory in skel

Submit together:
https://review.tizen.org/gerrit/#/c/105467/
https://review.tizen.org/gerrit/#/c/105468/

Change-Id: I5556e12d01a66111b9ccfd86ee0b5c5b5d51af91

7 years agoRevert "Revert "Add missing definition at CMakeLists.txt"" 57/105457/1 accepted/tizen/3.0/common/20161219.113506 accepted/tizen/3.0/ivi/20161219.070914 accepted/tizen/3.0/tv/20161219.072653 accepted/tizen/3.0/wearable/20161219.095435 submit/tizen_3.0/20161216.082724
Sangyoon Jang [Fri, 16 Dec 2016 13:31:45 +0000 (22:31 +0900)]
Revert "Revert "Add missing definition at CMakeLists.txt""

This reverts commit 08089ea54582eb8f6f12ec83738f4712bd2e5dc4.

Change-Id: I6667edf2c606b5344653d27804d6681cd9c8871d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRevert "Add missing definition at CMakeLists.txt" 52/105452/1 accepted/tizen/3.0/common/20161219.113636 accepted/tizen/3.0/ivi/20161216.133029 accepted/tizen/3.0/mobile/20161216.132947 accepted/tizen/3.0/tv/20161216.132956 accepted/tizen/3.0/wearable/20161216.133010 submit/tizen_3.0/20161216.132215
Sangyoon Jang [Fri, 16 Dec 2016 13:19:41 +0000 (22:19 +0900)]
Revert "Add missing definition at CMakeLists.txt"

This reverts commit 17318972d51074cef7e6147109d038833e9da81b.

Temporary disable admin user global installation policy.

Change-Id: I8e4d39acdc934fa87107b84413c5580e0a322d88
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agofix on handling the request from admin user as global request 30/105430/2
jongmyeongko [Fri, 16 Dec 2016 12:13:48 +0000 (21:13 +0900)]
fix on handling the request from admin user as global request

- to support parser plugin

Change-Id: I5861c5733db1b8e6413887458586d357a64c17e1
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix update failure requested by admin user 46/105346/1
Sangyoon Jang [Fri, 16 Dec 2016 08:40:42 +0000 (17:40 +0900)]
Fix update failure requested by admin user

Change-Id: Ibd160635361f8d62cf546b300efe924e83173aa5
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoCode style check 10/104810/2
Piotr Ganicz [Wed, 14 Dec 2016 10:10:38 +0000 (11:10 +0100)]
Code style check

This change removes all errors detected by check-coding-style script.

Change-Id: Id5bc7abcade2558295494d1b4fabe8d59815f3d5

7 years agoAdd missing definition at CMakeLists.txt 30/105030/1 accepted/tizen/3.0/ivi/20161216.084637 accepted/tizen/3.0/mobile/20161216.084607 accepted/tizen/3.0/tv/20161216.084616 accepted/tizen/3.0/wearable/20161216.084625 submit/tizen_3.0/20161215.070007 submit/tizen_3.0/20161216.015353
Sangyoon Jang [Thu, 15 Dec 2016 06:52:08 +0000 (15:52 +0900)]
Add missing definition at CMakeLists.txt

Change-Id: Iaa830f968b1b429882f8fc8d7cd79af2071a915b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoParse support-disable 48/104648/3 accepted/tizen/3.0/common/20161216.122418 accepted/tizen/3.0/ivi/20161216.013331 accepted/tizen/3.0/mobile/20161216.013126 accepted/tizen/3.0/tv/20161216.013241 accepted/tizen/3.0/wearable/20161216.013303 submit/tizen_3.0/20161214.072903
Sangyoon Jang [Wed, 14 Dec 2016 04:03:49 +0000 (13:03 +0900)]
Parse support-disable

Change-Id: I1085bef5f9b4ba60a53d439cdd9178548eb152b4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMerge "Add default permission of directory for global pkg to 755" into tizen_3.0
Junghyun Yeon [Wed, 14 Dec 2016 07:24:11 +0000 (23:24 -0800)]
Merge "Add default permission of directory for global pkg to 755" into tizen_3.0

7 years agoHandle request from admin user as global request 92/96492/23
Sangyoon Jang [Wed, 9 Nov 2016 07:07:21 +0000 (16:07 +0900)]
Handle request from admin user as global request

Change-Id: I1de150ffc7bc13cd3615e77a168c5c0493a26d39
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd default permission of directory for global pkg to 755 37/104637/1
Junghyun Yeon [Wed, 14 Dec 2016 02:29:19 +0000 (11:29 +0900)]
Add default permission of directory for global pkg to 755

Change-Id: I3c37fbe5c5b97a48a606e041ce30d48dfcd05693
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoLet force_clean work when partialuninstall scenario 78/104378/1
Junghyun Yeon [Tue, 13 Dec 2016 08:10:30 +0000 (17:10 +0900)]
Let force_clean work when partialuninstall scenario

Change-Id: I1c3af379914298a1ede19ce9f4ce6dbf69884c4c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix setting mainapp attribute 45/104145/1 accepted/tizen/3.0/common/20161213.163827 accepted/tizen/3.0/ivi/20161213.064819 accepted/tizen/3.0/mobile/20161213.064712 accepted/tizen/3.0/tv/20161213.064738 accepted/tizen/3.0/wearable/20161213.064755 submit/tizen_3.0/20161212.103225
Sangyoon Jang [Mon, 12 Dec 2016 11:21:09 +0000 (20:21 +0900)]
Fix setting mainapp attribute

When installing hybrid application, webapp should be main application.
Native application should not be main application.

Change-Id: I1e210ad22e7b3f5e5bdcde0ea88f9c58e177bc3d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMerge "Add codes at StepRemoveFiles to remove RO data properly" into tizen_3.0 accepted/tizen/3.0/common/20161212.060309 accepted/tizen/3.0/ivi/20161212.022744 accepted/tizen/3.0/mobile/20161212.022502 accepted/tizen/3.0/tv/20161212.022639 accepted/tizen/3.0/wearable/20161212.022712 submit/tizen_3.0/20161209.072525
jongmyeong ko [Fri, 9 Dec 2016 07:44:18 +0000 (23:44 -0800)]
Merge "Add codes at StepRemoveFiles to remove RO data properly" into tizen_3.0

7 years agomove the behavior of StepGrantPermission to StepChangeOwnershipAndPermission 59/103359/10
jongmyeongko [Thu, 8 Dec 2016 06:23:36 +0000 (15:23 +0900)]
move the behavior of StepGrantPermission to StepChangeOwnershipAndPermission

to support this behavior commonly for wgt / tpk.

Submit with :
https://review.tizen.org/gerrit/#/c/103361/
https://review.tizen.org/gerrit/#/c/103512/

Change-Id: I60e72bb1b6a832a2d33fb472c1b30d594f6a029a
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAssume privilege level as platform when partial install case 92/103592/1
Junghyun Yeon [Fri, 9 Dec 2016 01:42:32 +0000 (10:42 +0900)]
Assume privilege level as platform when partial install case

Change-Id: Iec93a26d11e8ebb7f9416830528a52361a530313
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdd codes at StepRemoveFiles to remove RO data properly 44/102744/5
Junghyun Yeon [Tue, 6 Dec 2016 11:06:21 +0000 (20:06 +0900)]
Add codes at StepRemoveFiles to remove RO data properly

- when tried to uninstall preload-rw package but keep
rwdata, RO directory should be removed

Related changes:
[wgt-backend] : https://review.tizen.org/gerrit/102026

Change-Id: I4f42eac12b6b1d69aedee2627a32f7fc4b1e55d9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSupport debug mode installation 79/103179/3
Sangyoon Jang [Wed, 7 Dec 2016 11:58:16 +0000 (20:58 +0900)]
Support debug mode installation

Requires:
 - https://review.tizen.org/gerrit/103163

Change-Id: I3112673326054c0e45404c8bcc5cff18737d6ec4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoGetRequestType will return unknown if query_interface is not implemented 13/103313/1 accepted/tizen/3.0/common/20161209.094805 accepted/tizen/3.0/ivi/20161209.001938 accepted/tizen/3.0/mobile/20161209.001838 accepted/tizen/3.0/tv/20161209.001911 accepted/tizen/3.0/wearable/20161209.001924 submit/tizen_3.0/20161208.065808
Junghyun Yeon [Thu, 8 Dec 2016 04:40:22 +0000 (13:40 +0900)]
GetRequestType will return unknown if query_interface is not implemented

Change-Id: I46169a22d0f8c0ba71e30288ea3873f3bd664190
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agocheck metadata privilege level 99/102799/5 accepted/tizen/3.0/common/20161208.153402 accepted/tizen/3.0/ivi/20161208.062728 accepted/tizen/3.0/mobile/20161208.062428 accepted/tizen/3.0/tv/20161208.062556 accepted/tizen/3.0/wearable/20161208.062638 submit/tizen_3.0/20161207.072901
jongmyeongko [Tue, 6 Dec 2016 13:03:17 +0000 (22:03 +0900)]
check metadata privilege level

Change-Id: I798acae8b829319579f7bbe16bf1a192380a99a3
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix possible nullpointer issue 27/103027/3
Junghyun Yeon [Wed, 7 Dec 2016 05:23:38 +0000 (14:23 +0900)]
Fix possible nullpointer issue

- Assume request as unknown when there are no query interface

Change-Id: I88b85982538c34774cf4475243fb2d3bf3a41c8a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdjust to change of support ambient 55/103055/3
Sangyoon Jang [Wed, 7 Dec 2016 06:38:11 +0000 (15:38 +0900)]
Adjust to change of support ambient

Requires:
 - https://review.tizen.org/gerrit/102774

Change-Id: Idb9a6cae1c61751297f02d1461fffc96926a77fc
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAddition of main attribute for widget-application 66/101266/6
Piotr Ganicz [Wed, 30 Nov 2016 11:54:22 +0000 (12:54 +0100)]
Addition of main attribute for widget-application

This commit repairs the issue with generating proper main attribute
for widget-application element in manifest. Only one attribute can
be set to "true" for list of apps (widget-application).

Submit together:
  - https://review.tizen.org/gerrit/#/c/101269/
  - https://review.tizen.org/gerrit/#/c/101267/
  - https://review.tizen.org/gerrit/#/c/101266/

Change-Id: I8d4688f0fcd779e3c3fab6751290ce051c8c4845

7 years agoParse legacy splash screens 12/102612/4
Sangyoon Jang [Tue, 6 Dec 2016 07:54:02 +0000 (16:54 +0900)]
Parse legacy splash screens

Parse legacy splash screens from:
 - ui-application's attributes
 - metadata

Submit with:
 - https://review.tizen.org/gerrit/102617

Change-Id: I6289e1e4798be7111c1f284c50926f2831347600
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix for setting gid properly 80/101680/7
Sangyoon Jang [Fri, 2 Dec 2016 02:53:00 +0000 (11:53 +0900)]
Fix for setting gid properly

data, shared/data directories were not set system share group at undo of
StepBackupCopy and recovery mode.

Run smoke test for verification.

Change-Id: Ia9d035d4caf95ad441eab991b300c09f3cceb964
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoapply partial-rw feature to privilege compatibility step. 02/102402/2
jongmyeongko [Mon, 5 Dec 2016 13:54:44 +0000 (22:54 +0900)]
apply partial-rw feature to privilege compatibility step.

Change-Id: I09083d680ab71e9df6c0c3e7b1af38cb84b42a7c
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd null checking at AssignPackageTags 99/102099/3 accepted/tizen/3.0/common/20161206.125823 accepted/tizen/3.0/ivi/20161206.000414 accepted/tizen/3.0/mobile/20161206.000238 accepted/tizen/3.0/tv/20161206.000336 accepted/tizen/3.0/wearable/20161206.000354 submit/tizen_3.0/20161205.120256
Sangyoon Jang [Mon, 5 Dec 2016 04:19:28 +0000 (13:19 +0900)]
Add null checking at AssignPackageTags

Change-Id: I06b9b82e7ec3d02a05fce8a9be844a0bc8b36356
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoIn case of partial-rw requset, skip labeling of RO paths. 66/102166/5
jongmyeong ko [Mon, 5 Dec 2016 06:24:08 +0000 (22:24 -0800)]
In case of partial-rw requset, skip labeling of RO paths.

This reverts commit 1d12b640426570bd357d43cbf941377aa0fcf961.

Change-Id: I7d0c14cc54c14dfb1668c255d5cee127f32d36f8
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRevert "In case of partial-rw requset, register security context for rwdata path... 23/102023/1
jongmyeong ko [Sun, 4 Dec 2016 08:37:41 +0000 (00:37 -0800)]
Revert "In case of partial-rw requset, register security context for rwdata path only."

This reverts commit ce81ad87d8f693909724ef479035d975f1506fde.

Change-Id: Icb24e75f22f6761fa5a79e7a6f78765ba25dbc29

7 years agoIn case of partial-rw requset, register security context for rwdata path only. 21/102021/1
jongmyeongko [Sun, 4 Dec 2016 05:56:07 +0000 (14:56 +0900)]
In case of partial-rw requset, register security context for rwdata path only.

Change-Id: I349ba8fce51627f603148b9fdaff1d59e68a7ed1
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdjust to fix of installer error codes 09/101409/2
Sangyoon Jang [Thu, 1 Dec 2016 06:04:48 +0000 (15:04 +0900)]
Adjust to fix of installer error codes

Submit with:
 - https://review.tizen.org/gerrit/101411
 - https://review.tizen.org/gerrit/101412

Change-Id: I5f2ef1e91af87bb343151490566668a4a1ca0760
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRemove build warnings 93/101393/1
Sangyoon Jang [Thu, 1 Dec 2016 05:35:48 +0000 (14:35 +0900)]
Remove build warnings

Change-Id: Id4ba809bdc3b67a5160f7448d80b6338ca1e8489
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agobugfix pkg_initdb 69/101369/1 accepted/tizen/3.0/common/20161203.012138 accepted/tizen/3.0/ivi/20161201.075334 accepted/tizen/3.0/mobile/20161201.075119 accepted/tizen/3.0/tv/20161201.075218 accepted/tizen/3.0/wearable/20161201.075249 submit/tizen_3.0/20161201.024602
jongmyeongko [Thu, 1 Dec 2016 04:44:51 +0000 (13:44 +0900)]
bugfix pkg_initdb

Change-Id: Ibe24c3c401693da915d858a88be288042426e816
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agobugfix of making globalapp symlink 08/101308/2 submit/tizen_3.0/20161130.132739
jongmyeongko [Wed, 30 Nov 2016 16:25:38 +0000 (01:25 +0900)]
bugfix of making globalapp symlink

Change-Id: I4b816bc2aeee81517cdc7d8bd15e9f342dea0401
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix for readonly update mode 79/97079/17
Sangyoon Jang [Fri, 11 Nov 2016 06:14:37 +0000 (15:14 +0900)]
Fix for readonly update mode

When try to update preload package RO to RW, installer should keep files
for rollback. This patch introduce new request type(ReadonlyUpdateInstall,
ReadonlyUpdateUninstall) for handling above request.

RO -> RW: keep RO package files, install new RW package at TZ_SYS_RW_APPS.
          signal type to send: Update
  changed package attributes: preload(true->false), update(false->true)

RW -> RO: remove RW package files at TZ_SYS_RW_APPS, pkgmgr/security
          context register using existing RO manifest and files.
  signal type to send: Update
  changed package attributes: preload(false->true), update(true->false)

Change-Id: Ibeceeffddb00d70f4a75abf8a1376a93e47f02f7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoimplement some new features 23/100323/20
jongmyeongko [Sun, 27 Nov 2016 10:58:42 +0000 (19:58 +0900)]
implement some new features

partial install/update feature.
keep-rwdata feature.
clean feature
- if manifest not exist but pkg exists in db.
pkg_initdb option added

Requires :
https://review.tizen.org/gerrit/#/c/100625/
https://review.tizen.org/gerrit/#/c/100891/

Usage:
#tpk-backend -y {pkgid} --preload --partial-rw
#tpk-backend -d {pkgid} --preload --force-remove --partial-rw
#tpk-backend -d {pkgid} --preload-rw --keep-rwdata
#tpk-backend -y {pkgid} --u {userid} --bg-operation
#pkg_initdb --partial-rw (for 2.4 -> 3.0 migration)
#pkg_initdb --ro (for MIC)

Change-Id: Ib6066332fd9e462a3b8afe446c15c94971745ca6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoRemove codes related with pkgdir-tool 46/100346/3
Junghyun Yeon [Thu, 13 Oct 2016 07:45:49 +0000 (16:45 +0900)]
Remove codes related with pkgdir-tool

- Each backend running as app_fw user so
pkgdir-tool don't be needed anymore for directory operations

Change-Id: Ib61c827c35c112fdd7676905872c276ecba3784e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoIgnore external storage error while uninstalling pkg 46/100646/4
Junghyun Yeon [Tue, 29 Nov 2016 01:34:03 +0000 (10:34 +0900)]
Ignore external storage error while uninstalling pkg

- If error has happened when acquiring external storage
for uninstall, it will be ignored

Related changes:
[pkgmgr-info] : https://review.tizen.org/gerrit/100515
[pkgmgr-server] : https://review.tizen.org/gerrit/100647

Change-Id: I30cda542582ea5b166b8df51eeab82f3edac54b4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoSet write/setgid bit on data, shared/data dir 42/100642/2 accepted/tizen/3.0/common/20161130.133553 accepted/tizen/3.0/ivi/20161130.091212 accepted/tizen/3.0/mobile/20161130.091112 accepted/tizen/3.0/tv/20161130.091140 accepted/tizen/3.0/wearable/20161130.091157 submit/tizen_3.0/20161130.023420
Sangyoon Jang [Tue, 29 Nov 2016 00:50:20 +0000 (09:50 +0900)]
Set write/setgid bit on data, shared/data dir

System daemons who want to access data, shared/data need
CAP_DAC_OVERRIDE, but this cap gives unwanted permissions too much.
So we modify permission bits of writable directories and
make available for system daemons with minimum permission.

Change-Id: I8b53e60686cffa56c0be838312bc16859bc6ee5c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoSend update signal on reinstall mode 53/100653/2 accepted/tizen/3.0/common/20161130.065233 accepted/tizen/3.0/ivi/20161130.012614 accepted/tizen/3.0/mobile/20161130.012455 accepted/tizen/3.0/tv/20161130.012539 accepted/tizen/3.0/wearable/20161130.012557 submit/tizen_3.0/20161129.101050
Sangyoon Jang [Tue, 29 Nov 2016 01:59:13 +0000 (10:59 +0900)]
Send update signal on reinstall mode

Change-Id: I82ebd67ed0dcd9109a5fda0aa2eaf8e5f9828cf4
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix for static analyzer issues 91/100391/3
Sangyoon Jang [Mon, 28 Nov 2016 04:30:34 +0000 (13:30 +0900)]
Fix for static analyzer issues

Fix memory leak.
Fix null pointer dereference.

Change-Id: Idbb888786ade5716a4e31a6dc592a06f835db10f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix StepRecoverExternalStorage 01/98201/5
Piotr Ganicz [Mon, 14 Nov 2016 15:35:01 +0000 (16:35 +0100)]
Fix StepRecoverExternalStorage

This patch improves that step to handle situation when manifest
does not exists.

To test:
1. Crash app before StepGenerateXML
2. su app_fw
3. run wgt-backend -b <recovery file> -u 5001
4. Check if you can normally install the same app.

Change-Id: I220157a47e8d7bbeef2710b377e7a70763fac999

7 years agofix uninstall and activation issue on disabled package. 01/100001/1
jongmyeongko [Thu, 24 Nov 2016 16:35:44 +0000 (01:35 +0900)]
fix uninstall and activation issue on disabled package.

Change-Id: I74803684d69a90b4fd68da54aef7a45a4c1d4ebd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix for MountInstallationMode_Rollback_Hybrid and MountInstallationMode_Rollback 00/97900/3 accepted/tizen/3.0/common/20161125.101740 accepted/tizen/3.0/ivi/20161125.081922 accepted/tizen/3.0/mobile/20161125.081453 accepted/tizen/3.0/tv/20161125.081729 accepted/tizen/3.0/wearable/20161125.081838 submit/tizen_3.0/20161124.130849
Bartlomiej Kunikowski [Thu, 20 Oct 2016 08:36:05 +0000 (10:36 +0200)]
Fix for MountInstallationMode_Rollback_Hybrid and MountInstallationMode_Rollback

Submit together:
 - https://review.tizen.org/gerrit/#/c/97898/

Requires :
 - https://review.tizen.org/gerrit/#/c/92560/
 - https://review.tizen.org/gerrit/#/c/97577/

To verify run wgt-backend smoke test

Change-Id: I0607995f28f7d0f1c120c13aa81dbf2c14485614

7 years agoapply extended concept of package's attribute. 39/99039/9
jongmyeongko [Mon, 21 Nov 2016 14:31:34 +0000 (23:31 +0900)]
apply extended concept of package's attribute.

- preload-rw : located in /opt/usr/globalapps/ and preloaded.
- readonly : located in /usr/apps/ and preloaded. (== old preload_request)

some preload-rw package can be not-removable also like as readonly package.

Requires :
https://review.tizen.org/gerrit/#/c/99207/

Change-Id: I8ae7cfdb06467f4e27f1b23f2573d21ad54ee75d
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd allowed appid plugin in plugins_list 20/99220/2 accepted/tizen/3.0/common/20161124.181934 accepted/tizen/3.0/ivi/20161124.030503 accepted/tizen/3.0/mobile/20161124.030339 accepted/tizen/3.0/tv/20161124.030417 accepted/tizen/3.0/wearable/20161124.030441 accepted/tizen/common/20161125.095350 accepted/tizen/ivi/20161125.004217 accepted/tizen/mobile/20161125.003727 accepted/tizen/tv/20161125.003934 accepted/tizen/wearable/20161125.004057 submit/tizen/20161124.000829 submit/tizen_3.0/20161123.114701
Hwankyu Jhun [Tue, 22 Nov 2016 07:36:17 +0000 (16:36 +0900)]
Add allowed appid plugin in plugins_list

Change-Id: Ia0e8250a02b049aa0b6b76346b9da0a8fcbf9cb8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoAdd routines for converting support-mode 46/98046/3
Junghyun Yeon [Wed, 16 Nov 2016 04:44:37 +0000 (13:44 +0900)]
Add routines for converting support-mode

- Add internal functions to be used to convert
  support-mode parsed from pkg's manifest

Related changes:
[pkgmgr-info]: https://review.tizen.org/gerrit/98045

Change-Id: Iae1de89f4e3c934019b3268aa8265ab444f2dc23
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoAdjust to privilege verification API change 84/98384/4 accepted/tizen/3.0/common/20161122.195116 accepted/tizen/3.0/ivi/20161122.075927 accepted/tizen/3.0/mobile/20161122.075833 accepted/tizen/3.0/tv/20161122.075852 accepted/tizen/3.0/wearable/20161122.075909 submit/tizen_3.0/20161121.042235
Sangyoon Jang [Thu, 17 Nov 2016 06:58:01 +0000 (15:58 +0900)]
Adjust to privilege verification API change

Requires:
 - https://review.tizen.org/gerrit/98161

Change-Id: Ie9a2aef9da888adcfb634c32407e3389ee7c4fb8
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoImplement StepCheckInstallable 76/98476/2 accepted/tizen/3.0/common/20161118.193007 accepted/tizen/3.0/ivi/20161118.004152 accepted/tizen/3.0/mobile/20161118.004022 accepted/tizen/3.0/tv/20161118.004108 accepted/tizen/3.0/wearable/20161118.004132 submit/tizen_3.0/20161117.054138
Sangyoon Jang [Thu, 17 Nov 2016 06:16:25 +0000 (15:16 +0900)]
Implement StepCheckInstallable

The platform does not allow package override.
If the package installed as global package, the user cannot install the
package as local package. Likewise, if the package is installed as local
package, the package cannot be installed as global package.

Change-Id: I7f36c49b00a4d9445024af205387e3ebe6fb6962
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix CMakeLists.txt 25/98125/3
Sangyoon Jang [Wed, 16 Nov 2016 07:46:20 +0000 (16:46 +0900)]
Fix CMakeLists.txt

To make extendible for adding source & header files.

Change-Id: I75df264d02402ddd9c9292a16646d0946fd906a3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoImplement for support-mode 02/97702/3 accepted/tizen/3.0/common/20161116.143536 accepted/tizen/3.0/ivi/20161116.022246 accepted/tizen/3.0/mobile/20161116.022028 accepted/tizen/3.0/tv/20161116.022131 accepted/tizen/3.0/wearable/20161116.022211 submit/tizen_3.0/20161115.024443
Junghyun Yeon [Tue, 15 Nov 2016 02:38:19 +0000 (11:38 +0900)]
Implement for support-mode

Related changes:
[tpk-manifest-handlers] : https://review.tizen.org/gerrit/97699
[pkgmgr-info] : https://review.tizen.org/gerrit/97508/

Change-Id: I32f3ec5bc440782ad674fcb458c9c825629099ca
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoapply setting hybrid flag for security-manager 12/97512/1
jongmyeongko [Mon, 14 Nov 2016 10:27:34 +0000 (19:27 +0900)]
apply setting hybrid flag for security-manager

Change-Id: I6c861effe8632766c1659f160afa3dafc2daab52
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoAdd retry logic at calling gum api 36/97236/2 accepted/tizen/3.0/common/20161114.143408 accepted/tizen/3.0/ivi/20161114.002558 accepted/tizen/3.0/mobile/20161114.002435 accepted/tizen/3.0/tv/20161114.002508 accepted/tizen/3.0/wearable/20161114.002531 submit/tizen_3.0/20161111.080112 submit/tizen_3.0_common/20161114.081136
Sangyoon Jang [Fri, 11 Nov 2016 12:28:06 +0000 (21:28 +0900)]
Add retry logic at calling gum api

This is temporary fix. It should be removed.

Change-Id: Ibcb27a18f2c14c1d9126fb2dfeeac8697cb0d09e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoAdd aul-parser plugin lib in plugins_list 12/95912/5 submit/tizen/20161111.000844 submit/tizen/20161111.080541 submit/tizen_3.0/20161111.000156 submit/tizen_3.0/20161111.001102
Hwankyu Jhun [Mon, 7 Nov 2016 05:58:34 +0000 (14:58 +0900)]
Add aul-parser plugin lib in plugins_list

Change-Id: I91d22fc6683cde405fb75d691d4c0c84e2c3790f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix a bug in registering certificates 18/96118/3 accepted/tizen/3.0/common/20161114.081423 accepted/tizen/3.0/ivi/20161110.015547 accepted/tizen/3.0/mobile/20161110.015303 accepted/tizen/3.0/tv/20161110.015425 accepted/tizen/3.0/wearable/20161110.015516 submit/tizen_3.0/20161107.133644 submit/tizen_3.0_common/20161110.084657
Sangyoon Jang [Tue, 8 Nov 2016 02:11:25 +0000 (11:11 +0900)]
Fix a bug in registering certificates

Correct cert map, add missing certificate type.
Fix some namings.

Change-Id: I896e05a2392467b43b105ee946bdc01bd8761d46
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRefactoring 99/93299/2
Piotr Ganicz [Fri, 21 Oct 2016 11:11:53 +0000 (13:11 +0200)]
Refactoring

Change-Id: Ia18a60b030852dfba346c7bae092553e13ea0e87