summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorcaozhiyuan <cao.zhiyuan@zte.com.cn>2015-06-10 10:46:38 +0200
committercaozhiyuan <cao.zhiyuan@zte.com.cn>2015-06-10 10:46:56 +0200
commitb4effb9807786fdd9bf0ad1b5a117d2fbb044594 (patch)
treebff59146ee8d7114ede0a6c14aa8f700258deff9 /recovery.cpp
parentMerge "uncrypt: Write status when it reboots to factory reset" (diff)
downloadandroid_bootable_recovery-b4effb9807786fdd9bf0ad1b5a117d2fbb044594.tar
android_bootable_recovery-b4effb9807786fdd9bf0ad1b5a117d2fbb044594.tar.gz
android_bootable_recovery-b4effb9807786fdd9bf0ad1b5a117d2fbb044594.tar.bz2
android_bootable_recovery-b4effb9807786fdd9bf0ad1b5a117d2fbb044594.tar.lz
android_bootable_recovery-b4effb9807786fdd9bf0ad1b5a117d2fbb044594.tar.xz
android_bootable_recovery-b4effb9807786fdd9bf0ad1b5a117d2fbb044594.tar.zst
android_bootable_recovery-b4effb9807786fdd9bf0ad1b5a117d2fbb044594.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 76149cd98..a7dc6ed9c 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -772,6 +772,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;
}