OSDN Git Service

Ignore image checksum for ExtractOnly oat files
authorDavid Brazdil <dbrazdil@google.com>
Thu, 28 Jan 2016 15:05:49 +0000 (15:05 +0000)
committerDavid Brazdil <dbrazdil@google.com>
Mon, 1 Feb 2016 15:09:56 +0000 (15:09 +0000)
commitce4b0ba4d762775a86b3529ac76cb89199c0cc1e
tree1904ccccb00244a3f948ccf3f95fc40c95b9ff3e
parent99b4d43c7b2c81a0a4712578016efdfc65cdc21b
Ignore image checksum for ExtractOnly oat files

Oat files compiled with --compiler-filter=verify-at-runtime contain
no compiled code and therefore are independent of the boot image.
This patch stores an ExtractOnly flag in the oat header and skips
the image checksum test if the flag is set, rendering the oat file
up to date even after OTAs.

Bug: 26813999

Change-Id: I25291d5b49d9e9d0018844e957a2dc88ef6bdc27
compiler/driver/compiler_options.h
dex2oat/dex2oat.cc
runtime/oat.cc
runtime/oat.h
runtime/oat_file.cc
runtime/oat_file.h
runtime/oat_file_assistant.cc
runtime/oat_file_assistant_test.cc