summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Nicholas Ambur <nambur@google.com> 2023-05-02 18:56:17 +0000
committer Nicholas Ambur <nambur@google.com> 2023-05-10 05:40:12 +0000
commitd06ad212c80ba371d1174997f6037cc4db6733b1 (patch)
tree5cef9c912fcefcf51c58b9d26427ff976e7dfff0 /libs/androidfw/FileStream.cpp
parent619bfd9214ec3cf86cb0aa783a57b12247d1bc2a (diff)
send onFailure callback for asyncronous exceptions
A ChangeId is added and only applied for clients with target SDK UDC and above. If the ChangeId is enabled, we will still mark the internal availability state as STATE_ERROR, but we will send onFailure callback instead. This allows for the client to get the full exception message detail. If the ChangeId is not enabled, then STATE_ERROR is still propagated to the client via onAvailabilityChanged. One other update here is that we are catching all exceptions in the async task. This resolves the case where uncaught exceptions would crash the client's VoiceInteractionService process. Test: Manually throw an exception from system service to verify callback Test: atest CtsVoiceInteractionTestCases Fixes: 280471513 Bug: 272147641 Change-Id: I316e5f545eed88e490bab2e0a052c051cc0cc94e
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions