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>
Tue, 14 Nov 2017 01:37:24 +0000 (17:37 -0800)
commitd35451d76b6bdc960881f1325f8b06c2d41e287e
treee2633031b3dfebe7b0fe4c4c93e382ad5fae76f4
parent62893396bdbea6986c5a468d9a854cd58f34ce1e
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

(cherry picked from commit c119c5a8c1d8e3ba6c90300a82d2086273d0d3f3)

Merged-In: I2362f32a679324d4bc1e8a0fe83b5b17ee523e7a
Change-Id: Ic9c38a920c5eef85f26ac33f2b8a37c3694bfbad
core/java/android/app/DexLoadReporter.java