summaryrefslogtreecommitdiffstats
path: root/install.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-03-11 22:40:44 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-03-11 22:40:44 +0100
commit650c1c09410e0e4c70719c8a05ca06c9470e8cde (patch)
tree9d48787eda9fdf5cad8aa984041e13f7e8526f64 /install.h
parent[automerger skipped] Merge "DO NOT MERGE - Merge PPRL.190305.001 into master" am: 6c54127462 -s ours am: c4c7abfb41 -s ours (diff)
parentMerge "Create a wrapper class for update package" am: ba9965199a (diff)
downloadandroid_bootable_recovery-650c1c09410e0e4c70719c8a05ca06c9470e8cde.tar
android_bootable_recovery-650c1c09410e0e4c70719c8a05ca06c9470e8cde.tar.gz
android_bootable_recovery-650c1c09410e0e4c70719c8a05ca06c9470e8cde.tar.bz2
android_bootable_recovery-650c1c09410e0e4c70719c8a05ca06c9470e8cde.tar.lz
android_bootable_recovery-650c1c09410e0e4c70719c8a05ca06c9470e8cde.tar.xz
android_bootable_recovery-650c1c09410e0e4c70719c8a05ca06c9470e8cde.tar.zst
android_bootable_recovery-650c1c09410e0e4c70719c8a05ca06c9470e8cde.zip
Diffstat (limited to 'install.h')
-rw-r--r--install.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/install.h b/install.h
index 20a2b23e3..7b6267bf1 100644
--- a/install.h
+++ b/install.h
@@ -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.