diff options
author | Doug Zongker <dougz@android.com> | 2011-10-19 10:51:12 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-10-19 11:26:18 -0700 |
commit | d0181b8fcdac761afec252151a8bfda116916e96 (patch) | |
tree | c878f12af3461775fe971b1a935783d08c6e9d62 /install.h | |
parent | 441031dadc4f5e8c1487468229781702bc08fb14 (diff) | |
download | bootable_recovery-d0181b8fcdac761afec252151a8bfda116916e96.zip bootable_recovery-d0181b8fcdac761afec252151a8bfda116916e96.tar.gz bootable_recovery-d0181b8fcdac761afec252151a8bfda116916e96.tar.bz2 |
allow recovery packages to wipe cache
updater now has a function "wipe_cache();" which causes recovery to
wipe the cache partition after the successful installation of the
package. Move log copying around a bit so logs and the last_install
flag file are copied to cache after it's wiped.
Bug: 5314244
Change-Id: Id35a9eb6dcd626c8f3a3a0076074f462ed3d44bd
Diffstat (limited to 'install.h')
-rw-r--r-- | install.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -20,6 +20,10 @@ #include "common.h" enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT }; -int install_package(const char *root_path); +// 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, int* wipe_cache, + const char* install_file); #endif // RECOVERY_INSTALL_H_ |