Merge "Allow fixup of apex directories." am: 53c707781a

Original change: https://android-review.googlesource.com/c/platform/development/+/2072700

Change-Id: I100da8b90b03ce3c1e57ef235fb4821ac4f69e70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Christopher Ferris
2022-05-03 19:35:47 +00:00
committed by Automerger Merge Worker

View File

@@ -343,6 +343,15 @@ class TraceConverter:
if os.path.isfile(symbol_dir + lib):
return lib
# Try and rewrite any apex files if not found in symbols.
# For some reason, the directory in symbols does not match
# the path on system.
# The path is com.android.<directory> on device, but
# com.google.android.<directory> in symbols.
new_lib = lib.replace("/com.android.", "/com.google.android.")
if os.path.isfile(symbol_dir + new_lib):
return new_lib
# When using atest, test paths are different between the out/ directory
# and device. Apply fixups.
if not lib.startswith("/data/local/tests/") and not lib.startswith("/data/local/tmp/"):