WifiConfigManager: Handle user switch before store load

On most devices, user 0 (system user) is fully started before allowing
a user switch. For the typical use case, the order of events expected:
BOOT_COMPLETED, USER_UNLOCK(ID=0), USER_SWITCH(ID=user_x),
USER_UNLOCK(ID=user_x).

On Android auto, another user (ID=10) is first started. So, the order of
events there: USER_SWITCH(ID=10), BOOT_COMPLETED, USER_UNLOCK(ID=10).

Make changes in WifiConfigManager to handle this sequence.

Bug: 112432082
Test: Unit tests
Test: Verified that wifi connection works on Android auto after the
change.
Change-Id: I5770790582dd9485a7b74bb5d3836820b512f3fa
2 files changed
tree: 6c8c8a50e222cd4fdde119cc09f02b3bb7756b44
  1. service/
  2. PREUPLOAD.cfg