OSDN Git Service

Create secondary dex profiles relative to the provided dex path
authorCalin Juravle <calin@google.com>
Tue, 5 Sep 2017 00:32:23 +0000 (17:32 -0700)
committerCalin Juravle <calin@google.com>
Mon, 6 Nov 2017 21:27:51 +0000 (13:27 -0800)
commit07e5fc46ea5a8b178d28e57a10e1c77369d5041c
treee861c9bfa73b254a493bdde9570abce3028c922c
parent4c10ba499d60f88d24be147beee8ea321a07b34c
Create secondary dex profiles relative to the provided dex path

We previously used the realpath to simplify the validation and processing
in installd. However it ended up making things more complicated when
cleaning up the profiles, especially because of /data/user/0 symlinks to
/data/data/.

Instead of using the realpath of the dex file to compute the profile
location, use the file path as given. This makes things consistent with
DexManager registration and allows for easier dex file reconciliation in
the presence of symlinks.

Bug: 64460009
Test: manual
Change-Id: I2362f32a679324d4bc1e8a0fe83b5b17ee523e7a
core/java/android/app/DexLoadReporter.java