OSDN Git Service

Use canonical paths when searching for dex files
authorCalin Juravle <calin@google.com>
Tue, 15 Jul 2014 22:56:47 +0000 (23:56 +0100)
committerCalin Juravle <calin@google.com>
Mon, 4 Aug 2014 16:52:05 +0000 (17:52 +0100)
commit4e1d579d6401fef2dd57b16f8d406e33221a69d9
tree2abc27cbd45cc8a4775df928280c63c1606cff75
parent89c210bf418a152ccabfbbf853ddcce33aea450d
Use canonical paths when searching for dex files

Apps which use the DexPathClassLoader directly may
pass symlinks when trying to load dex files. This
will not work as we use string comparision to find
the dex in an oat file. The CL fixes this issue by
using using dex conical paths for comparisons.

Bug: 15313272

Change-Id: Ic314374b17612c3afbcadec93a88b2515a0aca5e
runtime/class_linker.cc
runtime/dex_file.cc
runtime/dex_file.h
runtime/dex_file_test.cc
runtime/oat_file.cc