mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-10 06:36:02 +00:00
As of Android Q, the android_set_abort_message() function copies the abort message into a mapping with a specific name that starts with a magic number. This makes it possible for Crashpad to collect the abort message by looking for the mapping with this name in procmaps and checking for the magic number. The abort message is stored in a process annotation named "abort_message". Test: No regressions in build/run_tests.py on devices running P and Q Test: Patched into Chromium; manually verified that HWASAN crash report appears in minidump Bug: crashpad:287 Change-Id: I23c4d9e11015c84341de2d2e47e38a1eec508a36 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1544875 Commit-Queue: Peter Collingbourne <pcc@chromium.org> Reviewed-by: Joshua Peraza <jperaza@chromium.org>