OSDN Git Service

Adjust the validation code for secondary dex paths
authorCalin Juravle <calin@google.com>
Mon, 11 Sep 2017 18:50:36 +0000 (11:50 -0700)
committerCalin Juravle <calin@google.com>
Wed, 13 Sep 2017 15:46:43 +0000 (08:46 -0700)
commit9cd45602a89b2af5d4b8086cbb806b64ff6b78a4
tree27206a008f64130f35b51089702f0e607fb16182
parenta2639d47ee2b0706c8714f9af55177a6b8940cb2
Adjust the validation code for secondary dex paths

Do not validate the package path when reconciling secondary dex files. If
the file does not exist we cannot resolve the system sym links (e.g.
/data/user/0 -> /data/data) and the validation will fail leaving oat files
behind.

Bug: 64460009
Test: adb shell cmd package reconcile-secondary-dex-files
com.google.android.googlequicksearchbox (after removing some files)
      adb shell cmd package compile -m speed --secondary-dex
com.google.android.googlequicksearchbox
      adb shell /data/nativetest64/installd_utils_test/installd_utils_test

Change-Id: I9734ad18a579d44088180326661d8cf8288e90be
cmds/installd/dexopt.cpp
cmds/installd/utils.cpp
cmds/installd/utils.h