diff options
| author | 2024-05-14 11:55:36 +0100 | |
|---|---|---|
| committer | 2024-05-14 11:55:36 +0100 | |
| commit | 93f1ed2a0aa1e332a29feb1ea90a788097f85f60 (patch) | |
| tree | f1941e3c05e23e8c2aedebd0e2c8a6a2121c0b66 /libs/androidfw/StringPool.cpp | |
| parent | 55f19502fe62a5b76c0236b2c8df69d5debbb7b6 (diff) | |
Catch and ignore `IllegalArgumentException` thrown by `unbindService`
When `TransportConnection` handles `onServiceConnected` or
`onBindingDied` it calls `Context.unbindService`. In a very small number
of cases this fails because the connection is not (or no longer?)
registered. When this happens, the system server crashes causing the
device to reboot. We don't really care if the service is not registered
when we try to unbind it, so we just catch and ignore the exception to
avoid crashing the system server.
Bug: 335547110
Test: atest TransportConnectionTest.java
Change-Id: Ic7f34eacd1f621c42a68128ef992043dba6808f1
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions