summaryrefslogtreecommitdiffstats
path: root/install.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-04-11 01:55:57 +0200
committerTao Bao <tbao@google.com>2017-04-13 07:46:09 +0200
commit1d866050eba7614109a1edec42529d4d80b0998f (patch)
tree36905d2bd8d5121a9ecb6d87996bc32fa480c009 /install.h
parentMerge "Protect filename_cache with lock in ota fault" (diff)
downloadandroid_bootable_recovery-1d866050eba7614109a1edec42529d4d80b0998f.tar
android_bootable_recovery-1d866050eba7614109a1edec42529d4d80b0998f.tar.gz
android_bootable_recovery-1d866050eba7614109a1edec42529d4d80b0998f.tar.bz2
android_bootable_recovery-1d866050eba7614109a1edec42529d4d80b0998f.tar.lz
android_bootable_recovery-1d866050eba7614109a1edec42529d4d80b0998f.tar.xz
android_bootable_recovery-1d866050eba7614109a1edec42529d4d80b0998f.tar.zst
android_bootable_recovery-1d866050eba7614109a1edec42529d4d80b0998f.zip
Diffstat (limited to '')
-rw-r--r--install.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/install.h b/install.h
index 1ec01e817..68f0a8d47 100644
--- a/install.h
+++ b/install.h
@@ -37,4 +37,8 @@ bool verify_package(const unsigned char* package_data, size_t package_size);
// Return true if succeed, otherwise return false.
bool read_metadata_from_package(ZipArchiveHandle zip, std::string* meta_data);
+// Verifes the compatibility info in a Treble-compatible package. Returns true directly if the
+// entry doesn't exist.
+bool verify_package_compatibility(ZipArchiveHandle package_zip);
+
#endif // RECOVERY_INSTALL_H_