Draft: unpersisted edrive: replace InitializerService by Worker
requested to merge 299-task-1432-InitializerService-into-worker into 299-task-1432-remove-persistent-flag
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
-
https://gitlab.e.foundation/e/os/backlog/-/issues/1398 (is also partly related to:)
10 commandments of code reviews
Edited by Vincent Bourgmayer