Draft: feature: Notify user to switch to OpenId with Service
Description
Post a notification when device boot and if there is a murena account registered with password, to let the user switch to OpenID implementation.
Screenshots
Technical details
previous MR used a Activity without setContentView(). so no UI for the activity. But it got rejected. I have suggested to use a service instead.
Main issue was that AccountManager.removeAccoutnExplicitely & AccountManager.addAccount doesn't accept a Service as a parameter. It expects an Activity or null. But if null is provide, it just return an intent to start from the service.
However, it's not a good practice to start an Activity from a Service.
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2097
10 commandments of code reviews
Summary by CodeRabbit
Release Notes
-
New Features
- Introduced several new sync adapter services for enhanced account synchronization, including support for Murena and Google accounts.
- Added a new service for re-login using OpenID Connect, improving account management.
- New notifications to inform users about account management and new login options, including prompts to switch to OpenID for a better experience.
-
Bug Fixes
- Improved account management logic to handle synchronization more robustly after device reboots.
-
Documentation
- Added new string resources for notifications to enhance user experience.