[CP-648] Handle updated API requests
Updated B&R to handle new API
Extended error reporting
Backup/Restore code clean up
[CP-649] Check OS version compatibility during restore
Added check of OS and backup versions
Fixed adding of version.json to PurePhone.img
CRC was counted in one go before starting to send
chunks of the file, which, in the case of a large file,
caused communication to stop for a long while.
In the current implementation, CRC is counted
incrementally while sending individual file chunks.
It is then appended to the last chunk of the file.
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Images generated using PlantUML had transparent backgrounds which made
their text difficult to read on GitHub when using "Dark Mode". Forcing
a background color of #F0F0F0 ensures they are all readable.
Remove dependency to the production image by creating separate sysroot
for test assets alongside with a test image Test.img.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
Changed:
- Runtime disabled logs which didn't add value from ServiceDesktop
- Runtime disabled logs which didn't add value from SystemManager
- Added possibility to change runtime logging levels
- Integrated ServiceDesktop developer code a bit - it might be used
as virtual base with little to no modifications for other endpoints
which would result with less redundant code
Fix invalidly added GUI gtest. Test dummies moved to individual files to
deal with a bug in cmake test discovery for gtest.
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
We have no controll on UART over the device flushing, minimum code
added to assure that data could be flushed
We do not close services when these are closed with reason
Body field was always added to response json, even if
it was containing only null. Now empty body is
not attached to response json, and status code
for such message is set to 204. Additionaly some
minor cleanup in service desktop was done.
When passcode is passed as json string, each of digits needs to be
parsed as separate character with std::atoi. Replaced the string
with json array of integers to simplify decoding and avoid SO.
- Added pass code unlock from MC
- Removed Set USB security status
- Changed isLocked to phoneLocked in request for phone lock status
- Removed remainings of USB security in Settings App
- Reworked USB security model to depend both on
Phone lock state and Pass code being enabled
- Updated test_security.py