Commit Graph

147 Commits

Author SHA1 Message Date
Lefucjusz
f585c33b7a [BH-2002] Fix crash when connected with broken USB cable
Fixes of the issues that would cause device
crash when connected with broken USB cable:
* fixed memory leaks in VCOM init and deinit
functions;
* guarded accessing desktopWorker object in
message handlers, as messages are asynchronous
and might arrive after worker has already been
destroyed. Not the cleanest solution, but
does the trick
2024-06-06 14:37:07 +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
Lefucjusz
7a8e35016d [MOS-1026] Add extended logging to Pure's charger driver
* Added extended logging to Pure's charger driver.
* Removed redundant handling of INOKB pin
interrupt - charger is configured to provide
the same interrupt via INTB pin.
* Minor code cleanup.
2023-08-28 10:14:51 +02:00
Lukasz Mastalerz
7ffd1c15a6 [CP-2032] Unplugging the cable during file upload leaves partially sent file
Files not completely sent will be deleted after the USB cable is removed from
device to not leave any partially sent file
2023-08-23 14:38:10 +02:00
Lukasz Mastalerz
f7ad63c951 [BH-1412] Fix services dependencies
Changes in dependecy managment
Replacing state flags with states in ServiceGUI
Unifying some parts of code
2023-08-01 17:22:48 +02:00
Lefucjusz
2620191e73 [MOS-238] Use on-chip hardware TRNG as an entropy source
Use hardware TRNG integrated into RT1051 MCU
as an entropy source for builds complied
for RT1051.
2023-06-19 15:57:05 +02:00
Lefucjusz
783ebcbb6c [MOS-183] Fix RT1051 debug build
Fix of multiple issues that resulted
in debug build failing.
2023-06-14 13:12:50 +02:00
Lefucjusz
ebcd139412 [CP-1962] Add Harmony color detection
* Added serial number based Harmony color
detection.
* Unified serial number handling for both
products.
2023-06-06 14:37:52 +02:00
Lefucjusz
da838b8c8f [BH-1706] Fix inaccessible MTP on Harmony
Fix of the issue that Harmony's MTP
was constantly locked after MOS-686
fix, as the mechanics of unlocking
was not handled for Harmony at all.
2023-06-02 14:47:29 +02:00
rrandomsky
c96dc7dc30 [MOS-686] Fixed MTP availability only after phone unlocked
Fixed file access via MTP even when phone is not unlocked.
Now access is granted when the phone is unlocked by the user entering
a passcode. If the phone is not passcode protected (passcode is nor set)
then access to the files is always possible via MTP.
2023-05-18 15:57:09 +02:00
Mateusz Piesta
205fedb9a6 [BH-1595] USB reset procedure
* Fixed incorrect reset procedure
* Minor refactor
2023-05-16 09:42:34 +02:00
Lukasz Mastalerz
950cf78aa9 [CP-1825] Update while on onboarding screen
Add a parameter to device info about onboarding state.
Update documentation for Pure and Harmony.
2023-03-06 12:07:52 +01:00
Bartosz
9744d39137 [MOS-856] Another approach to MTP path in DeviceInfo
This time it's device-agnostic from purefs paths
2023-01-19 16:41:56 +01:00
Mateusz Piesta
ed806a4566 [MOS-807] Fix MTP root path
Fixed MTP root paths for both Harmony and
Pure due to the MTP implementation
not supporting hierarchical directories.
2023-01-19 16:41:56 +01:00
Bartosz
ae4badbbeb [MOS-803] Further fixes for sync
Fixed paths for sync process
Added timeout for windows in recovery processes
2023-01-19 16:41:56 +01:00
Lefucjusz
178fba165e [MOS-783] First part of new dir structure implementation
Works:
    - generating .img for Pure;
    - Pure boots after flashing new image and
    seems to be working fine;

    Not yet:
    - generating update package;
    - generating image for Harmony;
    - simulator;
    - path-related unit tests fail
    due to paths being hardcoded
    in test scenarios.
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
b50eea9ed9 [CP-1427] Cleanup leftovers after old backup restore implementation
The synchronization mechanism has been freed from the constraints
of the old backup and restore implementation.
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
0867d17242 [CP-1424] Refactor backup and restore endpoints
Redesign of backup and restore endpoints in the
service-desktop to delegate responsibility for
execution of the actual backup and restore process
onto the Updater.
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
d6a63be1fe [CP-1484] Add new mechanism for data synchronization between MOS and MC
This mechanism is similar to the current backup implementation,
but is stripped of irrelevant data that is not required by the
MC to perform data synchronization.
2023-01-19 16:41:56 +01:00
Mateusz Piesta
150f1cfdef [CP-1560] New user directory structure
* New user directory implemented.
* Generate user directory structure at compile
time instead of at runtime(Pure/Harmony).
* Changed MTP root path to /storage
* FileIndexer: Minor refactor
* FileIndexer: Fixed handling incorrect/non-existing
scan directories.
* Updated Repository module to correctly handle
many assets paths.
* MultimediaDB: Minor unit tests refactor and fixed
some issues when using simulator.
* MultimediaDB: Added new queries and unit tests
* Harmony/Relaxation: Updated to correctly
use audio assets from more than one source.
* Harmony/Relaxation: Updated model and list items
provider.
* Harmony/Relaxation: Fixed stack overflow in audio service
2023-01-19 16:41:56 +01:00
Lukasz Mastalerz
9747ce2e58 [CP-1579] Fix correct password inserted during Pure boot is not accepted
Fix the issue when the USB cable connected to the device during boot up
and Center requested a passcode before the device was fully up.
What caused a 'Wrong passcode' message after typing a passcode
via Center.
2023-01-13 15:31:51 +01:00
Lukasz Mastalerz
3b2e1ef675 [CP-1665] Adding an information about device colour to USB descriptor
Getting information about device colour and changing it to number.
Pass information about device colour to usb_stack.
Set a bcdDevice with the corresponding value.
2022-12-02 09:24:10 +01:00
Maciej-Mudita
6ebd1550db [MOS-686] Revert - Fix the accessibility of user files by MTP
This reverts commit 42ca53a732.
2022-09-22 10:20:36 +02:00
Maciej-Mudita
42ca53a732 [MOS-686] Fix the accessibility of user files by MTP
User files accessible via MTP only if phone is unlocked
2022-09-16 09:52:27 +02:00
Mateusz Piesta
5fc2f024db [CP-1560] MTP root path
Make MTP root path configurable.
2022-09-14 12:41:54 +02:00
Maciej-Mudita
829b9b2560 [MOS-74] Fix wrong tethering popup order
Fix for tethering popup when charger is connected
2022-08-30 10:01:28 +02:00
Maciej-Mudita
2de71a0036 [MOS-74] Fix wrong tethering popup order
After connecting to PC with locked phone there were pop-ups
of tethering and unlocking the screen in the wrong order.
2022-08-26 15:02:14 +02:00
Kuba
c31856fb69 [MOS-509] Fixed tethering popup loop
Tethering popup loop is fixed. Also there was unneded USB
configuration on each battery SoC change event.
2022-06-09 13:08:07 +02:00
Pawel Olejniczak
a14da13b16 [CP-1231] Refactor handlers in service desktop
Refactored handlers of ses::messages and
some cleanups in service desktop.
2022-04-29 02:00:38 +02:00
Maciej Gibowicz
3811b1a88d [MOS-371] Fix USB worker initialization
When we start the system without the USB cable connected,
worker USB is initialized, which increases
the power consumption.
2022-04-08 11:05:16 +02:00
Pawel Olejniczak
19c2c03736 [CP-1080] Collect contacts notifications in outbox ep
When contact record is created/updated/removed during
connection with Mudita Center, notification of that
action should be collected in outbox endpoint to
keep contacts data synchronized between MuditaOS
and Mudita Center.
2022-04-01 08:48:27 +02:00
Lucjan Bryndza
abc1c1f218 [MOS-257] Turn off USB drivers when usb is disconnected
Turn off USB device drivers when the usb cable
is disconnected

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2022-03-18 10:03:11 +01:00
Pawel Olejniczak
81a3409340 [MOS-234] Add Abc input mode to contact search
Abc mode was not selected as a default,
because it was not added in this input field.
2022-02-22 13:01:22 +01:00
Przemyslaw Brudny
304fb2c844 [MOS-111] Added missing refresh conditions
Added missing refresh conditions.
2022-02-22 12:49:27 +01:00
Marek Niepieklo
e34c5b693d [CP-1021] Add token field to Device Info API
Generating a device unique id
Returning device token generated from device unique id in DeviceInfo
Added test for device token in test_devic_info.py
2022-02-22 12:25:50 +01: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
Maciej Gibowicz
0bc5db64a6 [EGD-8138] Software closing procedure improved
Release of resources and closing of all unfinished
services and workers.
2022-01-20 17:07:37 +01:00
Alek Rudnik
3e7b94dc05 [EGD-8137] Fix system pre closure procedure
Added some services specific implementations of pre closure procedure.
If one request pre closre, all mesagges (except system ones) recieved
by service are ignored.
2022-01-18 16:28:33 +01:00
Pawel Olejniczak
e40851aeff [EGD-7851] Clean Service Desktop initialization flag
Service Desktop initialization flag was never cleaned,
which caused double deinitialization of Service Desktop.
2021-11-04 15:43:27 +01:00
Alek Rudnik
1666429e07 [EGD-7584] Fix OS factory reset
There was an issue that we were deleting files which were still open.
Added removed of FI .indexed file.
2021-11-02 16:45:04 +01: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
Artur Śleszyński
fb6d036617 [CP-564] Reorganize desktop endpoints
Move desktop endpoint factory to a separate lib to be able to provide
different factories for different products.
2021-09-24 12:11:53 +02:00
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
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
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
Piotr Tański
6ab09d5ffd [EGD-7459] Fixed factory reset process
Fixed the factory reset process.
2021-09-11 16:23:51 +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
Marek Niepieklo
bd1d1967b2 [EGD-7465] Fix double de-initialization of USB
Added flag for Worker-Desktop initialization state
2021-09-06 17:14:16 +02:00