diff options
author | xunchang <xunchang@google.com> | 2019-03-05 23:50:51 +0100 |
---|---|---|
committer | xunchang <xunchang@google.com> | 2019-03-07 00:37:28 +0100 |
commit | e0d991ceca246018f4e9ab432ec6403d3372f2a6 (patch) | |
tree | db9850eaa2f7559f9f121c891a75e0a659e943d7 /install.h | |
parent | Merge "Use android::base::Pipe." (diff) | |
download | android_bootable_recovery-e0d991ceca246018f4e9ab432ec6403d3372f2a6.tar android_bootable_recovery-e0d991ceca246018f4e9ab432ec6403d3372f2a6.tar.gz android_bootable_recovery-e0d991ceca246018f4e9ab432ec6403d3372f2a6.tar.bz2 android_bootable_recovery-e0d991ceca246018f4e9ab432ec6403d3372f2a6.tar.lz android_bootable_recovery-e0d991ceca246018f4e9ab432ec6403d3372f2a6.tar.xz android_bootable_recovery-e0d991ceca246018f4e9ab432ec6403d3372f2a6.tar.zst android_bootable_recovery-e0d991ceca246018f4e9ab432ec6403d3372f2a6.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); |