diff options
author | Tao Bao <tbao@google.com> | 2017-05-02 04:10:41 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-05-02 04:10:43 +0200 |
commit | ba365180d3c09e81f584004ec10eaf49af5d6cc4 (patch) | |
tree | 23e765525a5ec937a674cd2745141cc38b43452a /install.h | |
parent | Merge "adb_install: Stop passing RecoveryUI as a parameter." (diff) | |
parent | recovery: Change install_package() to take std::string. (diff) | |
download | android_bootable_recovery-ba365180d3c09e81f584004ec10eaf49af5d6cc4.tar android_bootable_recovery-ba365180d3c09e81f584004ec10eaf49af5d6cc4.tar.gz android_bootable_recovery-ba365180d3c09e81f584004ec10eaf49af5d6cc4.tar.bz2 android_bootable_recovery-ba365180d3c09e81f584004ec10eaf49af5d6cc4.tar.lz android_bootable_recovery-ba365180d3c09e81f584004ec10eaf49af5d6cc4.tar.xz android_bootable_recovery-ba365180d3c09e81f584004ec10eaf49af5d6cc4.tar.zst android_bootable_recovery-ba365180d3c09e81f584004ec10eaf49af5d6cc4.zip |
Diffstat (limited to 'install.h')
-rw-r--r-- | install.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -23,10 +23,9 @@ enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT, INSTALL_NONE, INSTALL_SKIPPED, INSTALL_RETRY }; -// Install the package specified by root_path. If INSTALL_SUCCESS is -// returned and *wipe_cache is true on exit, caller should wipe the -// cache partition. -int install_package(const char* root_path, bool* wipe_cache, const char* install_file, +// Installs the given update package. If INSTALL_SUCCESS is returned and *wipe_cache is true on +// exit, caller should wipe the cache partition. +int install_package(const std::string& package, bool* wipe_cache, const std::string& install_file, bool needs_mount, int retry_count); // Verify the package by ota keys. Return true if the package is verified successfully, @@ -35,9 +34,9 @@ bool verify_package(const unsigned char* package_data, size_t package_size); // Read meta data file of the package, write its content in the string pointed by meta_data. // Return true if succeed, otherwise return false. -bool read_metadata_from_package(ZipArchiveHandle zip, std::string* meta_data); +bool read_metadata_from_package(ZipArchiveHandle zip, std::string* metadata); -// Verifes the compatibility info in a Treble-compatible package. Returns true directly if the +// 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); |