Commit Graph

50 Commits

Author SHA1 Message Date
Marcin Smoczyński
57874cab33 [BH-912] Improve sys module structure
Improve structure of the module sys. Problems within this module
prevents from linking others.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-24 10:01:19 +02:00
Marcin Smoczyński
958ce4906c [BH-897] Split module-sys
Split system module to better manage dependencies between system
components.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-21 16:11:59 +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
Mateusz Grzegorzek
47a212c063 [BH-799] Revert "Split DeveloperModeHelper - part I"
Rename DeveloperModeHelperCommon to DeveloperModeHelper
2021-08-27 13:14:42 +02:00
Mateusz Grzegorzek
58118fe0bb [BH-799] Split DeveloperModeHelper - part I
Rename DeveloperModeHelper to DeveloperModeHelperCommon
2021-08-23 16:08:34 +02:00
Mateusz Grzegorzek
ed68fc92ec [BH-754] Split ServiceDB
- rename ServiceDB to ServiceDBCommon,
- create separate ServiceDB for Pure and Bell,
- move Pure-specific functionality
from `ServiceDBCommon` to Pure `ServiceDB`
2021-08-20 10:47:29 +02:00
Mateusz Grzegorzek
e1ef821609 [BH-741] Split ApplicationManager
Separate Pure and Bell ApplicationManager functionalities
to separate files.
2021-08-18 14:29:51 +02:00
Mateusz Grzegorzek
7188802f8e [BH-669] Fix CMake in service-appmgr
Fix CMake in service-appmgr
2021-07-21 14:19:41 +02:00
Wojtek Rzepecki
992b0ea2c3 [EGD-3171] Fix key shortRelease on app switch
Fix of shortRelease on app switch while long
press applied on previous window
2021-07-13 11:03:20 +02:00
tomaszkrosnowski
e05ddbfdd9 [EGD-7010] Remove sensitive data from logs
Sensivite data like first/second name, messages and notes content,
dialed gsm numbers etc are removed from logs to guarantee security for
Pure users.
2021-07-08 11:43:35 +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
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
Alek Rudnik
93c4675d1d [EGD-6701] System time usage fixes
Fixed all calls to stdlib time.
Removed all redundant calls to Timestamp treated as time source.
2021-05-27 16:54:44 +02:00
Michał Kamoń
0f3fb7c152 [EGD-6736] Add app's state dependent autoLock mechanism
This PR provides the implementation of the auto-locking mechanism that
is dependent on an application's current auto-locking policy. Three
auto-lock policies have been introduced:

* DetermineByWindow
* DetermineByAppState
* PreventPermanently

Also changed the AutoLockWindow set/get auto-lock time value to the
message-based approach.
2021-05-26 08:31:33 +02:00
Wiktor S. Ovalle Correa
b2ca227fd5 [EGD-6746] Use new SimCard implementation
Switch to SimCard implementation provided by previous commit
2021-05-20 17:52:48 +02:00
Adam Dobrowolski
b38adceced [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
Removed dependency from freertos in test global file
EntryPath tests updated and compilation slimed
2021-05-18 13:25:54 +02:00
Przemyslaw Brudny
bcdaf15ed1 [EGD-6740] Availability and Change handled by PhoneLockHandler
Availability and Change in phoneLock handled by
PhoneLockHandler. Removed old implementation from
onBoarding and Settings. Cleared language assets.
2021-05-14 13:07:49 +02:00
Przemysław Brudny
e71a044bd3 [EGD-6019] Revert of two commits
This reverts commit b6416b15da.
This reverts commit e2f3882d8a.
2021-05-14 09:54:36 +02:00
Adam Dobrowolski
b6416b15da [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
2021-05-13 18:22:44 +02:00
Przemyslaw Brudny
9a17c5fc3c [EGD-6676] PhoneLock handling with ServiceDesktop
Replaced old PhoneLock handler in ServiceDesktop with new
interactions with Application Manager PhoneLockHandler.
2021-05-05 13:55:14 +02:00
Maciej Gibowicz
9cc5b47bdd [EGD-4863] Add harness test for cellular sleep mode
Adding test for outgoing call and text message
in cellular sleep mode
2021-03-25 11:08:08 +01: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
Michał Kamoń
0218e0d7d4 [EGD-6191] Fix harness call tests
* This PR provides a fix for the bug reported in [EGD-6081].
The solution adds the `tear_down`-like fixture called after the
problematic tests, that enforce focus on `ApplicationDesktop'`s
main window.
* Additionally similar solution was added to `test_auto_lock`
to restore original (30s) lock timeout.

[EGD-6081]: https://appnroll.atlassian.net/browse/EGD-6081
2021-03-23 08:46:01 +01: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
Tomasz Langowski
e8f7a57219 [EGD-5758] Restore auto locking timer in ApplicationManager
Restore auto-locking functionality
2021-03-03 11:37:47 +01:00
Adam Dobrowolski
30fde886e4 [EGD-5326] Fixed AT commands harness utility
We can now use test harness to send and check at commands
2021-03-02 14:49:50 +01:00
Tomasz Sobkowiak
0022da5e37 [EGD-5204] Show passcode screen only when PC is connected
USBConfigured event is not fired when powerbank, charger is connected.

[EGD-5204] Show passcode screen only when PC is connected

USBConfigured event is not fired when powerbank, charger is connected.
2021-02-25 10:28:08 +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
Piotr Tański
6916fed47b [EGD-5836] Turn on/off the tethering via harness
This allows a user to turn on and off the tethering via test harness.
2021-02-24 15:21:31 +01:00
Tomasz Langowski
3fd296c50d [EGD-5845] Fix broken harness messages tests
Fix broken harness messages tests
2021-02-23 14:22:00 +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
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
Tomasz Langowski
d3e51fb7cd [EGD-5319] Add test related to cold and hot start of cellular
Add harness test related to cold and hot start of cellular service
2021-02-12 08:00:49 +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
Tomasz Langowski
fbc28f4cfe [EGD-5322] Add send message test (long sms, special characters)
Add send message test (long sms, special characters)

[EGD-5322] Add send message test (long sms, special characters)

Add send message test (long sms, special characters)
2021-02-09 09:17:52 +01:00
Piotr Tański
bc4d32c7d8 [EGD-5158] Change access to the bus methods
The bus is now accessible only via Service object.
2021-02-08 16:56:42 +01:00
Piotr Tański
1db3f19205 [EGD-5472] Bluetooth worker state machine
State machine POC implemented using SML library.
2021-02-03 12:48:07 +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
SP2FET
0fad723135 [EGD-5457] Add harness test for bluetooth on/off
There is no functional tests related to the Bluetooth. As the
refactor is on the way,we need to have a tool to check if it works
By the way fixed worker deinit
2021-01-28 17:14:59 +01:00
Bartosz Cichocki
50f28e8f19 [EGD-4270] updated test API, added sending message case in test harness (#1042)
[EGD-4270] build fix for GCC 10

Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-19 13:02:06 +01:00
Radoslaw Wicik
b117704345 [EGD-4219] Convert service-evtmgr and service-lwip to library 2020-11-18 10:09:02 +01:00
Radoslaw Wicik
47c817cf15 [EGD-4218] Convert service-desktop to library 2020-11-16 16:04:15 +01:00
Radoslaw Wicik
945e39df21 [EGD-4216] Convert service-cellular to library 2020-11-10 13:35:12 +01:00
Bartosz Cichocki
aedd6a7a36 [EGD-4319] Added test harness API (#993)
[EGD-4319] added phone lock checking and opening application from harness

Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-10 13:21:41 +01:00
Bartosz Cichocki
d5baec3837 [EGD-4211] moved test harness into service-desktop (#945)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-05 13:37:34 +01:00
Bartosz Cichocki
f16d30222c [EGD-4191] added keyReleased handling from service-desktop (#930)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-02 20:08:05 +01:00
Radosław Wicik
d5de12f7ce [EGD-3852] clean include in service (#928) 2020-10-28 15:19:24 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
SP2FET
a1b7d943e0 [EGD-4095] added DeveloperMode endpoint 2020-10-15 16:26:50 +02:00