From 6e8d63857eba5f3d7ef2661e674a258f9d1934f2 Mon Sep 17 00:00:00 2001 From: caozhiyuan Date: Wed, 10 Jun 2015 16:46:38 +0800 Subject: Unmount sdcard if no package file is selected. Change-Id: I12b4f880802135a98dbc11a19e74172a3a5ef921 --- recovery.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'recovery.cpp') diff --git a/recovery.cpp b/recovery.cpp index 24533be..d5b0157 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; } -- cgit v1.1