diff options
author | 2018-01-19 18:04:46 -0800 | |
---|---|---|
committer | 2018-01-25 13:12:14 -0800 | |
commit | 754b7575e65f0e0cc8b080b268378daf54881c65 (patch) | |
tree | 335b707c603aebed1db283f8af7f0341ed8d35c0 /patchoat/patchoat.h | |
parent | d78ca5213b780ca3165acb68e44f88f639e8ca45 (diff) |
patchoat: add ability to verify relocated .art files
Patchoat can verify that a relocated .art file hasn't been modified
after generation using the --verify flag.
Test: adb shell /system/bin/patchoat --verify \
--input-image-location=/system/framework/boot.art \
--output-image-file=/data/dalvik-cache/arm64/system@framework@boot.art \
--instruction-set=arm64
Bug: 66697305
Change-Id: If6ea02a0527381c520078cd6f3ae2c275a8a8ab1
Diffstat (limited to 'patchoat/patchoat.h')
-rw-r--r-- | patchoat/patchoat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/patchoat/patchoat.h b/patchoat/patchoat.h index 1033a2e5e1..ba59d570a7 100644 --- a/patchoat/patchoat.h +++ b/patchoat/patchoat.h @@ -53,6 +53,10 @@ class PatchOat { const std::string& output_image_relocation_directory, InstructionSet isa, TimingLogger* timings); + static bool Verify(const std::string& image_location, + const std::string& output_image_filename, + InstructionSet isa, + TimingLogger* timings); // Generates a patch which can be used to efficiently relocate the original file or to check that // a relocated file matches the original. The patch is generated from the difference of the |