Android: Refactor native stack decoding for bundles
This change does the following: - Allow disambiguation of which APK(s) should be used for decoding by adding an APK directory override argument to stack.py. The alternate directory is also handy if using bundles, where the APK files need to be generated from an .aab file. - Augment Clank binary wrapper scripts with a "stack" command, effectively acting as a stack.py wrapper that points stack decoding at only the relevant APK files (as opposed to a typical stack.py invocation, forced to look at out/../apks/, which may contain many APKs). - For lines in the trace that already have symbols, but cannot be decoded by the script (ie. lines from on-device Android runtime libraries), don't print <UNKNOWN> - fall back to the symbol given in logcat instead. Bug: 1015159 Change-Id: Ib65b82f3a6d85e79f61c8381b3aa1828f7214a22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1903926Reviewed-by:Andrew Grieve <agrieve@chromium.org> Commit-Queue: Christopher Grant <cjgrant@chromium.org> Cr-Commit-Position: refs/heads/master@{#714638}
Showing
Please register or sign in to comment