commit | bfe030830a8c6fe1492e9df75e35f195477acd46 | [log] [tgz] |
---|---|---|
author | Sergey Nikolaienkov <sergeynv@google.com> | Thu Apr 30 12:00:31 2020 +0200 |
committer | Sergey Nikolaienkov <sergeynv@google.com> | Sun May 03 06:40:46 2020 +0000 |
tree | e9369beb100fa8865823fa5881742a3839cdc6c0 | |
parent | b4e693b69c9dce17e118055c9dd9f99f66950837 [diff] |
Do not crash AudioRecorderServices in onStartCommand() Instead of crashing in BaseAudioRecorderService.onStartCommand() when receiving ACTION_THROW, post a Runnable so that the crash happens out of onStartCommand(). Otherwise, system will try to restart a service. Bug: 154292570 Test: atest TvMicrophoneCaptureIndicatorTest Change-Id: I0763a3a4b76759aa921c17e87035067e0cb5b6c5 Exempt-From-Owner-Approval: only affecting TV