Fix thread issue in MboOceController
Current callback is happening on the TelephonyManager thread so it's
causing race conditions. If a CMM is removed at the same time (ie.
secondary CMM when APM happens), then it could get index out of bound
exception causing system server crash.
Fix this issue by posting the callback to the wifi handler thread. This
is needed since the Telephony API being used does not allow passing in
an executor.
Bug: 286082394
Test: atest com.android.server.wifi
Merged-In: Ie8a100ca18d28732092b435c4fb01c9fff606354
Change-Id: Ie8a100ca18d28732092b435c4fb01c9fff606354
3 files changed