platform/core/system/tota-ua.git
4 years agoReflect dm-verity status to update progress 07/246807/1
Kichan Kwon [Mon, 26 Oct 2020 01:56:56 +0000 (10:56 +0900)]
Reflect dm-verity status to update progress

- With dm-verity : 20 ~ 80%
  - 80 ~ 100% is for hash remaking
- Without dm-verity : 20 ~ 100%

Change-Id: Icf9a65456eb40334f239f12ac407ddee22d7e6a9
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoUpdate img-verifier usage 76/245176/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.113738 accepted/tizen/6.0/unified/hotfix/20201103.001810 accepted/tizen/unified/20201006.044411 submit/tizen/20201005.081807 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 tizen_6.0.m2_release
Kichan Kwon [Mon, 5 Oct 2020 06:03:01 +0000 (15:03 +0900)]
Update img-verifier usage

Change-Id: Ida586c4b105ea96ca490e50c7d1f5d30a78e114d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoInput log path instead of macro 80/244780/1 accepted/tizen/unified/20200928.072843 submit/tizen/20200925.063159
Kichan Kwon [Thu, 24 Sep 2020 06:58:33 +0000 (15:58 +0900)]
Input log path instead of macro

- If you want to write log file, input "-l LOG_FILE_PATH"
- In addition, you have to use "-i IMAGE_PATH" option

Change-Id: I9c7802981caa78f794d6d4518db474cbfea0cda5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoRename pre script to setup script 25/244325/1 accepted/tizen/unified/20200921.044220 submit/tizen/20200921.015202
Kichan Kwon [Thu, 17 Sep 2020 08:29:05 +0000 (17:29 +0900)]
Rename pre script to setup script

Change-Id: Iaeaaf005a9760fd9c1edb0ae91a6044f2855c041
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoFix build warning 21/244221/2
Kichan Kwon [Wed, 16 Sep 2020 05:50:10 +0000 (14:50 +0900)]
Fix build warning

- Define unless it is defined
- No more depends on the length of the source argument
- Reduce the size of directory path to prevent string truncation

Change-Id: I71e102b9c2ce9c78af6f5afb13bc9038fd61bb8c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoClarify argument as file path 00/244200/1 accepted/tizen/unified/20200917.055745 submit/tizen/20200916.024901
Kichan Kwon [Wed, 16 Sep 2020 02:11:24 +0000 (11:11 +0900)]
Clarify argument as file path

Change-Id: I8922ecf13b8791c28bb5102ee4e4a4e5844ca612
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoHash delta in block to prevent storing whole delta 99/244199/1
Kichan Kwon [Wed, 16 Sep 2020 01:59:15 +0000 (10:59 +0900)]
Hash delta in block to prevent storing whole delta

Change-Id: I0d368db79d9a5be47d28a836ff9e9534d48a72ff
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoUse right stack's function 98/244198/1
Kichan Kwon [Wed, 16 Sep 2020 01:53:50 +0000 (10:53 +0900)]
Use right stack's function

Change-Id: I464e305d39020ed4760bd2a980c4c328c38ead7c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoVersion up : 1.2.9 45/244045/1 accepted/tizen/unified/20200914.131247 submit/tizen/20200914.085602
Kichan Kwon [Mon, 14 Sep 2020 08:54:58 +0000 (17:54 +0900)]
Version up : 1.2.9

Change-Id: I251d385639027c14aca18016e7e814bb3d3abc34
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMerge "Improve the readability of global variables" into tizen
Kwon [Mon, 14 Sep 2020 08:53:59 +0000 (08:53 +0000)]
Merge "Improve the readability of global variables" into tizen

4 years agoMerge "Reject the certificate same with CA" into tizen
Kwon [Mon, 14 Sep 2020 08:53:56 +0000 (08:53 +0000)]
Merge "Reject the certificate same with CA" into tizen

4 years agoImprove the readability of global variables 42/244042/1
Kichan Kwon [Mon, 14 Sep 2020 08:26:41 +0000 (17:26 +0900)]
Improve the readability of global variables

- Declare global variables in one place
- Rename global variables

Change-Id: I8ab81482e56263c568cd5b18dec2a628c3a200a8
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoReject the certificate same with CA 05/244005/1
Kichan Kwon [Fri, 11 Sep 2020 07:56:26 +0000 (16:56 +0900)]
Reject the certificate same with CA

- Security team guide : do not sign image same with CA

Change-Id: Ie18115fb29b0224838f357b1c3b05f44e4ad0b74
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoAdd return code when reboot failed 90/242990/1 accepted/tizen/unified/20200909.155616 submit/tizen/20200907.025654
Jeon Sang-Heon [Wed, 2 Sep 2020 17:51:48 +0000 (17:51 +0000)]
Add return code when reboot failed

- With local update, trigger script will be executed with system_fw
- So /sbin/reboot will be failed
- If reboot fota failed, return 100

Change-Id: I93ad6d25aa9d63a94d3ced4dc1428ba2a572623b
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoCopy img-verifier root CA to ramdisk-recovery 79/242579/2 accepted/tizen/unified/20200828.121420 submit/tizen/20200828.071117
Kichan Kwon [Fri, 28 Aug 2020 05:18:55 +0000 (14:18 +0900)]
Copy img-verifier root CA to ramdisk-recovery

Change-Id: I7fe259b8f73870517cd06a16a5e2ae49238bee6b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoVerify image with all root CAs 88/242088/2 submit/tizen/20200826.021327 submit/tizen/20200826.021413
Kichan Kwon [Mon, 24 Aug 2020 05:58:49 +0000 (14:58 +0900)]
Verify image with all root CAs

- Each signer can use their own root CA
- Root CA dir : TZ_SYS_RO_CA_DIR/img-verifier
  - TZ_SYS_RO_CA_DIR is defined in ca-certificates

Change-Id: I4175957a24851af242836b96b6e7d4ac76cb8f77
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoRename upg-verifier to img-verifier 87/242087/2
Kichan Kwon [Mon, 24 Aug 2020 05:38:09 +0000 (14:38 +0900)]
Rename upg-verifier to img-verifier

- Verifier is no more only for TOTA
  - System-recovery also use it

Change-Id: I2f188c6bb1782507581ac8efddff4e5313e47099
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoDefine the prefix of error code 24/237824/1 accepted/tizen/unified/20200713.094514 submit/tizen/20200706.142233 submit/tizen/20200706.154131 submit/tizen/20200710.163409
Kichan Kwon [Mon, 6 Jul 2020 02:50:46 +0000 (11:50 +0900)]
Define the prefix of error code

- To check where this error occurs

Change-Id: Icd441b852aeb3e87762071b2c11cb3aaa131def3
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoAdd libtota library to WITHLIB 38/236338/2 accepted/tizen/unified/20200624.130214 submit/tizen/20200623.165859
Jeon Sang-Heon [Tue, 16 Jun 2020 18:18:51 +0000 (03:18 +0900)]
Add libtota library to WITHLIB

Change-Id: I09f25b333a8da8cfecd3eff0c0565c2f0f40c77f
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoFix lib path to support 64bit 10/236310/2 accepted/tizen/unified/20200616.170851 submit/tizen/20200616.181039
Jeon Sang-Heon [Tue, 16 Jun 2020 15:36:44 +0000 (00:36 +0900)]
Fix lib path to support 64bit

- Change hardcode lib path(/usr/lib) to rpm lib macro({_libdir})

Change-Id: I6ff3f1cda446c6c0fde74e7c870bb4a64698e04d
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoWrite current progress to file by itself 16/235616/6 accepted/tizen/unified/20200616.041013 submit/tizen/20200616.030922
Kichan Kwon [Mon, 8 Jun 2020 02:19:20 +0000 (11:19 +0900)]
Write current progress to file by itself

- To unify with system-rw-update

- Write to socket -> Write to file
- Remove fota-gui-test

Change-Id: I79d26710b171759e40df511a5996a13f6e0e3373
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoEnable 64 bit 28/236228/1
Kunhoon Baik [Tue, 16 Jun 2020 01:08:18 +0000 (10:08 +0900)]
Enable 64 bit

Tizen will support 64 bit binary officially.
TOTA-UA will be included to initrd-recovery partition.
Although initrd-recovery partition size is exceeded, TOTA-UA will be applied.

Change-Id: I983e17e0b24b1e520a92f36d404dbcdb5180aae7

4 years agoMake directory for TOTA root CA 61/235661/1
Kichan Kwon [Fri, 5 Jun 2020 07:10:28 +0000 (16:10 +0900)]
Make directory for TOTA root CA

Change-Id: I4909c925a19238f2e61d7c5d5d747ef4c14580a4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoUnify the error checking of open() 89/235589/1
Kichan Kwon [Mon, 8 Jun 2020 02:27:32 +0000 (11:27 +0900)]
Unify the error checking of open()

Change-Id: Id65ea98987c616e5fb481d0410b0a87960709619
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoAdd group write permission to tota dir 14/235414/1 accepted/tizen/unified/20200607.214824 submit/tizen/20200605.111029
Jeon Sang-Heon [Thu, 4 Jun 2020 09:27:20 +0000 (18:27 +0900)]
Add group write permission to tota dir

Change-Id: I81343bc291539bae1c6867d69391d26067a1d897
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoAdd some comments about upg-verifier for easy understanding 39/235339/1
Kichan Kwon [Thu, 4 Jun 2020 03:36:02 +0000 (12:36 +0900)]
Add some comments about upg-verifier for easy understanding

Change-Id: Id74ee43b3ca8aec60426c68613e0cd875d3ee3a5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoDon't update config file after PRE_UA 32/235132/3
Kichan Kwon [Tue, 2 Jun 2020 05:14:47 +0000 (14:14 +0900)]
Don't update config file after PRE_UA

- upg verification is failed because of manipulation
- Although PRE_UA is remained, tota-ua will skip it

Change-Id: I6ac7ae7e6de207f21b259395bc150336d4f52e15
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoDeny signed file without root CA 55/235255/1
Kichan Kwon [Wed, 3 Jun 2020 06:00:47 +0000 (15:00 +0900)]
Deny signed file without root CA

- Signed file + Root CA : try to verify
- Unsigned file + Root CA : deny
- Only signed file : deny
- Only unsigned file : skip

Change-Id: I8a8e8eae0fee75396bd7c16a12027f295d084dcd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoIntroduce package verifier 06/235006/5
Kichan Kwon [Mon, 1 Jun 2020 07:13:57 +0000 (16:13 +0900)]
Introduce package verifier

- Before upgrade, upg-verifier checks whether upg has valid signature

Change-Id: I42cc2306b9582413e40f2166b582533d1c121ef6
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoRemove update-helper 52/234952/2 accepted/tizen/unified/20200602.133131 submit/tizen/20200602.081629
Jeon Sang-Heon [Mon, 1 Jun 2020 05:06:59 +0000 (14:06 +0900)]
Remove update-helper

- Remove update-helper
- Give permission to system_fw of tota_dir
- Version up : 1.2.8

Change-Id: I888d52279f754fd004273d71c022dd666639e5f4
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoDetach fota_gui 34/234834/1 accepted/tizen/unified/20200602.133210 submit/tizen/20200529.091328 submit/tizen/20200602.005102 submit/tizen/20200602.024041
Kichan Kwon [Fri, 29 May 2020 06:14:25 +0000 (15:14 +0900)]
Detach fota_gui

- It is moved to tota-gui

Change-Id: I76e5d141a93193fdc159c07081510e7c57581e0b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMove fota_gui_test to the tota-ua package 33/234833/1
Kichan Kwon [Fri, 29 May 2020 05:49:02 +0000 (14:49 +0900)]
Move fota_gui_test to the tota-ua package

- fota_gui_test is independent from wearable GUI

Change-Id: I40091e2bfad138d296a1fede2890350c5e7a6015
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoFix coverity issue 42/224642/1 accepted/tizen/unified/20200214.050241 submit/tizen/20200212.071002
Jeon Sang-Heon [Wed, 12 Feb 2020 05:20:06 +0000 (14:20 +0900)]
Fix coverity issue

- make cfg_data to null terminated

Change-Id: I95d762dd21e6ad6e18f5b2a9bf9ba18082d3f332
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agofix memory leak 29/224329/3
Jeon Sang-Heon [Mon, 10 Feb 2020 01:17:53 +0000 (10:17 +0900)]
fix memory leak

Change-Id: I1dc2e278dac680b5d0d47790a609db645d9c54a6

5 years agoAdd PATH variable to script 32/214232/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.004312 accepted/tizen/5.5/unified/mobile/hotfix/20201027.075916 accepted/tizen/5.5/unified/wearable/hotfix/20201027.110943 accepted/tizen/unified/20191021.094655 submit/tizen/20190927.073457 submit/tizen/20191021.053733 submit/tizen_5.5/20191031.000010 submit/tizen_5.5_mobile_hotfix/20201026.185105 submit/tizen_5.5_wearable_hotfix/20201026.184305 tizen_5.5.m2_release
Jeon Sang-Heon [Thu, 19 Sep 2019 06:22:56 +0000 (15:22 +0900)]
Add PATH variable to script

Fixed security issue in upgrade-trigger.sh

Change-Id: Ic595ea068087c3bfa6aba830e4dfe6c81a3dcab2
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoVersion up : 1.2.7 37/212337/1 accepted/tizen/unified/20190821.064545 submit/tizen/20190820.091150
Kichan Kwon [Tue, 20 Aug 2019 09:10:59 +0000 (18:10 +0900)]
Version up : 1.2.7

Change-Id: I38e1ae87bd838da4a0f8b28231c89fe5377c5aa5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoMerge "Migrate to openssl 1.1" into tizen
Kwon [Tue, 16 Jul 2019 06:32:47 +0000 (06:32 +0000)]
Merge "Migrate to openssl 1.1" into tizen

5 years agoAdd Line feed to all log 82/209982/1
Jeon Sang-Heon [Mon, 15 Jul 2019 01:04:32 +0000 (10:04 +0900)]
Add Line feed to all log

Change-Id: I4d75e03ef0465c5d1a5da1763de621d4aea479aa
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
5 years agoMigrate to openssl 1.1 57/209957/1
Dariusz Michaluk [Fri, 12 Jul 2019 13:25:11 +0000 (15:25 +0200)]
Migrate to openssl 1.1

Change-Id: I6e3d7242d219078e6f46837803b325bcd1f6da5b

5 years agoMerge "Delete meaningless configuration" into tizen
Kwon [Fri, 12 Jul 2019 01:54:35 +0000 (01:54 +0000)]
Merge "Delete meaningless configuration" into tizen

5 years agofota_gui : apply HWC(HardWare Composer) 37/209837/2 accepted/tizen/unified/20190712.045702 submit/tizen/20190712.010810
Kichan Kwon [Thu, 11 Jul 2019 11:08:08 +0000 (20:08 +0900)]
fota_gui : apply HWC(HardWare Composer)

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

Change-Id: I444050c369d58d2b7ddc4c96df693803720095fb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoDelete meaningless configuration 35/209535/1
INSUN PYO [Mon, 8 Jul 2019 11:29:01 +0000 (20:29 +0900)]
Delete meaningless configuration

Change-Id: I4699e047dcdb3319c67b59224cf830c9b14af7ad

5 years agoRevert missing TZ_SYS_UPGRADE 66/208766/1 accepted/tizen/unified/20190704.115621 submit/tizen/20190704.062808
Kichan Kwon [Fri, 28 Jun 2019 06:29:50 +0000 (15:29 +0900)]
Revert missing TZ_SYS_UPGRADE

Change-Id: Ia961c75939454831bf4d2569adbccb94174ae12d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoRevert "Apply upgrade path config: TZ_SYS_UPGRADE" 17/202117/1 accepted/tizen/unified/20190326.024534 submit/tizen/20190325.064448
Sunmin Lee [Mon, 18 Mar 2019 06:59:08 +0000 (15:59 +0900)]
Revert "Apply upgrade path config: TZ_SYS_UPGRADE"

This reverts commit 9633446018c18469d167a1cabbf5cfa601140010.

Change-Id: I41bde7ffc24ef34db829c29fd768efbc9b41f361

6 years agoRun Package Verifier at upgrade-trigger.sh 01/189401/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.021254 accepted/tizen/unified/20180919.142017 submit/tizen/20180919.023134 submit/tizen/20180919.074116 submit/tizen_5.0/20181101.000004
Sunmin Lee [Mon, 17 Sep 2018 01:36:46 +0000 (10:36 +0900)]
Run Package Verifier at upgrade-trigger.sh

In some cases, the verifier needs to be run at the
upgrade-trigger.sh before enter the upgrade mode.

Change-Id: Ie93c13898ad335b8290491d9a577ffe32ca81f7d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoupdate-helper: New dbus method "get_result" 81/189381/2
Sunmin Lee [Mon, 17 Sep 2018 09:23:35 +0000 (18:23 +0900)]
update-helper: New dbus method "get_result"

Introduce new dbus method to get the result of update.

Change-Id: Ie0e9c476ddb0ce7f89b92b51e710252105ff7853
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce dbus activation for update-helper 71/188571/3 accepted/tizen/unified/20180914.073313 submit/tizen/20180914.005919
Sunmin Lee [Fri, 10 Aug 2018 00:56:29 +0000 (09:56 +0900)]
Introduce dbus activation for update-helper

Introduce dbus activation for update-helper service
which substitutes previous path activation.

Change-Id: I3b34fff84a009ef46a655433b9121d6dec344c43
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoApply upgrade path config: TZ_SYS_UPGRADE 72/186472/1 accepted/tizen/unified/20180810.132557 submit/tizen/20180810.045919
Sunmin Lee [Fri, 27 Apr 2018 05:02:39 +0000 (14:02 +0900)]
Apply upgrade path config: TZ_SYS_UPGRADE

Replace hard coded path with platform config path.

Change-Id: Ia1a4b9074dff75fdd3d4173c84bfabdcc6f7f3dd
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRequire libtota as shared 72/185572/1
Sunmin Lee [Thu, 26 Jul 2018 07:27:52 +0000 (16:27 +0900)]
Require libtota as shared

As a default, make tota-ua (delta.ua) require libtota.so
instead of static one.

Change-Id: I7477e7ad6f2c60cdb1ae45d356a042c43a2534f3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoFix typo 16/177316/2 accepted/tizen/unified/20180427.131028 submit/tizen/20180427.061142
Sunmin Lee [Fri, 27 Apr 2018 05:02:39 +0000 (14:02 +0900)]
Fix typo

Change-Id: I697f4970ca757945568b99c63160210e1167ece0
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoPatch for update-helper 74/176274/3 accepted/tizen/unified/20180419.075946 submit/tizen/20180418.090628
Sunmin Lee [Wed, 14 Feb 2018 02:40:56 +0000 (11:40 +0900)]
Patch for update-helper

The update-helper is a system privileged service that:
- executes the TOTA trigger script
- copies the update result to DOWNLOAD.PATH which can be
  accessible by downloader (ex. client)

Change-Id: I9df91e1417ffdb80937d4be9d8af1e80c2e1c6d1
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMerge branch 'tizen_4.0' into tizen 49/172249/1 accepted/tizen/unified/20180315.150803 submit/tizen/20180315.045201
Sunmin Lee [Mon, 12 Mar 2018 07:21:40 +0000 (16:21 +0900)]
Merge branch 'tizen_4.0' into tizen

Change-Id: If978b9a396fd2ca73f3b55f18b04d4a670d774bd

6 years agoChange parameter of SS_Get_last_update_status API 48/171948/2 accepted/tizen/4.0/unified/20180313.061135 submit/tizen_4.0/20180309.065426
sanghyuk Ko [Thu, 7 Dec 2017 05:56:53 +0000 (14:56 +0900)]
Change parameter of SS_Get_last_update_status API

Change-Id: I45ac37992e9cda6d53aeb31c12fb703391177d82

6 years agoTried to update the applied file when second update 47/171947/1
sanghyuk Ko [Mon, 4 Dec 2017 12:54:38 +0000 (21:54 +0900)]
Tried to update the applied file when second update

Files that are applied the patch during the update are skipped during the second update.
Files that are deleted during the update are skipped during the second update.

Change-Id: Icb563c1fc7693287232d52dd38f15d3ccf4115a7

6 years agoMerge branch 'tizen_4.0' into tizen 20/171420/1 accepted/tizen/unified/20180305.062846 submit/tizen/20180305.013316
Sunmin Lee [Fri, 9 Feb 2018 02:19:23 +0000 (11:19 +0900)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I6946fcc963c19c9d53c8bf148717038f678931a5

6 years agoRemove unnecessary package requirement 19/169019/2 accepted/tizen/4.0/unified/20180206.165247 submit/tizen_4.0/20180205.083039
Sunmin Lee [Thu, 1 Feb 2018 07:53:15 +0000 (16:53 +0900)]
Remove unnecessary package requirement

For now, no code of tota-ua requires libsmack.

Change-Id: I7cd40d610df67f445225f74e84c70a108fddc571
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoApply new version format 72/166572/1 accepted/tizen/4.0/unified/20180112.071746 submit/tizen_4.0/20180111.075242 tizen_4.0.IoT.p2_release
Sunmin Lee [Thu, 11 Jan 2018 01:22:12 +0000 (10:22 +0900)]
Apply new version format

Tizen version used by RW scripts is changed to
4-digit (ex 4.0.0.0).
And remove the release number because it will not be used.

Change-Id: Icd65ce7c3d9f0535d4d4c3726bbb1eaa78d1bf6d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRun pre-script before system-update if exist 92/166292/4
Kichan Kwon [Tue, 9 Jan 2018 07:50:54 +0000 (16:50 +0900)]
Run pre-script before system-update if exist

Change-Id: Ia71e239e87dcf28fc586e6397b78edd611993f96
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoRefer config file when trigger can't find device path 69/166169/1
Kichan Kwon [Mon, 8 Jan 2018 11:00:37 +0000 (20:00 +0900)]
Refer config file when trigger can't find device path

Change-Id: Idd5b34c0682dd34c53c18f8bb4dd5b2399e873fc
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoMigrate UA data structures to libtota 49/164449/1 accepted/tizen/4.0/unified/20171222.062725 submit/tizen_4.0/20171221.050631 submit/tizen_4.0/20171221.093123 submit/tizen_4.0/20171221.103518
Kichan Kwon [Fri, 3 Nov 2017 10:05:30 +0000 (19:05 +0900)]
Migrate UA data structures to libtota

- To prevent error by structure difference
- You can see the ua_types.h in the libtota

- NOTICE : it must be merged along with the libtota patch
  - https://review.tizen.org/gerrit/#/c/158841/

Change-Id: I743da85dcaa8450d266bd50cac9749b0146fd3a7
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoUse the same path for update 48/164448/1
Sunmin Lee [Fri, 15 Dec 2017 07:22:36 +0000 (16:22 +0900)]
Use the same path for update

Change-Id: Ie6b90ffd6011d0ac9340d44da738ef6c5908fefd
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoArrange the error cases 47/164447/1
Sunmin Lee [Fri, 15 Dec 2017 02:46:52 +0000 (11:46 +0900)]
Arrange the error cases

Arrange the error cases of tota-ua
 - Cleanup the unused cases
 - Add catch clause for missing cases

Change-Id: I15f94e9ea936612402eb023e0c05fb69384cef6c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoAdd required package 03/163003/1 accepted/tizen/4.0/unified/20171212.064828 submit/tizen_4.0/20171211.065239
Sunmin Lee [Mon, 4 Dec 2017 07:50:57 +0000 (16:50 +0900)]
Add required package

The "tar command" is required for upgrade-trigger.
Specify this dependency in spec file.

Change-Id: I345535362493cc4e7e5aa9b4adceb44f6238c6c5
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0 13/161213/1 accepted/tizen/4.0/unified/20171128.072911 submit/tizen_4.0/20171128.000957
Sunmin Lee [Wed, 22 Nov 2017 06:18:15 +0000 (15:18 +0900)]
Merge branch 'tizen' into tizen_4.0

- Remove target dependent partition information
- Remove the target dependency for UA and script
- Remove SS_RECOVERYRAMDISK

Change-Id: I3dbc22b09748b3ccaacf1895f149734c3aad2da2
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoupgrade-trigger: flash some images preceding update 42/160742/2 accepted/tizen/4.0/unified/20171121.061712 submit/tizen_4.0/20171120.023417
Sunmin Lee [Thu, 2 Nov 2017 09:32:24 +0000 (18:32 +0900)]
upgrade-trigger: flash some images preceding update

A new update type PRE_UA means that the image
would be flashed by upgrade-trigger.
The upgrade trigger was modified to flash the image
according to update type in config file.

Change-Id: Ic8eb33b408f3479bdbbedaab8bde180dab5781da
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoRemove SS_RECOVERYRAMDISK 48/158448/3 accepted/tizen/unified/20171108.063440 submit/tizen/20171106.051051
Kichan Kwon [Wed, 1 Nov 2017 05:46:42 +0000 (14:46 +0900)]
Remove SS_RECOVERYRAMDISK

- All targets are using ramdisk-recovery to upgrade

Change-Id: Ib2a95e3bf04c9e8a880f910b5a83ea72f21f0bfd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoRemove the target dependency for UA and script 69/158369/3
Kichan Kwon [Tue, 31 Oct 2017 05:52:12 +0000 (14:52 +0900)]
Remove the target dependency for UA and script

- No more need target specific package if GUI is not used
- Component
  - tota-ua : UA, upgrade trigger
  - target_X : GUI (in current, only wearable)

Change-Id: I26167d869a60034b9eb9224622521e6afe99d540
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoRemove target dependent partition information 32/158032/3
Kichan Kwon [Fri, 27 Oct 2017 05:19:06 +0000 (14:19 +0900)]
Remove target dependent partition information

- To target independent, we remove these below
  - Default partition configuration
  - Partition-dependent error value

- UPG always make config file if successful, so
  UA doesn't have to know it already
- If config file is not found, stop upgrade and return error

- NOTICE : it must be merged along with the libtota patch
  - https://review.tizen.org/gerrit/#/c/158166/

Change-Id: I9ca5665b06cf8066f701016309d6b22712db492c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoFlash recovery kernel before update 60/158660/1 accepted/tizen/4.0/unified/20171103.030245 submit/tizen_4.0/20171102.100452
Sunmin Lee [Thu, 2 Nov 2017 09:32:24 +0000 (18:32 +0900)]
Flash recovery kernel before update

In Tizen 3.0, the recovery kernel was not exist, neither.
Therefore it should be flashed in advance like ramdisk, ramdisk-recovery.

Change-Id: I5ad7d9667d18756fc2e7a5202f2b7ad7de30be45
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoRelease 1.0.0 34/157634/1 accepted/tizen/unified/20171031.055636 submit/tizen/20171027.093656 submit/tizen/20171027.100102
Sunmin Lee [Wed, 25 Oct 2017 08:16:32 +0000 (17:16 +0900)]
Release 1.0.0

tota-ua for Tizen 4.0 is released
(accepted/tizen/4.0/unified/20171011.150240)

Change-Id: I6ed67477ed5b9c0d97735bde637cab6d97d0bb47
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoAdjust feature definitions 35/157535/1 submit/tizen_4.0/20171025.073557
Sunmin Lee [Tue, 24 Oct 2017 11:26:12 +0000 (20:26 +0900)]
Adjust feature definitions

The SUPPORT_CAPABILITY feature is necessary for rpi3, too.
And remove unused fature definition.

Change-Id: I2f91fdb924c5f1868d5fd6410cd9ca2d991b4dc4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoPatch for TW2 41/153241/4 accepted/tizen/4.0/unified/20171011.150240 submit/tizen_4.0/20171010.092649 submit/tizen_4.0/20171010.115426 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
Sunmin Lee [Mon, 25 Sep 2017 10:22:28 +0000 (19:22 +0900)]
Patch for TW2

The latest codes for TW2 is alomost same with TW1.
Therefore apply differences of TW2 codes to TW1 and
make it common codes.

Change-Id: I6ed4a4f095c53294cce1bda41396be0ca75b7bf5
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoApply the latest codes for fota gui 76/150276/11
Sunmin Lee [Fri, 8 Sep 2017 01:57:56 +0000 (10:57 +0900)]
Apply the latest codes for fota gui

Current fota_gui codes are based on old tdm library.
This patch applies the lastest changes for fota gui.

Change-Id: I6b4334799fba12e306b89535a14014d08b0e7cfe
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoApply Tizen coding rule 68/152068/2
Sunmin Lee [Mon, 25 Sep 2017 01:45:37 +0000 (10:45 +0900)]
Apply Tizen coding rule

Change-Id: I2e9193da5f9000a67f2039440e82fa45d3597d18
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoUnify reboot parameter for upgrade 21/153621/1
Sunmin Lee [Fri, 29 Sep 2017 03:00:27 +0000 (12:00 +0900)]
Unify reboot parameter for upgrade

As common reboot parameter for upgrade,
use "fota" in RPi3 target, too.

Change-Id: I4a1a2bb100d825777249370dcbcccb1e0a02e6d3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoAdd README 45/152045/3 accepted/tizen/4.0/unified/20170925.072231 submit/tizen_4.0/20170925.030121
Sunmin Lee [Mon, 25 Sep 2017 02:10:33 +0000 (11:10 +0900)]
Add README

Change-Id: I690b241885fbc8dbc8642e63e329820f48753695
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoFix svace issues 76/150876/2 accepted/tizen/4.0/unified/20170920.081649 submit/tizen_4.0/20170919.101719
Sunmin Lee [Tue, 19 Sep 2017 03:20:24 +0000 (12:20 +0900)]
Fix svace issues

Change-Id: I272dc7e4a6e29484f7b522cc75582a6c41789fa7
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoApply ASLR to delta.ua 61/149661/1 accepted/tizen/4.0/unified/20170913.153736 submit/tizen_4.0/20170913.030030
Sunmin Lee [Wed, 13 Sep 2017 01:24:45 +0000 (10:24 +0900)]
Apply ASLR to delta.ua

Change-Id: Iacae067657791067052bf2a57c45e9dd4d9e205c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoFix build warnings 05/149205/4
Sunmin Lee [Tue, 12 Sep 2017 01:48:26 +0000 (10:48 +0900)]
Fix build warnings

Change-Id: I6d8c2fe644ac565a75d34d86f8808058c7f31c81
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoApply ASLR to fota_gui 39/148439/2 accepted/tizen/4.0/unified/20170908.222109 submit/tizen_4.0/20170908.025315
Sunmin Lee [Fri, 8 Sep 2017 02:35:27 +0000 (11:35 +0900)]
Apply ASLR to fota_gui

Change-Id: Ie3691a5899c5129b77b1d62ccad8c536b92d6633
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoNo verification of EXTRA (RAMDISK2) as FULL_IMG 97/147097/1
Sunmin Lee [Fri, 1 Sep 2017 02:39:28 +0000 (11:39 +0900)]
No verification of EXTRA (RAMDISK2) as FULL_IMG

If RAMDISK2 (EXTRA) is updated as FULL_IMG,
IMG verification is not necessary.

Change-Id: I6a0cacfdf046a08ab45801f6393f6af5f142a02c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoSupplementary patch for upgrade automation 40/147040/1 accepted/tizen/4.0/unified/20170904.143555 submit/tizen_4.0/20170901.015617
Sunmin Lee [Wed, 30 Aug 2017 01:12:26 +0000 (10:12 +0900)]
Supplementary patch for upgrade automation

- Truncate target suffix from trigger and rename it instead
- Recover tota directory: do not exit the script when it doesn't exist

Change-Id: Ib63e25b98e8437f0928727794b67c90da700dc7f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoAdd scripts for upgrade without client 06/146306/6 accepted/tizen/unified/20170830.160809 submit/tizen/20170828.111231
Sunmin Lee [Mon, 28 Aug 2017 02:49:42 +0000 (11:49 +0900)]
Add scripts for upgrade without client

Include below scripts for upgrade
- upgrade-trigger-(rpi3, tw1).sh: upgrade preparation script as like client

Change-Id: I08fbd9282b9c9027ff541c49d160125d64af9dcf
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoRemove dummy resource for non-gui target 21/145221/2 accepted/tizen/unified/20170824.050917 submit/tizen/20170823.081423
Sunmin Lee [Tue, 22 Aug 2017 00:08:46 +0000 (09:08 +0900)]
Remove dummy resource for non-gui target

The target gui not supported does not require gui codes
to be compiled. This patch excludes gui sources from non-gui
tota-ua package.

Change-Id: I4a6930525e9f2836e3e8b52765eeda5dd0ec28bd
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoMake build time feature to flag based 28/140628/1
Sunmin Lee [Mon, 24 Jul 2017 01:53:28 +0000 (10:53 +0900)]
Make build time feature to flag based

The FEATURE_SUPPORT_CAPABILITY was used to build time feature,
but the target code (SS_FSUpdate) was moved to libtota.
To control the feature in tota-ua, make the feature to API
and set the value in tota-ua.

Change-Id: Ie6d041284e29e4e559916b2abd3fd80b4b6f1cfc
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoFix vulnerabilities 49/140549/1
Sunmin Lee [Mon, 24 Jul 2017 01:53:28 +0000 (10:53 +0900)]
Fix vulnerabilities

Change-Id: I0499762ff502b51ac4e5ae384a67640cc89e322a
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoFix unintented depenedency issue 72/140472/1 accepted/tizen/4.0/unified/20170816.010745 accepted/tizen/4.0/unified/20170816.015749 accepted/tizen/4.0/unified/20170829.020203 accepted/tizen/unified/20170725.174318 submit/tizen/20170725.062138 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100004 submit/tizen_4.0_unified/20170814.115522
Kunhoon Baik [Tue, 25 Jul 2017 06:08:58 +0000 (15:08 +0900)]
Fix unintented depenedency issue

Only one user-agent per target should be installed.
If per target agent has dependency on the main package,
conflict packages should be declared to avoid multiple target agent installation.

Thus, this patch defines the conflict packages for each user-agent per target.

Eventually, per-target agent will be removed.There are per-ux specifc agent will be created.
For example, circle-ux-agent, box-ux-agent, no-ux-agent.

Change-Id: I2b20879adb7e67997e3805b6193a2301c561b17d

7 years agoAdd TW1 resources 89/138889/9 accepted/tizen/unified/20170721.032332 submit/tizen/20170720.005702 submit/tizen/20170720.010129
Sunmin Lee [Wed, 5 Jul 2017 02:44:29 +0000 (11:44 +0900)]
Add TW1 resources

Change-Id: I981fa028dd508e2c7067fdd82234a199cc9fbc95
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoIntegrate some common codes to libtota 62/138862/3
Sunmin Lee [Tue, 23 May 2017 02:55:47 +0000 (11:55 +0900)]
Integrate some common codes to libtota

There were duplicated codes in tota-ua and libtota.
It would be better to integrate in one place and manage them.

Change-Id: I20108e80f4731adac60ee1510834bcfdf0a96a4e
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoMove SS_FSUpdate.* to libtota 61/138861/3
Sunmin Lee [Fri, 19 May 2017 07:02:07 +0000 (16:02 +0900)]
Move SS_FSUpdate.* to libtota

SS_FSUpdate is considered as part of libtota.
To get rid of ss_engine from tota-ua, move it to libtota.

Change-Id: I2524ad851927353d49f4b53827f7a92d9cd1a1c4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInitial codes of tota-ua 06/138706/3
Sunmin Lee [Thu, 13 Jul 2017 01:44:28 +0000 (10:44 +0900)]
Initial codes of tota-ua

Change-Id: Iffdb362865f9dfbef2aeccf79cf760e09634c4c3

7 years agoAdd empty packages 42/131542/2
Sunmin Lee [Mon, 29 May 2017 09:52:46 +0000 (18:52 +0900)]
Add empty packages

This repository was cleared but dummy packages are
required for build images.

So, add empty tota packages.

Change-Id: I373b65e662cdcac1a8e6778511e10333efd04b1f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Thu, 13 Apr 2017 03:46:59 +0000 (20:46 -0700)]
Initial empty repository