Commit Graph

82 Commits

Author SHA1 Message Date
Lefucjusz
181feb4f40 cleanup 2024-08-20 15:40:34 +02:00
Lefucjusz
d558e60a4d [CP-2013] Add time sync endpoint
Added endpoint that can be used
to synchronize time via MC
protocol.
2024-08-13 16:13:12 +02:00
Lefucjusz
395849fc9c [BH-000] Update Harmony 2.7.0 changelog
Update changelog after Harmony 2.7.0
release.
2024-05-29 15:36:51 +02:00
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
Lukasz Mastalerz
a870922ec3 [CP-1837] Random crashes while copying files
General improvements to prevent running out of memory while copying
files via Mudita Center
2023-03-21 09:17:54 +01:00
Paweł Joński
7a9ba7ffa8 [BH-1448] MTP closing routine and VCOM reset routine
MTP closing routine and VCOM reset routine
2022-04-20 11:17:55 +02:00
Pawel Olejniczak
57fd6f3c9e [CP-1033] Add Outbox endpoint to service-desktop
Outbox endpoint will be used to provide notifications
about changes in messages/threads/calls during connection
with Mudita Center. This mechanism will ensure an efficient
data synchronization between Mudita Pure and Mudita Center.
2022-02-17 21:47:19 +01:00
Marek Niepieklo
08cc7e0663 [EGD-7400] Device won't reconnect to MC when unplugged
In case of disconnection from MC during reception of large messages
(e.g. to FS endpoint), the parser may be left in a state expecting
further parts of the message. This causes incorrect handling of new
messages arriving after reconnection to MC.
Added a timer to reset a Parser when transfer times out.
2021-11-16 09:55:06 +01: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
Artur Śleszyński
b15006a94c [CP-564] Make desktop endpoints a separate lib
In order to have different sets of endpoints for different products,
we need to separate endpoints from the desktop service.
2021-09-21 10:41:37 +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
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
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
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
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
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
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
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
cd649c69ae [EGD-7111] Restore calendarEvents endpoint number
Added dummy calendarEvents entry to restore EP numbering
2021-07-07 14:55:54 +02:00
Wojtek Rzepecki
0e42b0016e [EGD-7044] Strip down calendar code
Stripping the calendar code to provide only
MVP defined functionalities
2021-07-07 09:05:57 +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
Artur Śleszyński
3c2ca020a9 [CP-183] Do not log sensitive data in service-desktop
Remove potential printing of user-sensitive data.
2021-06-29 11:07:25 +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
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
Radoslaw Wicik
1a2e12af1a [BH-373] Convert utils json into a lib
Moving json to a third-party standalone library.
2021-06-11 09:41:44 +02:00
Lukasz Skrzypczak
4ec617b158 [BH-378] Style fixed
Fixed style
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
Pawel Olejniczak
70e9ef0d03 [CP-77] Replace receivedAt and sentAt fields with createdAt
sentAt json field was never updated and was not used.
Cleaned up DB and DB interface from unused date_send.
2021-05-31 17:52:35 +02:00
Pawel.Paprocki
29bf1e40f1 [EGD-5834] Fix restore API
Change restore API
backup/restore/update harness tests
2021-03-30 16:53:23 +02:00
Pawel Olejniczak
00c760233b [EGD-5783] Revert EGD-5783
Revert "EGD-5783 Exclude empty body from response message"
This reverts commit b64eb0622b.
2021-03-23 16:41:43 +01:00
Pawel Olejniczak
b64eb0622b [EGD-5783] Exclude empty body from response message
Remove body field from response message,
if it contains null. Add 204 and 501 status codes
and use them in proper responses.
204 stands for success but no content, and 501
means endpoint is not implemented.
Additionally some minor fixes.
2021-03-23 14:31:11 +01:00
Roman Kubiak
6bc6eccc34 [EGD-5565] Fix update process on new lf filesystem
These changes are needed for update to work with new
LFS fileystem, also minor bugfixes are included.
2021-03-11 07:35:31 -08:00
SP2FET
66db7b0841 [EGD-5512] Usb security refactor and devices pairing
Move all security related functionality to single security endpoint
Paired devices can be added to avoid further passcode requests
2021-03-11 08:46:18 +01:00
Pawel Olejniczak
b63f51a7bf [EGD-5963] Unify type of UUID field in all endpoints
UUID is no longer stored as a string, since we are not
going to use 128b UUID.
2021-03-02 13:00:10 +01:00
Radoslaw Wicik
d5174215eb [EGD-5819] Fix count
Fix wrong "count" key word in contacts, and add test for variables in
device info endpoint.
Disabled test jira:
5906 - test_calendar_events.py
5907 - test_connection_security.py
5908 - test_dom_dump.py
5909 - test_usb_echo.py
2021-02-26 14:06:00 +01:00
Roman Kubiak
2a29e27996 [EGD-5757] Fix backup API
Fix backup endpoint to work with new paths and FS api
The flow is based on the design in confluence.
2021-02-25 16:04:04 +01:00
Piotr Tański
d5c3d41ca4 [EGD-5204] Secure USB communication
Secure all endpoints by returning 403(Forbidden) when USB is connected.
Request screen passcode to enable secured endpoints.
2021-02-24 19:49:07 +01:00
Adam Dobrowolski
f724d9074b [EGD-5701] Added DOM dump to harness
* Added generic handler to developerMode
* Added DOM message handling
2021-02-18 16:53:07 +01:00
RobertPiet
2c3965df18 [EGD-5557] Contact Endpoint pagination
Pagination added for contact endpoint.
Introduced PagedContext and query message for contacts that returns
the required contacts together with the number of all contacts in db.
2021-02-17 15:13:27 +01:00
Pawel Olejniczak
f535268624 [EGD-5586] Clean up messages endpoint API
Introducing changes according to new messages endpoint api
proposal doc. All request have been updated, and some new were added.
Harness tests were updated too. These changes will be followed up with
pagination implementation.
2021-02-16 09:19:50 +01:00
SP2FET
fa24dcc829 [EGD-5483] Updated BT harness tests
Added harness test for BT scan in order to be able
to test regression
2021-02-11 11:48:07 +01:00
Radoslaw Wicik
e1400aee90 [EGD-5685] Add version field in DeviceInfo EP
Adding field required by Mudita Center in DeviceInfo Endpoint.
Updated harnes test.
2021-02-10 08:47:05 +01:00
Wojtek Rzepecki
8204cba1ab [EGD-5575] Add battery file test
Battery file existence test for
harness test suit. Minor changes to
file saving applied.
2021-02-08 15:57:17 +01:00
Tomasz Langowski
3d3f0b649c [EGD-5323] Add change sim card test to harness
Add change sim card test to harness
2021-02-02 11:10:43 +01:00
lblach
d787563639 [EGD-5309] Add a new message Abort in Update endpoint API
In order to be able to interrupt the OS update after its launch in
the phone, it was necessary to implement the new "Abort" message
for the Update Endpoint API.
2021-01-28 10:02:29 +01:00
mkamonMdt
2dc0bc3676 [EGD-4850] Fix of statics between USB CDC and ServiceDesktop
Handling queues with static std::string implementation caused
problem of double-free memory on turning off simulator. Applied
solution to the problem is to pass ownership of queued string to
a receiver side.
2021-01-22 09:21:59 +01:00
Roman Kubiak
6a207e7a2a [EGD-4559] store update history in settings db (#1134)
* [EGD-4559] store update history in settings db

* [EGD-4559] first review fixes

* [EGD-4559] catch changed

Co-authored-by: Alek Rudnik <aleksander.rudnik@mudita.com>
2020-12-09 10:48:20 +01:00
tomaszrogala
84e08c242f [EGD-3512] Create ICS Parser (#892)
-Create application desktop endpoints for calendar events
-Modify Calendar Database Interface
-Create ParserICS lib
-Create calendar events endpoints test
-Create UT for ParserICS
2020-11-25 11:05:46 +01:00