Mateusz Moscicki [Thu, 21 Apr 2022 11:53:51 +0000 (13:53 +0200)]
Merge branch 'tizen' into tizen_6.5
Change-Id: Iad50df2ff30dcb4ef1fba21fc5bd5e65149353f2
Mateusz Moscicki [Thu, 14 Apr 2022 08:16:44 +0000 (10:16 +0200)]
Add partition cloning
When the system boots correctly after the upgrade, we clone the
partitions listed in /hal/etc/upgrade/background_copy.list so that we can
boot from the other slot if nececssary.
Change-Id: I977688e1a159e3504bfe9422bda4103d3f2867a1
Mateusz Moscicki [Wed, 6 Apr 2022 11:41:58 +0000 (13:41 +0200)]
Merge branch 'tizen' into tizen_6.5
Change-Id: Id5ff48d149416c55d22e4732eba94955cc253049
Karol Lewandowski [Mon, 4 Apr 2022 18:31:08 +0000 (20:31 +0200)]
Move all scripts to one standard location
This commit changes installation of the upgrade scripts to
/usr/libexec/upgrade-support, so that
- delta generation scripts can copy whole directory contents
instead of needing to follow each change in script's file names
- other packages can potentially install additional scripts
Change-Id: I89357f31ef738d1860ff4b90cf1bf559096f4d68
Mateusz Moscicki [Fri, 1 Apr 2022 16:34:59 +0000 (18:34 +0200)]
Move a common part of ugprade scripts to a separate file
Change-Id: If3b6f887d245cc0b99cd648742b4d9312e90543c
Mateusz Moscicki [Wed, 30 Mar 2022 14:16:33 +0000 (16:16 +0200)]
Add support for the full upgrade images
An archive considered to be a full upgrade is one whose all entries in
update.cfg file are of type PRE_UA.
In this case, due to the size of the archive and the probable lack of
available space for unpacking, the images are written directly from the
packed archive.
Change-Id: Iba92d8340c6f1b9f49ecb9567f7fee3a2cbde4ff
Karol Lewandowski [Fri, 11 Mar 2022 15:37:38 +0000 (15:37 +0000)]
Merge "Merge branch 'tizen' into tizen_6.5" into tizen_6.5
Mateusz Moscicki [Fri, 11 Mar 2022 15:00:34 +0000 (16:00 +0100)]
Merge branch 'tizen' into tizen_6.5
Change-Id: I8d9ea7af7d1eef126a5801e85c7e5ec2fdec59fa
Mateusz Moscicki [Tue, 8 Mar 2022 10:30:50 +0000 (11:30 +0100)]
Stop displaying unnecessary errors
Change-Id: I7579c69b110d7a42958543fca4f0145244bedddf
Karol Lewandowski [Fri, 11 Mar 2022 10:19:19 +0000 (11:19 +0100)]
blkid-api: Fix incorrect pointer check
Change-Id: Iec1d8620e3e6e47d7be75bd82e96153457f6a5a4
Karol Lewandowski [Fri, 11 Mar 2022 10:19:19 +0000 (11:19 +0100)]
blkid-api: Fix incorrect pointer check
Change-Id: Iec1d8620e3e6e47d7be75bd82e96153457f6a5a4
Mateusz Moscicki [Tue, 8 Mar 2022 10:30:50 +0000 (11:30 +0100)]
Stop displaying unnecessary errors
Change-Id: I7579c69b110d7a42958543fca4f0145244bedddf
Mateusz Moscicki [Fri, 4 Mar 2022 14:36:00 +0000 (15:36 +0100)]
Merge branch 'tizen_6.5' into tizen
Change-Id: Id14818e9a3d4427c6270c3164bbfcff7d7438fe6
Mateusz Moscicki [Thu, 3 Mar 2022 12:35:24 +0000 (13:35 +0100)]
Disable mounting of rootfs in DELTA_IMG and DELTA_IMG_AB upgrade mode
rootfs file system cannot be mounted because the next step will perform
a binary modification.
Change-Id: I8bb7b960848c5effbfafd2481df94555be91d86c
Mateusz Moscicki [Tue, 1 Mar 2022 14:27:07 +0000 (15:27 +0100)]
Mount rootfs as ro only when rootfs uses dm-verity
rootfs can be upgraded in two ways:
1. By modifying files (DELTA_FS)
2. By applying a binary patch (DELTA_IMG, DELTA_IMG_AB)
If the upgrade is done with a binary patch, the file system should be
mounted as RO so that its checksum is not changed.
Change-Id: I05a1925aa688a968cf9ecdb9f68a7be4c12d018a
Mateusz Moscicki [Tue, 22 Feb 2022 12:07:55 +0000 (13:07 +0100)]
Merge branch 'tizen_6.5' into tizen
Change-Id: I2433eaf408973fd8b55bf9bbf39ea413dc6b83d9
Mateusz Moscicki [Tue, 22 Feb 2022 12:07:00 +0000 (13:07 +0100)]
Extract additional upgrade scripts
Change-Id: I7c4675436e567059364a8e0da563e386423bba0b
Mateusz Moscicki [Mon, 21 Feb 2022 15:25:49 +0000 (16:25 +0100)]
Merge remote-tracking branch 'origin/tizen_6.5' into tizen
Change-Id: I6a05404cd57a58b110cfbc01364dfb7d36fd0856
Karol Lewandowski [Mon, 21 Feb 2022 15:20:37 +0000 (15:20 +0000)]
Merge changes from topic "binary-diff-brotli" into tizen_6.5
* changes:
Run scripts from the path where upgrade-trigger.sh is
Mount rootfs as read-only
Fix "use after free"
Enable static linking to libtota
Add support for DELTA_IMG_AB update type
Mateusz Moscicki [Tue, 15 Feb 2022 13:16:55 +0000 (14:16 +0100)]
Run scripts from the path where upgrade-trigger.sh is
Upgrade scripts like:
upgrade-trigger.sh
upgrade-fota.sh
upgrade-partia.sh
upgrade-prepare-partitions.sh
should be run from the path to which they were extracted from the
delta.tar.
Change-Id: Ic7fb2869ca41fa223997d18d9546fa01f258d609
Mateusz Moscicki [Thu, 3 Feb 2022 12:17:04 +0000 (13:17 +0100)]
Mount rootfs as read-only
Change-Id: I5663fac73d62888cdb284dfa88e869d5cb651c7d
Mateusz Moscicki [Tue, 1 Feb 2022 12:37:13 +0000 (13:37 +0100)]
Fix "use after free"
Change-Id: I832770abb9ad0dbdee65fe14883c31cd317ed73d
Mateusz Moscicki [Tue, 18 Jan 2022 14:07:20 +0000 (15:07 +0100)]
Enable static linking to libtota
delta.ua is provided in the delta.tar file to perform the system
upgrade. When linked dynamically it calls functions from libtota that
are on the old system, while we would like to use the new version.
Change-Id: Ifaf889ac498886eab3310edbf250d99c22cb8bd1
Mateusz Moscicki [Thu, 27 Jan 2022 13:00:07 +0000 (14:00 +0100)]
Add support for DELTA_IMG_AB update type
Add new partition upgrade type - DELTA_IMG_AB
A patch is a binary diff between two partition that is compressed with
the Brotli algorithm.
Brotli has a good compression ratio and allows decompression using a
small amount of memory (during tests, it did not exceed 17MB).
Change-Id: I467eb1bfefa2ffb1866515c1f18aeb21e710ebd1
Mateusz Moscicki [Tue, 1 Feb 2022 12:10:59 +0000 (13:10 +0100)]
Add support for the case that rootfs is a device mapped by DM
Change-Id: I074e72c9fad9289d059e81bd0801f7f26460aa64
Karol Lewandowski [Thu, 30 Dec 2021 13:11:24 +0000 (14:11 +0100)]
Merge branch 'tizen' into tizen_6.5
Change-Id: Ib040e970ecd05893f67253b8134fcff067ec29c2
Karol Lewandowski [Thu, 30 Dec 2021 13:08:59 +0000 (14:08 +0100)]
Revert "Ensure required 'A/B partition switch' program is available"
This reverts commit
e4e165e7be32be63403e5306b73f0711423e5d8b, as
* the program is not universally available,
* it should not be needed when legacy upgrade is used.
Change-Id: I21d8adc31f64bb71989665e826676ba1a70caae1
Mateusz Moscicki [Wed, 29 Dec 2021 13:12:32 +0000 (14:12 +0100)]
Merge branch 'tizen' into tizen_6.5
Change-Id: I9b33cafba04a2ad4cdab903226e590000d22d423
Karol Lewandowski [Fri, 24 Dec 2021 13:51:30 +0000 (14:51 +0100)]
Ensure required 'A/B partition switch' program is available
Change-Id: Idfd9b899830419581964d3b5e01a284e34b7c5c8
Mateusz Moscicki [Fri, 24 Dec 2021 10:52:28 +0000 (11:52 +0100)]
Reflect the change from partition_switch to device_board_switch_partition
Change-Id: I042a9468b9e3e36a68a6792c38e9fd67a596f7d5
Mateusz Moscicki [Thu, 9 Dec 2021 14:00:26 +0000 (15:00 +0100)]
Merge branch 'tizen' into tizen_6.5
Change-Id: I23bdab528b12fe242a8b06fd42ebc3386777a2ab
Mateusz Moscicki [Tue, 7 Dec 2021 11:38:06 +0000 (12:38 +0100)]
Use /run/upgrade-sysroot instead of /system
Change-Id: I1b781134eafc29b07d0e6410407c665e3bd911df
Mateusz Moscicki [Mon, 6 Dec 2021 16:44:30 +0000 (17:44 +0100)]
Use PARTLABEL based on LABEL from update.cfg and /hal/etc/upgrade/label_map.list
Change-Id: I25edbad79770baa298bd0f404e9ba0d1acc08eb3
Mateusz Moscicki [Mon, 6 Dec 2021 16:40:50 +0000 (17:40 +0100)]
Copy partitions listed in the /hal/etc/upgrade/background_copy.list
Change-Id: I283ad7e6de2997ecdfb17c44096eb5c57380e50f
Mateusz Moscicki [Mon, 6 Dec 2021 16:10:16 +0000 (17:10 +0100)]
Use partition_switch to change the partition slot
Change-Id: I3e4c995190d62838e1c4cff464e831d9376710f4
Karol Lewandowski [Tue, 30 Nov 2021 13:34:17 +0000 (14:34 +0100)]
Merge branch 'tizen' into tizen_6.5
Change-Id: I6b199ffe055027b8cb119e27a3856e492250a84b
Ernest Borowski [Mon, 25 Oct 2021 16:19:35 +0000 (16:19 +0000)]
Support ro update during normal boot in delta.ua:
1. Allow to use GPT partition labels rather than hardcoded partitions.
2. Allow to use specified block device rather than hardcoded one.
3. Add usage function.
4. Add function that translates errors into usable form for end user.
5. Add support for a|b slot partition scheme.
6. Fix bug when logging file was not opened before usage.
7. Change log file path from /last_update.log to
/opt/data/update/last_update.log
8. Do not disable stdout && stderr
Add blkid-print application that is used to determine partition name
based on GPT LABEL.
Change-Id: Ifbc5aaa435791d4de91a896b5b34b874cb46fe8d
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Ernest Borowski [Mon, 25 Oct 2021 14:09:10 +0000 (14:09 +0000)]
upgrade-trigger.sh: Add support for launching A|B upgrade.
This mode has different functionality therefore there are other scripts
supporting it.
When upgrade-trigger.sh detects that system uses A|B partition scheme
it executes new upgrade type using 3 stages:
1. upgrade-prepare-partitions.sh -- it is responsible for backing up
partitions from current slot to next one
2. upgrade-partial.sh -- it is responsible for upgrading partitions
on next slot using dd and delta.ua
3. upgrade-fota.sh -- it is responsible for finishing upgrade
and rebooting device into fota RW mode.
Change-Id: I1c8c4fbaf3d2b4817ba7e88690cab316a5cee6e6
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Ernest Borowski [Mon, 25 Oct 2021 14:05:52 +0000 (14:05 +0000)]
Add A|B upgrade support during normal boot mode.
Change-Id: Ibc9501827ddc1a5d3f1669d97c189ef6e05361b1
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Ernest Borowski [Wed, 22 Sep 2021 10:49:07 +0000 (10:49 +0000)]
Improve upgrade-trigger.sh flashing speed.
Change-Id: I0e9f6d29b1971893f34b773c8343a466a942018e
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Ernest Borowski [Wed, 14 Jul 2021 13:31:09 +0000 (13:31 +0000)]
Always log update progress inside ua.
Progress was not reported during headless upgrade.
This information is required for os-upgrade automatic tests.
Change-Id: Ic2ca02f1d1b92b90329abee516c7d15b6ffd7ca1
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Mateusz Moscicki [Thu, 27 May 2021 13:50:16 +0000 (15:50 +0200)]
Allow to use labels in uppercase in update.cfg
This is required to be able to flash the partition with the BOOT label,
which is in upperacse.
Change-Id: Ib018befe9cee4c66bc6ae13708d1cc436ba04f23
Ernest Borowski [Wed, 12 May 2021 12:42:08 +0000 (12:42 +0000)]
Improve logging in upgrade-trigger.sh script.
- Add log helper function which can log to stdout and file
logging format:
[script-name][tag]actual_log
currently supported tag formats: [Error] [Info]
Change-Id: Iebb727b8ec4a12fca80b03f6b64c472134749020
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Ernest Borowski [Fri, 23 Apr 2021 17:05:12 +0000 (17:05 +0000)]
Improve upgrade-trigger.sh script:
- Add support for delta.tar.gz
- Add missing ""
- Add proper error handling
- Remove useless cat
Change-Id: I6fd9e6e611bd9232d5a2ca5f6cf129d644a1e1f5
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Kichan Kwon [Wed, 4 Nov 2020 06:39:52 +0000 (15:39 +0900)]
Fix invalid parenthesis
Change-Id: I8cf55406c5f81bc4816d065ffdc0827dee84cc42
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 30 Oct 2020 04:58:12 +0000 (13:58 +0900)]
Set progress to 100% as soon as hash remaking is finished
- verity-handler always use 45 seconds though hash is not made
- To prevent this situation, cancel progress thread after
hash thread is terminated
Change-Id: Ie31f259e0270874128a98c16ae81e1cd7f8d2b81
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Thu, 29 Oct 2020 09:36:37 +0000 (18:36 +0900)]
Update boilerplate
Change-Id: I7785ff75af0de67bfa0c69c81a81aa906d6b3f32
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 28 Oct 2020 07:36:42 +0000 (16:36 +0900)]
Improve the readability about progress rearrangement
Change-Id: Idd92eccb52614e10b74550f03c6f3d3adda9f645
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 26 Oct 2020 02:42:06 +0000 (11:42 +0900)]
Fix build warning
Change-Id: I21adccf31a2fc5a97598520220b5bae776dd189c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 26 Oct 2020 02:16:55 +0000 (11:16 +0900)]
Introduce verity-handler
- It launches verityctl and updates progress
- If dm-verity is enabled, initrd-fota will launch it
Change-Id: Ibb82ac06e4c628bbb7c0428ed5c1eefccb9ef041
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Kwon [Mon, 14 Sep 2020 08:53:59 +0000 (08:53 +0000)]
Merge "Improve the readability of global variables" into tizen
Kwon [Mon, 14 Sep 2020 08:53:56 +0000 (08:53 +0000)]
Merge "Reject the certificate same with CA" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jeon Sang-Heon [Mon, 10 Feb 2020 01:17:53 +0000 (10:17 +0900)]
fix memory leak
Change-Id: I1dc2e278dac680b5d0d47790a609db645d9c54a6
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>
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>
Kwon [Tue, 16 Jul 2019 06:32:47 +0000 (06:32 +0000)]
Merge "Migrate to openssl 1.1" into tizen
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>
Dariusz Michaluk [Fri, 12 Jul 2019 13:25:11 +0000 (15:25 +0200)]
Migrate to openssl 1.1
Change-Id: I6e3d7242d219078e6f46837803b325bcd1f6da5b
Kwon [Fri, 12 Jul 2019 01:54:35 +0000 (01:54 +0000)]
Merge "Delete meaningless configuration" into tizen
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>
INSUN PYO [Mon, 8 Jul 2019 11:29:01 +0000 (20:29 +0900)]
Delete meaningless configuration
Change-Id: I4699e047dcdb3319c67b59224cf830c9b14af7ad
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>
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
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>
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>
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>
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>
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>
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>