Commit Graph

169 Commits

Author SHA1 Message Date
Bartosz Cichocki
56c86cb7b1 [EGD-8019] Clean docker build scripts
Cleanup of docker scripts and small fixups
2021-11-29 16:01:24 +01:00
Pawel Olejniczak
483ac3919a [CP-828] Remove outdated calendar test scripts
These tests were created for old implementation
of calendar application, which no longer exists.
2021-11-25 15:54:32 +01:00
Adam Dobrowolski
22a4979d91 [EGD-7969] Added lacking dependencies in cmake
We didn't have proper dependency for assets
2021-11-15 19:01:27 +01:00
Marek Niepieklo
92ec86e818 [CP-610] Add removeFile operation to Filesystem EP
Moved Rename/Remove/ListDir from DeveloperMode to Filesystem EP API
2021-10-19 09:40:31 +02:00
Marek Niepieklo
55eff9250d [CP-721] Fix harness import error in API/filesystem.py
Fixed broken import
2021-10-13 11:54:15 +02:00
Mateusz Piesta
2b985de0d0 [BH-935] Volume and tone selection
Added playback of volume and tone selection
2021-10-12 09:50:15 +02:00
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +02:00
Marek Niepieklo
a0677af340 [CP-615] Update existing backup/restore implementation in OS
[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
2021-10-11 16:19:20 +02:00
Pawel Olejniczak
2268e01df9 [CP-599] Add crc hash to the last chunk of sent file
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.
2021-10-08 12:41:33 +02:00
Marek Niepieklo
22a02078cd [CP-162] Implement Logs directory
Added listing of log/crash dump files
Reorg'ed log/crash dump files locations
Added harness api/device_info
Updated test and tool scripts
2021-09-29 10:37:58 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
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>
2021-09-23 15:14:40 +02:00
Pawel Olejniczak
caffed99b5 [CP-439] Add case color to device info endpoint
Color of Mudita Pure's case can be now read from
device info endpoint.
2021-09-21 19:39:14 +02:00
Jakub Pyszczak
b5f580aaf4 [EGD-7553] Fixed typo
Fixed typos in requirements.txt.
2021-09-09 16:02:08 +02:00
Jakub Pyszczak
b1f6d67fce [EGD-7505] Developer mode endpoint extended
Developer mode endpoint extender to support
file renaming, removal and listing dirs.
Harness requirements updated.
2021-09-08 15:15:57 +02:00
Pawel Olejniczak
d863c4c609 [CP-47] Extend service desktop API with time based phonelock
Time based phonelock can be now utilised via service desktop.
2021-09-08 11:54:05 +02:00
Artur Śleszyński
92ade4fcea [CP-522] Send SMS via desktop API
Allow the MuditaCenter desktop app to send SMS.
2021-09-06 13:59:31 +02:00
Artur Śleszyński
727cd562db [CP-544] Add phone numbers in thread list response
Replace contact number id with contact number to match the docs.
2021-09-03 08:52:55 +02:00
Piotr Tański
90e7a48198 [EGD-7362] Merge release/0.76.1 into master
Merge release/0.76.1 into master.
2021-09-02 11:12:59 +02:00
Pawel Olejniczak
cdadee24cc [CP-388] Check for duplicates before adding contact
Prevent adding duplicate contact using service desktop API.
2021-08-26 11:56:04 +02:00
GravisZro
e433e8dd03 Fix transparent backgrounds in PlantUML
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.
2021-08-16 17:01:19 +02:00
Mateusz Grzegorzek
6e0c4844f8 [BH-739] Split EventManager
Renaming:
- rename EventManager to EventManagerCommon,
- rename PureEventManager and BellEventManager
to EventManager
2021-08-16 14:15:55 +02:00
Mateusz Grzegorzek
6787a67fe7 [BH-739] Split EventManager
Move `test-settings` to `PurePhone` product-specific directory
2021-08-16 14:15:55 +02:00
Mateusz Grzegorzek
333c8c0db3 [BH-736] Add image generation
Add image generation
2021-08-10 15:25:12 +02:00
Artur Śleszyński
ec7dcfb31e [CP-46] Extend contact info endpoint
Include email, speed dial, ice and notes.
2021-08-10 09:41:41 +02:00
Marek Niepieklo
bd06eacbda [CP-403] Replace old update code
Removed update related code
Removed update test scripts
2021-08-05 17:11:24 +02:00
Marek Niepieklo
26c48bc468 [CP-424] Report SN in DeviceInfo data
Added serial number to Device Info data.
2021-08-05 12:06:42 +02:00
Marek Niepieklo
a906ec6422 [CP-411] Add updater.bin to Update package
Packaging updater.{bin, ver} using embedded assets
2021-08-04 14:08:08 +02:00
Marek Niepieklo
e7776f6c17 [CP-228] Force flushing of logs before getting log files
Moved flushing function to Logger class
Decreased flushing time to 2 min
Added EM event to request flushing from ServiceDesktop
2021-07-29 11:28:43 +02:00
Marcin Smoczyński
74ae1a6589 [EGD-7031] Remove UT deps to the production image
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>
2021-07-27 23:36:37 +02:00
Marek Niepieklo
6c32205e1b [CP-371] Updater miscelanous developer mode and logs changes
This reverts commit cb93d58d85.
2021-07-27 17:03:28 +02:00
Adam Dobrowolski
cb93d58d85 [CP-371] Updater miscelanous developer mode and logs changes
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
2021-07-27 13:56:37 +02:00
Pawel Olejniczak
d87ab0a5d8 [CP-225] Create contact using post method, and update it using put
Methods were used incorrectly.
Now they are aligned with requirements.
2021-07-21 17:15:09 +02:00
Adam Dobrowolski
1b3be31117 [CP-355] Pure update full flow implemented
Update using updater implemented using pytest
2021-07-19 12:21:54 +02:00
Pawel Olejniczak
73819ffd0d [CP-215] Expose current operator name in service desktop API
Get current operator name from cellular modem,
and expose it in service desktop API to let
Mudtia Center use it.
2021-07-14 01:03:34 +02:00
Marcin Smoczyński
d5c541bb11 [EGD-7141] Fix GUI googletest
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>
2021-07-12 15:39:13 +02:00
Adam Dobrowolski
2a709ced4b [CP-325] Request reboot code adjusted to work with harness
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
2021-07-12 12:59:19 +02:00
Przemyslaw Brudny
ee2c085e56 [EGD-7130] Renamed settings application
Renamed settings application.
2021-07-09 18:20:12 +02:00
Marek Niepieklo
aea5472a13 [CP-254] Use Send File for Update package
Switched from raw data transfer to FS Send File
2021-07-09 12:21:27 +02:00
Marek Niepieklo
0596951027 [CP-280] Implement send file procedure
Implemented Send File operation on FS endpoint
2021-07-09 12:02:32 +02:00
Marek Niepieklo
1a0851dbaa [CP-316] Tool to get MuditaOS log
Python tool to get MuditaOS.log file from Pure
2021-07-08 16:43:10 +02:00
Marek Niepieklo
6f21138e85 [CP-253] Add checksum to package transfer
Added CRC32 to FS download command
2021-06-29 16:28:24 +02:00
Marek Niepieklo
6168e25a2e [CP-248] Harness script to transfer Update package to Pure
Script to JUST transfer update package to Pure
without starting OS update
2021-06-28 11:16:18 +02:00
Marek Niepieklo
db6e7d0416 [CP-163] Implement FS Endpoint read file
Implemented get file opration in FS Endpoint
2021-06-23 15:23:46 +02:00
Marek Niepieklo
af11f9465a [CP-166] Update Harness Tests
Renamed endpoint filesystemUpdate to filesystem
Added get file test
2021-06-23 15:23:46 +02:00
Pawel Olejniczak
c58c8568d3 [CP-143] Set 204 code for responses with empty body
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.
2021-06-14 17:14:16 +02:00
Pawel Olejniczak
f8c39b30d6 [CP-142] Update tests with 204 response code
Uptdate python test scripts with 204 (NoContent) code
for responsens with empty body.
2021-06-14 17:14:16 +02:00
Marek Niepieklo
9dc5ba911b [CP-187] Fix stack overflow on passcode decoding
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.
2021-06-11 11:55:47 +02:00
Lukasz Skrzypczak
399ee03aa3 [BH-378] Fix unit tests includes
Fix Unt tests includes
2021-06-08 12:24:29 +02:00
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
Marek Niepieklo
9b28cd6790 [CP-84] Implement Security API
- 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
2021-06-08 10:23:21 +02:00