diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2018-02-15 13:56:50 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2018-02-27 10:40:05 +0000 |
commit | d6f914ea4bd09f2d60db2783f7a3fd93d3ec0afb (patch) | |
tree | 596ef15de83798868d8e6c6cb6cbcb9a45e203e8 /compiler/compiler.h | |
parent | b81dedbf4eae5c5a7e65836d3b6d3b6d541b6fa9 (diff) |
Full-stack integrity: check vdex contents.
For priv-apps, if a vdex on /data has dex code, it must
be because the APK has compressed dex code.
Fall back to APK if not.
For test convenience, update --copy-dex-files to also
take a "always" variant.
bug: 30972906
Test: 677-fsi
Change-Id: I49f0eab46650145316a86de2971a3b9c140bcff7
Diffstat (limited to 'compiler/compiler.h')
-rw-r--r-- | compiler/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/compiler.h b/compiler/compiler.h index b92bff61a9..a17e2b5875 100644 --- a/compiler/compiler.h +++ b/compiler/compiler.h @@ -39,6 +39,12 @@ template<class T> class Handle; class OatWriter; class Thread; +enum class CopyOption { + kNever, + kAlways, + kOnlyIfCompressed +}; + class Compiler { public: enum Kind { |