summaryrefslogtreecommitdiffstats
path: root/install/include/install/install.h
diff options
context:
space:
mode:
authorxunchang <xunchang@google.com>2019-04-13 01:22:15 +0200
committerxunchang <xunchang@google.com>2019-04-15 21:22:11 +0200
commit316e9717461890dd319dc370970069fe4532a561 (patch)
treebe9173eec48b83689ea9c4222e660a6341ece9d3 /install/include/install/install.h
parentMerge "Add socket communication between recovery and minadbd" (diff)
downloadandroid_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.gz
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.bz2
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.lz
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.xz
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.tar.zst
android_bootable_recovery-316e9717461890dd319dc370970069fe4532a561.zip
Diffstat (limited to 'install/include/install/install.h')
-rw-r--r--install/include/install/install.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/install/include/install/install.h b/install/include/install/install.h
index 74fb3d170..1e41b4843 100644
--- a/install/include/install/install.h
+++ b/install/include/install/install.h
@@ -43,10 +43,11 @@ enum class OtaType {
BRICK,
};
-// 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, bool needs_mount, int retry_count,
- RecoveryUI* ui);
+// Installs the given update package. This function should also wipe the cache partition after a
+// successful installation if |should_wipe_cache| is true or an updater command asks to wipe the
+// cache.
+int install_package(const std::string& package, bool should_wipe_cache, bool needs_mount,
+ int retry_count, RecoveryUI* ui);
// Verifies the package by ota keys. Returns true if the package is verified successfully,
// otherwise returns false.