OSDN Git Service

OatFileAssistant: look at vdex file for IsDexOptNeeded
authorRichard Uhler <ruhler@google.com>
Wed, 18 Jan 2017 08:39:23 +0000 (08:39 +0000)
committerRichard Uhler <ruhler@google.com>
Mon, 23 Jan 2017 13:17:44 +0000 (13:17 +0000)
commit402089a27b25a9d1112c49189eb83a567719188f
tree8034d49882e6facaeace386478369d0aa9d4e243
parenta8b4390a3b817a455b0abdf575922fea6182170d
OatFileAssistant: look at vdex file for IsDexOptNeeded

Even if the oat file cannot be opened, there may be a vdex file that
contains valid dex code. The oat file assistant should take this into
account when determining the dexopt status.

Bug: 34339100
Test: oat_file_assistant_test, with new tests added.
Test: install an app, dumpsys package to show app status,
      delete app's oat file, dumpsys package to show status as vdex only,
      cmd package compile -r install app, verify in log that input vdex fd is
      provided to dex2oat.

Change-Id: Iab43e617a899773b318d61adeb117ed2cec085da
runtime/oat_file_assistant.cc
runtime/oat_file_assistant.h
runtime/oat_file_assistant_test.cc