Create canonical name -> file name symlink in the symbol directory
We have two runtime APEX files: com.android.runtime.debug.apex and
com.android.runtime.release.apex. For a device, only either of them is
selected and mounted on the canonical path /apex/com.android.runtime.
The symbol files for the two APEX modules are installed to
However, since the APEXes are mounted to /apex/com.android.runtime
(without .debug or .release suffix), the stack trace for the files shows
/apex/com.android.runtime path, not the .release or .debug path. As a
result, a tool like 'stack' fails to find the symbols for the libs in
the runtime APEX.
This problem is solved by creating a symlink com.android.runtime in the
symbol directory ($(TARGET_OUT_UNSTRIPPED)) that points either
com.android.runtime.debug or com.android.runtime.release depending on
which variant of the runtime APEX is selected for the device.
Test: m and inspect that symbol files exist under
1 file changed