diff options
author | Tianjie Xu <xunchang@google.com> | 2019-03-11 22:10:45 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-03-11 22:10:45 +0100 |
commit | 5f0c7e0356290a585a5a4b03d0a74beeeb5913f3 (patch) | |
tree | 786208bfa07ce110fcaffd9ad576c4815ca54380 /install.h | |
parent | [automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master" am: 6c54127462 -s ours (diff) | |
parent | Merge "Create a wrapper class for update package" (diff) | |
download | android_bootable_recovery-5f0c7e0356290a585a5a4b03d0a74beeeb5913f3.tar android_bootable_recovery-5f0c7e0356290a585a5a4b03d0a74beeeb5913f3.tar.gz android_bootable_recovery-5f0c7e0356290a585a5a4b03d0a74beeeb5913f3.tar.bz2 android_bootable_recovery-5f0c7e0356290a585a5a4b03d0a74beeeb5913f3.tar.lz android_bootable_recovery-5f0c7e0356290a585a5a4b03d0a74beeeb5913f3.tar.xz android_bootable_recovery-5f0c7e0356290a585a5a4b03d0a74beeeb5913f3.tar.zst android_bootable_recovery-5f0c7e0356290a585a5a4b03d0a74beeeb5913f3.zip |
Diffstat (limited to 'install.h')
-rw-r--r-- | install.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -25,6 +25,8 @@ #include <ziparchive/zip_archive.h> +#include "package.h" + enum InstallResult { INSTALL_SUCCESS, INSTALL_ERROR, @@ -46,9 +48,9 @@ enum class OtaType { int install_package(const std::string& package, bool* wipe_cache, bool needs_mount, int retry_count); -// Verify the package by ota keys. Return true if the package is verified successfully, -// otherwise return false. -bool verify_package(const unsigned char* package_data, size_t package_size); +// Verifies the package by ota keys. Returns true if the package is verified successfully, +// otherwise returns false. +bool verify_package(Package* package); // Reads meta data file of the package; parses each line in the format "key=value"; and writes the // result to |metadata|. Return true if succeed, otherwise return false. |