Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Draft: unpersisted edrive: replace InitializerService by Worker

Description

Non persisted app cannot run background services. So according to Jonathan's suggestion. We are replacing services by workers. This MR, handle only InitializerService Jobs

Screenshots

Technical details

It requires to setup a Broadcast receivers that will be triggered by accountManager instead of initializerService. So:

  • new broadcast receiver
  • manifest update to remove service, add receiver and required new permission for the receiver.
  • new worker than will do InitializerService.
  • Create new "Account package" which contains the new receiver & new worker. Some other class related to account could be move in it later

Right now, it is more an exploratory MR, to see if without persisted flag, eDrive can send crash from worker to sentry. So, some design questions are pending (comment added in the code for that)

Tests

Issues

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Edited by Vincent Bourgmayer

Merge request reports

Loading