WifiDiagnostics: Move logcat collection to a worker thread
Diagnostics triggered internal bugreport/alert data capture tries to
take a snapshot of logcat. This can cause the wifi thread to hang for
sometime. Since these are just used for debugging offload this operation
to a new worker thread.
Also,
i) Remove the now unused async channel thread in WifiInjector.
ii) Remove unused captureAlertData() in WifiDiagnostics.
Bug: 161418636
Bug: 160446833
Test: atest com.android.server.wifi
Change-Id: I8b286cd02165a91e06f2ed3bf74eac92df0dd1a2
9 files changed