diff options
author | Tianjie Xu <xunchang@google.com> | 2019-03-07 23:14:43 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-07 23:14:43 +0100 |
commit | a8969842ae871f804e98669bea815fc02ff35436 (patch) | |
tree | 7eb853f8a2f34e16213c97a5951a52fb9f068027 /install.h | |
parent | Merge "Use O_CLOEXEC at a few places." (diff) | |
parent | Add a new entry in wipe package to list all wipe partitions (diff) | |
download | android_bootable_recovery-a8969842ae871f804e98669bea815fc02ff35436.tar android_bootable_recovery-a8969842ae871f804e98669bea815fc02ff35436.tar.gz android_bootable_recovery-a8969842ae871f804e98669bea815fc02ff35436.tar.bz2 android_bootable_recovery-a8969842ae871f804e98669bea815fc02ff35436.tar.lz android_bootable_recovery-a8969842ae871f804e98669bea815fc02ff35436.tar.xz android_bootable_recovery-a8969842ae871f804e98669bea815fc02ff35436.tar.zst android_bootable_recovery-a8969842ae871f804e98669bea815fc02ff35436.zip |
Diffstat (limited to 'install.h')
-rw-r--r-- | install.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -21,6 +21,7 @@ #include <map> #include <string> +#include <vector> #include <ziparchive/zip_archive.h> @@ -53,6 +54,9 @@ bool verify_package(const unsigned char* package_data, size_t package_size); // result to |metadata|. Return true if succeed, otherwise return false. bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata); +// Reads the "recovery.wipe" entry in the zip archive returns a list of partitions to wipe. +std::vector<std::string> GetWipePartitionList(const std::string& wipe_package); + // Verifies the compatibility info in a Treble-compatible package. Returns true directly if the // entry doesn't exist. bool verify_package_compatibility(ZipArchiveHandle package_zip); |