Merge "Add support for soname display in apk."

am: 3a5a1cf901

Change-Id: I44dac315c8da964b0c4b7619e4a76297d5ac87b2
This commit is contained in:
Christopher Ferris
2019-03-14 08:54:27 -07:00
committed by android-build-merger

View File

@@ -364,8 +364,21 @@ class TraceConverter:
# a shared so that was loaded directly out of it. In that case,
# extract the shared library and the name of the shared library.
lib = None
if area.endswith(".apk") and so_offset:
lib_name, lib = self.GetLibFromApk(area, so_offset)
# The format of the map name:
# Some.apk!libshared.so
# or
# Some.apk
if so_offset:
# If it ends in apk, we are done.
apk = None
if area.endswith(".apk"):
apk = area
else:
index = area.rfind(".apk!")
if index != -1:
apk = area[0:index + 4]
if not apk:
lib_name, lib = self.GetLibFromApk(apk, so_offset)
if not lib:
lib = area
lib_name = None