aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker2011-10-19 12:51:12 -0500
committerDoug Zongker2011-10-19 13:26:18 -0500
commitd0181b8fcdac761afec252151a8bfda116916e96 (patch)
treec878f12af3461775fe971b1a935783d08c6e9d62 /install.h
parent441031dadc4f5e8c1487468229781702bc08fb14 (diff)
downloadplatform-bootable-recovery-d0181b8fcdac761afec252151a8bfda116916e96.tar.gz
platform-bootable-recovery-d0181b8fcdac761afec252151a8bfda116916e96.tar.xz
platform-bootable-recovery-d0181b8fcdac761afec252151a8bfda116916e96.zip
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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/install.h b/install.h
index a7ebc090..5ebe1604 100644
--- a/install.h
+++ b/install.h
@@ -20,6 +20,10 @@
20#include "common.h" 20#include "common.h"
21 21
22enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT }; 22enum { INSTALL_SUCCESS, INSTALL_ERROR, INSTALL_CORRUPT };
23int install_package(const char *root_path); 23// Install the package specified by root_path. If INSTALL_SUCCESS is
24// returned and *wipe_cache is true on exit, caller should wipe the
25// cache partition.
26int install_package(const char *root_path, int* wipe_cache,
27 const char* install_file);
24 28
25#endif // RECOVERY_INSTALL_H_ 29#endif // RECOVERY_INSTALL_H_