From e0d991ceca246018f4e9ab432ec6403d3372f2a6 Mon Sep 17 00:00:00 2001 From: xunchang Date: Tue, 5 Mar 2019 14:50:51 -0800 Subject: Add a new entry in wipe package to list all wipe partitions This gives us finer control over the partitions to wipe on the host side. Bug: 127492427 Test: unit tests pass, install a wipe package on sailfish Change-Id: I612f8bac743a310f28e365b490ef388b278cfccb --- install.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'install.h') diff --git a/install.h b/install.h index c6db1d1d9..20a2b23e3 100644 --- a/install.h +++ b/install.h @@ -21,6 +21,7 @@ #include #include +#include #include @@ -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* metadata); +// Reads the "recovery.wipe" entry in the zip archive returns a list of partitions to wipe. +std::vector 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); -- cgit v1.2.3