summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-06-11 01:52:11 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-06-11 01:52:12 +0200
commit22ccc87a7dffd089662a111aa96127b3476d65fc (patch)
treea411dbc27342a41b214becad56bf645018daabf0 /recovery.cpp
parentMerge "Split WipeData into PreWipeData and PostWipeData." (diff)
parentUnmount sdcard if no package file is selected. (diff)
downloadandroid_bootable_recovery-22ccc87a7dffd089662a111aa96127b3476d65fc.tar
android_bootable_recovery-22ccc87a7dffd089662a111aa96127b3476d65fc.tar.gz
android_bootable_recovery-22ccc87a7dffd089662a111aa96127b3476d65fc.tar.bz2
android_bootable_recovery-22ccc87a7dffd089662a111aa96127b3476d65fc.tar.lz
android_bootable_recovery-22ccc87a7dffd089662a111aa96127b3476d65fc.tar.xz
android_bootable_recovery-22ccc87a7dffd089662a111aa96127b3476d65fc.tar.zst
android_bootable_recovery-22ccc87a7dffd089662a111aa96127b3476d65fc.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 6cda10c21..83ca5812d 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -767,6 +767,7 @@ static int apply_from_sdcard(Device* device, bool* wipe_cache) {
char* path = browse_directory(SDCARD_ROOT, device);
if (path == NULL) {
ui->Print("\n-- No package file selected.\n");
+ ensure_path_unmounted(SDCARD_ROOT);
return INSTALL_ERROR;
}