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
This commit is contained in:
parent
4029fb37ad
commit
d9428e3d3e
1 changed files with 4 additions and 0 deletions
|
@ -678,6 +678,10 @@ prompt_and_wait(Device* device) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Device::APPLY_EXT:
|
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);
|
status = update_directory(SDCARD_ROOT, SDCARD_ROOT, &wipe_cache, device);
|
||||||
if (status == INSTALL_SUCCESS && wipe_cache) {
|
if (status == INSTALL_SUCCESS && wipe_cache) {
|
||||||
ui->Print("\n-- Wiping cache (at package request)...\n");
|
ui->Print("\n-- Wiping cache (at package request)...\n");
|
||||||
|
|
Loading…
Reference in a new issue