platform/core/system/system-rw-update.git
4 years agoAllow only debug mode file made by root 40/237540/4 accepted/tizen/unified/20200706.010552 submit/tizen/20200703.061933
Kichan Kwon [Wed, 1 Jul 2020 07:01:37 +0000 (16:01 +0900)]
Allow only debug mode file made by root

Change-Id: Ib8c35358ec8bdfc0ecd2a84dd5483e3b46e121d4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoGive permission of /opt/etc/version to system_fw 36/235036/1 accepted/tizen/unified/20200602.133129 accepted/tizen/unified/20200608.144726 submit/tizen/20200602.081629 submit/tizen/20200608.031722
Jeon Sang-Heon [Tue, 2 Jun 2020 01:46:01 +0000 (10:46 +0900)]
Give permission of /opt/etc/version to system_fw

Change-Id: Id9eb08b871679eeaa662611a08a7ec5163737ebd
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoDetach rw-update-ani 26/234826/1 accepted/tizen/unified/20200602.133212 submit/tizen/20200529.091328 submit/tizen/20200602.005102 submit/tizen/20200602.024041
Kichan Kwon [Fri, 29 May 2020 05:34:43 +0000 (14:34 +0900)]
Detach rw-update-ani

- It is moved to tota-gui

Change-Id: Iaebfeb6c08444be13590df7f19d03d02bab8dafa
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agorw-script-list: update RW script list 92/212492/5
Kichan Kwon [Tue, 13 Aug 2019 06:08:46 +0000 (15:08 +0900)]
rw-script-list: update RW script list

Change-Id: Ie403a78913604ad8cec2ebe6c563bce0893049f3
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoRun all upgrade scripts without verification result 41/213141/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.020030 accepted/tizen/5.5/unified/mobile/hotfix/20201027.075836 accepted/tizen/unified/20190902.055146 submit/tizen/20190902.021921 submit/tizen_5.5/20191031.000005 submit/tizen_5.5_mobile_hotfix/20201026.185105 tizen_5.5.m2_release
Kichan Kwon [Mon, 2 Sep 2019 01:22:26 +0000 (10:22 +0900)]
Run all upgrade scripts without verification result

- For each script developer's convenience

Change-Id: I665aea2d6b118d4f034bda3c9d1b13caff59d9f5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agorw-script-list: add efl-misc script 31/211731/2 accepted/tizen/unified/20190811.223032 submit/tizen/20190809.042629
Kichan Kwon [Thu, 8 Aug 2019 10:45:42 +0000 (19:45 +0900)]
rw-script-list: add efl-misc script

Change-Id: Iae4a315daf94f695f5c15e90eb229c809868a266
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoCreate the result file even if update is successful 46/210446/3 accepted/tizen/unified/20190722.074818 submit/tizen/20190719.084841
Kichan Kwon [Fri, 19 Jul 2019 06:47:47 +0000 (15:47 +0900)]
Create the result file even if update is successful

Change-Id: Ie9db0b5d1fb35287269aec71849abf2a5c885797
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoRevert TZ_SYS_UPGRADE_DATA 56/210456/1
Kichan Kwon [Fri, 19 Jul 2019 07:34:26 +0000 (16:34 +0900)]
Revert TZ_SYS_UPGRADE_DATA

Change-Id: Ic5198e24f2922abbd69a421158aeb2bec74d592a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agorw-update-ani : apply HWC(HardWard Composer) 50/210150/2 accepted/tizen/unified/20190717.115106 submit/tizen/20190717.054136
Kichan Kwon [Tue, 16 Jul 2019 06:53:48 +0000 (15:53 +0900)]
rw-update-ani : apply HWC(HardWard Composer)

- Wearable targets use HWC windows since Tizen 5.5
- Commit via HWC if backend has HWC capability

Change-Id: Ie2ffd2746b8fc92aef7c4306d47b3f6af9e8c63a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoModify memory leak issue 16/210116/2
Jeon Sang-Heon [Tue, 16 Jul 2019 03:20:37 +0000 (12:20 +0900)]
Modify memory leak issue

Change-Id: I890bee6d8857eceda7d877d2f64448ffe67667c4
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoDefine PATH environment variable 79/203979/2
Kichan Kwon [Thu, 18 Apr 2019 08:51:10 +0000 (17:51 +0900)]
Define PATH environment variable

Change-Id: I0fb2b1258b1a209b115af55be1b0091b35d72a00
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoApply update path config 74/185574/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.021246 accepted/tizen/unified/20180806.075504 submit/tizen/20180801.085411 submit/tizen/20180803.005755 submit/tizen_5.0/20181101.000004
Sunmin Lee [Thu, 26 Jul 2018 04:54:33 +0000 (13:54 +0900)]
Apply update path config

The new platform config path TZ_SYS_UPGRADE is introduced.
Apply it to each file.

Change-Id: I7a9642e8ab9743d52e8e731970054f44b64b93c0
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMerge branch 'tizen_4.0' into tizen 53/172253/1 accepted/tizen/unified/20180315.150753 submit/tizen/20180315.045201
Sunmin Lee [Fri, 9 Feb 2018 06:00:13 +0000 (15:00 +0900)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I35393f04fd5e828258dd30d95f56f05e7db3e568

6 years agorw-update-macro: support -r option for compatibility 73/167773/1 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20180124.154207 submit/tizen_4.0/20180123.063624
Sunmin Lee [Fri, 19 Jan 2018 06:40:23 +0000 (15:40 +0900)]
rw-update-macro: support -r option for compatibility

The -r option of restore_backup_file was removed and
it has restored directory recursively as default.
However, this option is still required to consider
compatibility.

Change-Id: I2d49628a107f11739c641e19033404c7d325c55d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoApply changes of rw-update-macro 11/165911/2 accepted/tizen/4.0/unified/20180110.233135 submit/tizen_4.0/20180105.070507 tizen_4.0.IoT.p2_release
Sunmin Lee [Fri, 5 Jan 2018 00:36:48 +0000 (09:36 +0900)]
Apply changes of rw-update-macro

According to recent patch, update-init.sh is required to be
changed a little.

Change-Id: I7b2a5ab1b6afc5ee3c1e9e41fba827090e9e7f92
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce rstsmack for update 10/165910/2
Sunmin Lee [Wed, 3 Jan 2018 08:32:17 +0000 (17:32 +0900)]
Introduce rstsmack for update

RW update macro requires rstsmack which restores smack label of
backed up file.

Change-Id: I2babf6412b92f714c4cabebd92efd0e21cddbe46
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUpdate rw-update-macro.inc 49/165249/2 submit/tizen_4.0/20180103.005612
Sunmin Lee [Wed, 27 Dec 2017 08:16:05 +0000 (17:16 +0900)]
Update rw-update-macro.inc

The options of restore_backup_file is changed to simplify the usage
 -r (deprecated): for now, always restore recursively if the target is directory
 -d (deprecated): for now, destination is always root(/)
 -f (new): the option for overwriting existing file

Change-Id: I473182a8be5de46c65970eba11677b725a52a7de
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agorw-update-macro: patch for version info 03/163603/2 submit/tizen_4.0/20171227.014353
Sunmin Lee [Tue, 12 Dec 2017 08:58:34 +0000 (17:58 +0900)]
rw-update-macro: patch for version info

This patch means two changes:
1) Take REL away which is not used in platform
2) Apply four-digit to version info: for compatibility

Change-Id: I77be4d796f324b4d1fe1603a369b408c16c3d8d0
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRelease 1.0.1 04/164604/2 accepted/tizen/4.0/unified/20171222.062731 submit/tizen_4.0/20171221.050631 submit/tizen_4.0/20171221.093123 submit/tizen_4.0/20171221.103518
Sunmin Lee [Tue, 19 Dec 2017 07:03:12 +0000 (16:03 +0900)]
Release 1.0.1

- Use the same path for update
- Divide result into log and result file
- rw-script-list: update hash values of scripts
- rw-udpate-macro: improve restore_backup_file helper

Change-Id: Ibf8c3b2683864d8579343ae10b2972471712e722
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agorw-update-macro: improve restore_backup_file helper 59/164459/2
Sunmin Lee [Mon, 18 Dec 2017 05:22:07 +0000 (14:22 +0900)]
rw-update-macro: improve restore_backup_file helper

This patch make rw-update-macro to consider the case of no smack
rule, and handle the file path properly.
In addition, the content of model-config was changed. This patch
also covers it.

Change-Id: Ief8d0e900fbcbb96df7ef1623f7b01b1a95b6098
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRevert recovery update service 52/172252/1
Sunmin Lee [Wed, 20 Dec 2017 02:26:55 +0000 (11:26 +0900)]
Revert recovery update service

Recovery partitions will be updated by PRE_UA.
- Revert "Fix Architecture Dependency"
- Revert "Introduce recovery-update.service"

Change-Id: Ic15dda2e82ec1ab91d9c48121ec09486a8e88876
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agorw-script-list: update hash values of scripts 58/164458/1
Sunmin Lee [Mon, 18 Dec 2017 01:43:05 +0000 (10:43 +0900)]
rw-script-list: update hash values of scripts

Change-Id: I4d496522c9ee63c18088aa3fb290277029453bbe
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoDivide result into log and result file 57/164457/1
Sunmin Lee [Mon, 18 Dec 2017 01:16:59 +0000 (10:16 +0900)]
Divide result into log and result file

Change-Id: I1b1659f102f6f4b88a68365d65fcd7714e2b574f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUse the same path for update 56/164456/1
Sunmin Lee [Mon, 18 Dec 2017 01:10:35 +0000 (10:10 +0900)]
Use the same path for update

Change-Id: I0668efafa71b6b56ec7c1136641cc2b8a9d297b8
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMake recovery directory before updating 15/162415/2
Kichan Kwon [Fri, 1 Dec 2017 02:51:54 +0000 (11:51 +0900)]
Make recovery directory before updating

- It is made by initrd-fota, but we can use it without initrd-fota

Change-Id: I27eaf314b5d2c826699697fa2778888a77ab988d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoRemove unused script 80/158680/1
Sunmin Lee [Thu, 2 Nov 2017 10:45:20 +0000 (19:45 +0900)]
Remove unused script

Change-Id: Ic9ac75bad457020f40439610d33c4e3bf9d9f97a
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoFix Architecture Dependency accepted/tizen/unified/20171031.055624 submit/tizen/20171027.100102
Sunmin Lee [Fri, 27 Oct 2017 09:56:14 +0000 (18:56 +0900)]
Fix Architecture Dependency

Change-Id: I56a8954d8336eb1e471373fb96a895e222563035
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce recovery-update.service submit/tizen/20171027.093656
Sunmin Lee [Tue, 12 Sep 2017 04:14:06 +0000 (13:14 +0900)]
Introduce recovery-update.service

The recovery partition used to be updated separately
in the first boot after update other partitions.
This service implements recovery partition update
in normal boot mode.

Change-Id: Ie6e5966e5a6760daad87d304eb556aa8ad15ad02
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRelease 1.0.0 32/157632/1
Sunmin Lee [Wed, 25 Oct 2017 07:52:19 +0000 (16:52 +0900)]
Release 1.0.0

system-rw-update for Tizen 4.0 is released

Change-Id: Iec408edb9fa818406138089baa7bb1cbcd7ae6ff
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce RW script verification 54/155854/2 accepted/tizen/4.0/unified/20171017.212334 submit/tizen_4.0/20171017.004145 tizen_4.0.m2_release
Sunmin Lee [Mon, 16 Oct 2017 09:55:34 +0000 (18:55 +0900)]
Introduce RW script verification

This patch for verification of RW scripts using thier hash value.
The script which is not listed at predefined list file
would be skipped.

* The script list of this patch is generated from below image:
 tizen-4.0-unified_20171013.5_wearable-wayland-armv7l-tw1

Change-Id: I4cf62bee0dcbc62a650c2980fcf5af0bcaf75ef3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce UX for RW update 92/152192/11 accepted/tizen/4.0/unified/20171011.150243 submit/tizen_4.0/20171010.092649 submit/tizen_4.0/20171010.115426 tizen_4.0.IoT.p1_release
Kichan Kwon [Mon, 25 Sep 2017 08:08:14 +0000 (17:08 +0900)]
Introduce UX for RW update

It shows these informations below
  - Updated scripts / Total scripts
  - Progress circle
Current progress is stored in tmp

Change-Id: Ice8a0ab17c2a125a83b52cb91d504ade497396e2
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoSet SmackProcessLabel for offline-update service 06/152706/1 accepted/tizen/4.0/unified/20170929.075435 submit/tizen_4.0/20170927.023806
Sunmin Lee [Wed, 27 Sep 2017 02:28:04 +0000 (11:28 +0900)]
Set SmackProcessLabel for offline-update service

offline-update.service requires privileged smack label.

Change-Id: Ie934aa7756c9cb51de4ce54e75ba3d8b77b8e8ba
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoPatch for automated upgrade 83/145783/2 accepted/tizen/4.0/unified/20170904.143914 accepted/tizen/unified/20170824.172333 submit/tizen/20170824.041254 submit/tizen_4.0/20170904.041827
Sunmin Lee [Wed, 23 Aug 2017 23:32:13 +0000 (08:32 +0900)]
Patch for automated upgrade

The RW update had stopped after initialization for debugging.
This patch automates RW update but makes a short pause
after upgrade-init.
Developer can enter to debug mode by creating debug mode file
(/opt/usr/.upgdebug) during pausing.

Change-Id: Ideaaa703f975d5f1c17791e3fa7f495f443366d7
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoSpecify SmackProcessLabel of udev init service 47/145447/1 accepted/tizen/4.0/unified/20170829.020152 accepted/tizen/unified/20170823.031620 submit/tizen/20170822.111243 submit/tizen_4.0/20170828.100004
Sunmin Lee [Tue, 22 Aug 2017 09:35:20 +0000 (18:35 +0900)]
Specify SmackProcessLabel of udev init service

The udev init service which creates rule file doesn't need
to be privileged. Specify it to "System" process.

Change-Id: Ib4c7f40ec9122d0235bb3191588e0e3b0e604dea
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUpdate permission of DB directory in init step 54/144954/1 accepted/tizen/unified/20170821.051233 submit/tizen/20170818.122914
Sunmin Lee [Fri, 18 Aug 2017 12:12:16 +0000 (21:12 +0900)]
Update permission of DB directory in init step

Change-Id: I942de000ceec9b8c4b84761542c6ae565302c0ad
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoDo not EXIT in rw-update-macro 85/144885/1 submit/tizen/20170818.082249
Sunmin Lee [Fri, 18 Aug 2017 07:52:32 +0000 (16:52 +0900)]
Do not EXIT in rw-update-macro

The exit call in RW macro function causes
termination of caller script.
The restore_backup_file function should be terminated with return.

Change-Id: I81e4fdecf4b371ef212f3983d8b856ba2df9ba5c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoTemporary patch for RW updater SDB debugging in the device with SWITCH class and... 70/142570/1 accepted/tizen/unified/20170811.133005 submit/tizen/20170808.063544
Kunhoon Baik [Fri, 4 Aug 2017 08:39:07 +0000 (17:39 +0900)]
Temporary patch for RW updater SDB debugging in the device with SWITCH class and SLP gadget.

At this moments, USB SDB debugging feature for RW updater is supported in the device with SWITCH class and SLP gadget.
Thus, we need to make a target specific package like system-rw-update-helper-for-XXXX.
For generic solution, mini-usb-manager using USB-client HAL should be created for USB SDB debugging feature for RW updater.

Anyway, at this moment, it will be created in all device if there are "no such SWITCH rule file" in the device.

Change-Id: I1d4dcbed238ca69c46f55162c2c521fcf1188c2c

6 years agoApply platform version path: /opt/etc/version 62/141762/2 accepted/tizen/4.0/unified/20170816.012232 accepted/tizen/unified/20170803.075314 submit/tizen/20170802.054958 submit/tizen_4.0/20170811.094300
Sunmin Lee [Tue, 1 Aug 2017 09:17:37 +0000 (18:17 +0900)]
Apply platform version path: /opt/etc/version

Following is generic mechanism

1. The version file (/opt/etc/version) should be created by RO-updater before
 updating RO. (if there are already existed, just verify the file or skipping
 creating file)
2. And then, it should be used by RW upgrade script.
3. And then, it should be updated by RW-updater after upgrade is completed

However, this code makes /opt/etc/version file in image creation instead of
RO-updater. The reason is for supporting HOME BINARY updater
(skipping RO updater)

Thus, Follwing is mechanism for HOME BINARY
1. The version file (/opt/etc/version) should be created by image creation.
2. And then, it should be used by RW upgrade script.
3. And then, it should be updated by RW-updater after upgrade is completed

Basically, if the file (/opt/etc/version) is not existed in old binary,
HOME BINARY updater is not supported.

Commented-by: Kunhoon Baik <knhoon.baik@samsung.com>
Change-Id: Ie298f3e175b34582ffd38189952a6b125eca7cbe
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoUdev sdb service should run upgrade mode only 58/139758/1 accepted/tizen/unified/20170721.024538 submit/tizen/20170720.093148
Sunmin Lee [Thu, 20 Jul 2017 09:08:26 +0000 (18:08 +0900)]
Udev sdb service should run upgrade mode only

Udev rule for SDB connection is required in upgrade only.
It should be moved to upgrade target.

Change-Id: Ie57d43dd604ce49a92d0c365d91684b5c91b3e27
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInstall a rule file for SDB debugging 19/139419/3 submit/tizen/20170720.045231
Sunmin Lee [Wed, 19 Jul 2017 01:05:55 +0000 (10:05 +0900)]
Install a rule file for SDB debugging

From Tizen 4.0, a rule file for SDB debugging would be installed
by default as symlink. SDB debugging feature would be handled by
existence of actual path which is installed by udev-sdb-init service.

Change-Id: Ic49aa7ea0b099149c288b14d4b825bcd0e6d3dce
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoPatch for 3.0 to 4.0 68/139268/3
Sunmin Lee [Tue, 18 Jul 2017 00:04:42 +0000 (09:04 +0900)]
Patch for 3.0 to 4.0

From Tizen 4.0, there are some changes in system RW update:
 - No /system-update link: use /usr/share/upgrade directly
 - RW update helper macro is introduced
 - No need to backup home directory

Change-Id: Icd49e260674383a5e8c887583d6381180134232c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInitial system-rw-update files 24/108324/5 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170303.090738 accepted/tizen/ivi/20170303.005241 accepted/tizen/mobile/20170303.005203 accepted/tizen/tv/20170303.005208 accepted/tizen/unified/20170309.033543 accepted/tizen/wearable/20170303.005225 submit/tizen/20170303.002552 submit/tizen_unified/20170308.100409 tizen_4.0.m1_release
Sunmin Lee [Wed, 4 Jan 2017 05:19:47 +0000 (14:19 +0900)]
Initial system-rw-update files

Add files for system RW update
- service files for system-update.target
- scripts for system-update services
- make_upgrade_image.sh: converts platform image
  to RW update image

Change-Id: I26ee79755cda73fa02e01fcb5316da87cbb123da
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Wed, 4 Jan 2017 04:07:05 +0000 (20:07 -0800)]
Initial empty repository