WifiService: Trigger boot completed from SystemService callback
We currently listen to user unlock/switch events via the SystemService
callbacks. But, we use system broadcast to listen for boot completed
event. This introduces raciness in the handling of these 2 events
exposed by the user change sequence in android auto.
Bug: 129434351
Test: Verified that the boot completed event from system service is
received earlier than user unlock always.
Test: Ensured that the device persists the saved networks on reboot.
Test: Will send the patch to Android auto team to ensure that their
issue is resolved.
Test: atest com.android.server.wifi
Test: Will send for full regression.
Change-Id: Ic357e7c9a4777364d04541d9259958bf7d5ee7f8
4 files changed