Fix race conditions causing SIM PIN dialog to not appear on boot
This MR fixes 2 race conditions which causes SIM PIN unlock dialog to not appear on boot:
- Race between Lomiri calling
unlockAllModems()
and lomiri-indicator-network starting up. Fixed by making the service DBus-activatable to make DBus hold the message for us while we starts up. - Race between the
unlockAllModems()
call and oFono/RIL initializing. Fixed by also considering modems which appear after ~30 seconds or so to also be included in the call. This seems to be needed on Volla Phone 22 at least.
Fixes: #97 (closed)
Fixes: ubports/porting/reference-device-ports/android11/fairphone-4/fairphone-fp4#58 (closed)
Fixes: ubports/porting/reference-device-ports/android9/volla-phone/volla-yggdrasil#9 (closed)
Edited by Jami Kettunen