summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Mitch Phillips <mitchp@google.com> 2023-04-03 16:21:42 -0700
committer Mitch Phillips <mitchp@google.com> 2023-04-10 11:43:32 -0700
commit4daeb23db804f4eb2c7025e480b9578959706210 (patch)
treed4d8d4c7b54c176f0430076440c319982566f6d7 /api/api_test.go
parentf62a0533d7b9c586b42d38db5e786c6f5b6fad3b (diff)
[GWP-ASan] Ensure recoverable crashes show up in AppExitInfo.
ActivityManager's getHistoricalProcessExitReasons API is important for allowing an app to access its own native crashes. For that reason, it should support GWP-ASan recoverable crashes. Currently, because recoverable crashes don't actually cause an app crash, the tombstones are not available. The other problem with just naively shoving them into the AppExitInfoTracker::AppExitInfoContainer::mInfos is that it's an API that only supports a single exitinfo for each pid. So, we'd end up causing a recoverable crash, then the app would be closed regularly, and that would overwrite the recoverable crash. So, this patch adds a separate stash for storing the recoverable crashes. Bug: 270720163 Test: atest CtsGwpAsanTestCases Change-Id: I9418fa9e40bdca03516da2b387c13d59fbdf182b
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions