19 Commits

Author SHA1 Message Date
Lefucjusz
14bb332d0a [BH-2104] Create What's New database using migration mechanism
Create What's New mechanism using migration mechanism. This is
a first part of a fix for What's New not working if trying to
update from 2.9.0, 2.9.1 or 2.9.2.
2025-08-08 12:08:40 +02:00
Lefucjusz
773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00
Dawid Wojtas
1ba589f9c8 [BH-2026] Add mechanism for getting previously OS version
Task relates to What’s new feature that needs to
know which version of MuditaOS was installed
before the update.
Normally What’s new uses a database to get the
previous version, but after the first run this
field will be empty.
To bypass this issue the PureRecovery needs to
save the previous version in recovery_status.json
that is generated after the update process.
2024-07-10 12:45:46 +02:00
Dawid Wojtas
676174815f [BH-2024] Fix lack of alarm directory after updating software
If the alarm directory isn't exist then
it's created while updating the software.
Added the same procedure for relaxation directory.
2024-07-02 10:56:41 +02:00
Lefucjusz
75c12a82e5 [BH-1895][BH-1909][BH-1910] New database structure for custom sounds
* Added creation of /user/media/app/alarm
directory that will be used to store
custom alarm sounds.
* Implemented new database structure.
* Adapted Alarm, Bedtime, Pre-wake up and
Snooze to new database structure.
* Added removing custom alarm files during
factory reset.
* Added fallback alarm sound mechanism.
* Cleanups, unifications.
2024-04-10 15:33:14 +02:00
Lefucjusz
752147e814 [BH-1881] Add progress bar to update process
* Modified Lua update scripts to show simple
progress bar during update process in
Recovery.
* Fixed regression with failing factory
reset on Pure.
* Split Lua scripts per product.
2024-02-23 15:55:12 +01:00
Dawid Wojtas
59efb79001 [BH-1731] Factory reset removes user files
Performing the factory reset removes user files
and settings. After powering on the device
will run the onboarding.
2023-12-07 16:11:33 +01:00
Mateusz Piesta
37665c2971 [MOS-000] Fixed minor issue in db migration script
* Removed doubled copyright header from 'up/down/devel.sql' when committing
databases.
* During installing, 'devel.sql' was created even if specific revisions
didn't contain one.
* Removed unnecessary product-specific .lua scripts.
2023-04-03 11:52:03 +02:00
Mateusz Piesta
10553e0567 [MOS-939] Apply target update scripts
* Removed old UDM-related update scripts that are no longer needed.
* Applied target update script
* Removed unneeded data folder from user partition
* Removed dummy personalization.json
2023-03-08 11:45:53 +01:00
Mateusz Piesta
424f5eaa12 [MOS-855] Restore process update
Fixed issues with restoring from legacy backups
and cases when the database set fetched from backup package
is different than the system one.
2023-01-19 16:41:56 +01:00
Lefucjusz
fc076fa4cc [MOS-855] Fix restore from legacy backup
Added checking if requested to restore backup
from pre-UDM version and setting db versions
to zero in such case, as version info file
(called backup.json in legacy backups) doesn't
contain info about versions.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
b1fe5973b7 [MOS-807] Update scripts
Added minor tweaks and fixed bugs.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
09bab001d0 [MOS-807] Update scripts
Added update scripts for both variants:
UDM update and further 'normal' updates.

Minor updates to the directories layout
2023-01-19 16:41:56 +01:00
Bartosz
ae4badbbeb [MOS-803] Further fixes for sync
Fixed paths for sync process
Added timeout for windows in recovery processes
2023-01-19 16:41:56 +01:00
Bartosz
bb2df2a32c [MOS-803] Fixes
Fixes for deviceInfo endpoint, scripts
 and missing migration files in sysroot
2023-01-19 16:41:56 +01:00
Mateusz Piesta
bb0ef540b7 [MOS-803] DeviceInfo endpoint update
* Added some changes to the DeviceInfo endpoint
* Updated relevant code accordingly
* Removed unneeded paths definitions
* Minor bug fixes
2023-01-19 16:41:56 +01:00
Mateusz Piesta
ea5492fa42 [MOS-803] Add backup/restore scripts
* Added test directory layout
* Added test assets
* Added backup/restore scripts
2023-01-19 16:41:56 +01:00
Mateusz Piesta
902a3a315e [MOS-806] Prepare scripts dependencies
* Added scripts dependencies
* Added script to generate scripts package
automatically
* Added integration with PureOS CMake
* [MOS-804] Created factory reset script
2023-01-19 16:41:56 +01:00
Mateusz Piesta
334b272fee [MOS-802] Create DB migration script
Added database migration script(LUA).
2023-01-19 16:41:56 +01:00