Commit Graph

1145 Commits

Author SHA1 Message Date
Wiktor S. Ovalle Correa
43e8b862ac [EGD-6896] Sanitize Tray event handling
Tray events were handled inconsistently with its Message used
in a separate context
2021-06-04 09:38:44 +02:00
Adam Dobrowolski
23b3fd51e5 [EGD-6400] Added no autolocking while torch on feature
When torch is on we don't want to be able to autolock phone
2021-06-02 12:13:43 +02:00
Przemyslaw Brudny
017e3d88dc [EGD-5711] Finalized onBoarding application
Finalized onBoarding application. Added no sim ready window
and sim response window. Created iceBox widget. Fixed various
onBoarding errors and misalignment.
2021-06-01 20:27:52 +02:00
Kuba
1429d4f07e [EGD-6698] Add setting time from Settings
Added setting time from Change Date and Time window. Change
request is handled by service-time.
2021-06-01 18:14:22 +02:00
Wojtek Rzepecki
87f7cc4b4c [EGD-6807] Add improved brownout detection
Added immproved battery brownout detection
based on filtered voltage measurement
2021-06-01 16:51:44 +02:00
Lucjan Bryndza
2f3e24c7d5 [EGD-6835] Add inotify mechanism in the VFS
Add file monitoring event mechanism to the
VFS subsystem. Now it will be possible to
monitoring file changes in the reistered
path

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-06-01 13:06:38 +02:00
Maciej Janicki
6851c04e12 [EGD-5976] Add tethering cellular disabling
This commit adds disabling of URC messages during
tethering mode. It also adds call and sms logging after
tethering is disabled.
2021-06-01 09:03:23 +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
Bartosz Cichocki
ba0e0345b7 [EGD-6868] Restore magnetometer polling mode
To be able to properly operate with the slider under every
circumstance the polling mode has to be restored. It's related
to the bug in the magnetometer chip, which is not described in the
datasheet.
This reverts commit 744eef1d9b with
few small fixes
2021-05-31 16:48:54 +02:00
Michał Kamoń
ce0cb23abd [EGD-6794] Fix display light settings
This commit provides the flowing fixes in display light functionality:
 - Settings-path bug causing lack of display light settings on "fresh"
 image. Solved with proper paths definition
 - Invalid settings after phone restart. Solved with proper handling
 of enums and booleans on the Event manager side.
 - No turning off light just after turning on light functionality with
 manual brightness setting in ApplicationSettings bug (required
 another key press to start timer that turns off the light after 5s).
 Solved by starting timer explicitly on Action::turnOn
 - No turning off light just after turning on the phone bug (required
 --as above --). Solved by starting timer explicitly on `Settings
 ValueChange` callback with Action::turnOn.
 - No autoMode until user entered `AppSettings::DisplayLight` Window.
 Bug caused by curve parameters being provided by the window rather
 than on the functionality back-end initialization.

 Commit also provides some code cleanup
2021-05-31 10:43:26 +02:00
Lukasz Skrzypczak
40530e39aa [BH-399] Cleaning
Cleaned to match newest master
2021-05-28 19:29:04 +02:00
Przemyslaw Brudny
145178ae26 [EGD-6791] Added PhoneUnlock on external MuditaCenter message
Added PhoneUnlock on external MuditaCenter message.
2021-05-28 17:46:03 +02:00
Marcin Smoczyński
ef3f840a4d [EGD-6049] Add voice call over HSP
Add support for voice calls over HSP.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-05-28 15:38:56 +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
Wiktor S. Ovalle Correa
c1bb6c1bae [EGD-6746] Expose new Message types system-wide
Allow all modules to access Request/Notification Message send templates.
2021-05-27 16:32:47 +02:00
Marek Niepieklo
2d44f964a8 [CP-120] Fixed USB comm. when Pure reconnected unlocked
USB comm. was secured when Pure was reconnected to PC while unlocked
2021-05-27 13:01:23 +02:00
Mateusz Grzegorzek
b4a40bd21c [BH-398] Move sml to a separate directory
Move sml to a separate directory
2021-05-27 10:11:24 +02:00
Przemyslaw Brudny
bc737e93f6 [EGD-5885] Added SimLockHandler
Refactored LockWindow TitleBar handling. Added Sim pin request
block on lockedPhone. Added Sim info popup added when pin
changed. Updated assets. Removed old PinLock structures.
Cleared LockBox structures. Removed old settings sim setters.
New CellularMessage adaptation. Cleared Lock structure.
2021-05-26 20:09:33 +02:00
Kuba Kleczkowski
97760f7765 [EGD-6567] Add GSM time update handling
Adds handling GSM time update in service time.
2021-05-26 18:08:11 +02:00
Jakub Pyszczak
d724442366 [EGD-5171] Utils to string fix
Fixed utils to string function to work with 8 bit integers.
Also nodiscard attribute added there.
2021-05-26 13:52:50 +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
Bartosz Cichocki
52d5a35c1b [EGD-6447] Add Bluetooth PIN pairing
Implemented legacy pairing using PIN code
2021-05-25 16:12:01 +02:00
Maciej Janicki
ce3676ba47 [EGD-6796] Fix excesive ATA command with HSP
This commit fixes excesive ATA cmd in HSP by checking call type in
ServiceCellular.
2021-05-25 15:30:15 +02:00
Pawel.Paprocki
040550f3b7 [BH-356] Move TPLIB (microtar) to separate directory
Move microtar to lib, amend CMAKE files
2021-05-24 09:44:29 +02:00
Borys Jelenski
cbbd94719d [EGD-6605] Fix RTC time not retained between resets if set manually
When setting datetime from timestamp (manually, not from network),
SRTC is set in order to retain the RTC datetime between resets.

RTC handling was refactored in order to get rid of unnecesary
conversions and third-party code mixed with proprietary code
within a single file.
2021-05-24 04:54:02 +02:00
DariuszSabala
339f3d52fa [BH-364] Move TPLIB magic_enum to separate dir
Changed submodule directory and updated cmake scripts and include paths
2021-05-21 11:12:20 +02:00
Michał Kamoń
b106563277 [EGD-5762] Add documentation to AutoLock functionality
This PR provides documentation for automatic lock functionality
2021-05-21 10:22:02 +02:00
Adam Dobrowolski
44319133ea [EGD-6536] Settings API guideline added
Guideline explaining how should Settings object be used
2021-05-20 21:46:16 +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
Pawel.Paprocki
ce82aad981 [BH-358] Add Move TPLIB (CRC32) to separate directory
Change directory location and update CMAKE
2021-05-19 12:25:37 +02:00
Wiktor S. Ovalle Correa
39a09e8627 [EGD-6746] New SimCard implementation
New approach to the Cellular SimCard submodule
2021-05-18 17:57:29 +02:00
Marek Niepieklo
2e6899a492 [CP-2] I don't want to see data from Pure in Center when Pure is locked
[CP-48] Re-enabled USB security
[CP-49] Update test harness with usb security
2021-05-18 15:46:17 +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
Jakub Pyszczak
b823992837 [EGD-6655] Screen light when active
Added enabling screen light if there was any key pressed
and screen light controler is in the automatic mode.
Added screen light disabling after 5 seconds of timeout
without any key being pressed.
2021-05-14 11:42:43 +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
Pawel.Paprocki
db8c1d35e5 [EGD-6739] Fix Enable change of display resolution on simulator
Define screen dimesions in one place
2021-05-14 08:50:11 +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
Radoslaw Wicik
80dc483c5d [BH-422] Fix CMake in service GUI - post review update 01
Update after review.
2021-05-13 13:51:08 +02:00
Radoslaw Wicik
8b24846b92 [BH-422] Fix CMake in service GUI
Refactor CMakeLists.txt for cleaner and simpler code.
2021-05-13 13:51:08 +02:00
Przemyslaw Brudny
97777d0b23 [EGD-6729] ServiceDesktop plug off lock interactions fix
ServiceDesktop plug off lock interactions fix.
2021-05-10 15:47:20 +02:00
Alek Rudnik
457e9b4fc8 [EGD-3542] Fix issue with sending text messages form new message window
Fixed too short timeout for sending sms
Fixed flow for switching to thred window to asynchornous one
Fixed some minor issues connected to new sms error handling
2021-05-07 16:24:27 +02:00
Michał Kamoń
0bad6d643b [EGD-6657] ApplicationDesktop clean-up
This PR cleans-up `ApplicationDesktop` after recent changes in
home screen notifications handling.
2021-05-07 15:41:14 +02:00
Michał Kamoń
46c57aaa88 [EGD-6599] Add single number call notification
This PR adds proper notification on call notifications coming from
single number. To that end following changes have been introduced:
 * extension of Notification DB record with contact_id filed
 * use of `ContactRecordInterface` in `NotificationsRecordInterface`
 * extension of `Increment` query to require `PhoneNumber::View`
 * multiple minor changes on path from creating/handling
 `NotificationsRecord` to displaying respective notification.
2021-05-06 14:39:53 +02:00
Bartosz Cichocki
a3aa441b0f [EGD-6682] Fix BT name change bug
To update the BT name there is a need to restart the BT stack.
Sending proper command during working stack wasn't working
2021-05-06 14:17:29 +02:00
Maciej Janicki
c88c82ae86 [EGD-6319] Refactor cellular modem directory
- Removed not used files from old implementations.
- Renamed some classes to follow naming convention.
- Renamed methods to use consistent styling.
- Restructured code.
2021-05-05 16:34:35 +02:00
Jakub Pyszczak
afa71c7e53 [EGD-6051] Receiving notifications on bt
Any notification could be heard via bt audio device while
it's connected to the pure.
If any notification is being played and bt device would disconnect,
playback will be stopped.
Disabled bluetooth low power as it was causing issues with the playback.
JIRA for the low power bug
https://appnroll.atlassian.net/browse/EGD-6681 .
2021-05-05 16:11:13 +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
Tomasz Sobkowiak
434df6d8b8 [EGD-6520] Show factory data on technical information window
Remove mocked data and read real data from settings db
2021-05-04 14:41:41 +02:00
Pawel Olejniczak
aebc8e7641 [EGD-6626] Fix displaying bluetooth phone name in app settings
Reading bluetooth phone name was not implemented
on service bluetooth side.
2021-04-29 18:35:45 +02:00