Commit Graph

3776 Commits

Author SHA1 Message Date
Lucjan Bryndza
511bab97aa [EGD-6897] Add force flag to the pureflash
On some devices like ESCSI minor device id is not
properly recognized.
This patch add --force flag for skip checking minor
device numbers (partitions).

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-06-04 09:57:14 +02:00
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
Wiktor S. Ovalle Correa
20180437c8 [EGD-6035] Fix support for glibc-2.32
GLIBC 2.32 doesn't work with changes made for 2.33.
2021-06-03 16:16:21 +02:00
Lucjan Bryndza
ae5e4bd5f3 [EGD-6841] Add more sanity check in the pureflash
Add more sanity check before flashing to the
block device. Add additional checks against:

* Write image partition is mounted in a linux
* Write image into the partition instead of blkdev

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-06-02 12:30:16 +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
bea44d5da5 [EGD-6886] Fixed onBoarding Main Window and NoSim popup
Fixed wrong onBoardingMain Window handling and increased
noSim detected popup timeout.
2021-06-02 11:43:58 +02:00
Przemyslaw Brudny
3c269154bc [EGD-6885] Fixed onBoarding done wrong path in settings
Fixed onBoarding done wrong path in settings.
2021-06-02 11:05:07 +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
Przemyslaw Brudny
06e876721c [EGD-6877] Fixed failing i18n tests
Fixed failing i18n tests caused by change in
setDisplayLanguage return value.
2021-06-01 15:49:15 +02:00
Wojtek Rzepecki
56a17e7814 [EGD-6854] Add missing tethering windows
Added missing windows for tethering
based on UI design
2021-06-01 15:25:30 +02:00
Michał Kamoń
4fb5a38fa2 [EGD-6397] Add no autolock on OSUpdate
This commit enables `preventsAutoLock` in `UpdateProgress` window
to ensure that no autolock event occurs while OSUpdate is in progress.
2021-06-01 15:00:54 +02:00
Michał Kamoń
8078dd240b [EGD-6855] Add no modem notification on tethering
This commit provides the implementation of functionality that blocks
sms/calls notifications on home screen when tethering is active.
Previously, the notifications could be visible if the notifications
were visible prior to tethering activation.

By the design, the functionality should not clear the notifications,
just temporary hide them. That is achieved by implementation ot the
functionality in NotificationModel which is an UI presenter.
2021-06-01 14:25:32 +02:00
Lucjan Bryndza
325f8696b8 [EGD-6835] Fix UT link errors with inotify
Fix UT linkage error when trying to link with
libiosyscalls with inotify mechanism

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-06-01 13:06:38 +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
Artur Śleszyński
dfa1d5168e [EGD-6715] Add module utils CMakeLists.txt ownership
This file is owned by chapter BSP.
2021-06-01 08:43:34 +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 Olejniczak
f74170387b [CP-79] Update messages API tests
Check if all required fields in resposne
json are present. Also check if they
have a proper type.
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
Radoslaw Wicik
abcc8d77df [EGD-6871] Single thread for build job on jenkins
Test for faster queue in Jenkins.
2021-05-31 15:52:04 +02:00
Borys Jelenski
8d511a4712 [EGD-6704] Fix incorrectly displayed time in "Date and time" window
Time was incorrectly displayed when opening the "Change date and time"
window due to invalid string conversion. Fixed by using different
string converting function which does not use printf underneath.
2021-05-31 12:43:46 +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
Artur Śleszyński
fbb820c284 [BH-357] Move protobuf to third-party dir
* Use the CMakeLists.txt from lib authors.
* Disable building libprotobuf in the all target.
* Disable warnings in the libprotobuf-lite target.
2021-05-28 15:00:31 +02:00
DariuszSabala
e6e9a79fa5 [BH-397] Move TPLIB parallel-hashmap
Changed submodule directory and changed way its linked,
in order to use target_link_libraries checkouted phmap
dependency to the newest revision which includes small
cmake fixes (see 031d214f2ce1973933abdf2a998d986ff8094d8e),
updated paths in PureCoverage script and Doxyfile
2021-05-28 13:51:49 +02:00
Pawel.Paprocki
b969442853 [BH-365] Move TPLIB (tinyexpr) to separate directory
Move library, amend CMAKE files
2021-05-28 13:05:32 +02:00
DariuszSabala
6fe90d4bef [BH-461] Move TPLIB minimp3 to separate dir
Moved minimp3 to third-party directory,
added our CMakeLists.txt with interface
library defined and upgraded include paths
2021-05-28 12:39:40 +02:00
Borys Jelenski
3a6e6b2158 [EGD-6843] Fix invalid assert in FSL SNVS driver
Fix an invalid assert after the driver was modified in EGD-6605.
2021-05-27 23:27:24 +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
Tomasz Sobkowiak
1648ea44a3 [EGD-6803] Scroll list to selected sound
When display message/alarm/ringtone sound scroll list to selected sound.
2021-05-27 11:31:00 +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
DariuszSabala
2d164b9690 [BH-359] Move TPLIB pugixml to separate dir
Changed submodule directory and updated cmake scripts and include paths
2021-05-26 13:34:18 +02:00
Maciej Gibowicz
d8e26bee3e [EGD-6654] Add self-tuning for RC oscillator
Calibrate the RC before switching to the internal oscillator.
This improves the precision of the system clock.
2021-05-26 13:01:30 +02:00
Radoslaw Wicik
6acbe534e2 [EGD-6837] Add post merge pipeline and ram disk build
Add support build in ram disk
2021-05-26 09:43:47 +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
Mateusz Grzegorzek
798a2fb45a [BH-361] Move date to separate directory
Move date to separate directory
2021-05-25 10:21:46 +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
Marcin Smoczyński
ece6a51e5b [EGD-6800] Enable voice transcoding
Add voice transcoding during phone call with two basic transforms:
 - sample rate downscaling by a factor of 2 with a decimator
 - sample rate upscaling by a factor of 2 with an interpolator (no
low-pass filter)

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-05-21 18:12:57 +02:00