From d9428e3d3e2b94812bb8c2363fc1fde03c906a82 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 13 Dec 2011 16:03:28 -0800 Subject: mount cache before sideloading from external storage Some packages expect to find cache mounted, since it always is for "real" OTAs. Bug: 5739915 Change-Id: I7a7cdd88a60c61e4bc7dc3e1f99956f6487c42e1 --- recovery.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'recovery.cpp') diff --git a/recovery.cpp b/recovery.cpp index a0d96d2aa..da9334aae 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -678,6 +678,10 @@ prompt_and_wait(Device* device) { break; case Device::APPLY_EXT: + // Some packages expect /cache to be mounted (eg, + // standard incremental packages expect to use /cache + // as scratch space). + ensure_path_mounted(CACHE_ROOT); status = update_directory(SDCARD_ROOT, SDCARD_ROOT, &wipe_cache, device); if (status == INSTALL_SUCCESS && wipe_cache) { ui->Print("\n-- Wiping cache (at package request)...\n"); -- cgit v1.2.3