Skip to content
Commit 6eacf1b7 authored by Yasin Kilicdere's avatar Yasin Kilicdere
Browse files

Wait for ACTION_MEDIA_MOUNTED before removing started users.

Removing users immediately after starting them was causing system
crashes on other parts of the Android.

This CL makes sure ACTION_MEDIA_MOUNTED broadcast is received for
those users (who received ACTION_USER_STARTED), before deleting them.

This CL achives that by introducing a BroadcastWaiter helper class and
does some code refactoring to move broadcast waiting related code from
UserLifecycleTests into BroadcastWaiter.

Bug: 233240023
Test: atest MultiUserPerfTests:android.multiuser.UserLifecycleTests --no-bazel-mode
Change-Id: Ic7f3bdcdc700ad24add30b72855914a64cf0dafe
parent d59d17d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment