recovery: Don't print mount errors when checking for encryption
Change-Id: Ibd57b8bdb9c942edb16fa5b9e4664ed66864b180
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 73f294a..c105e71 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -198,6 +198,7 @@
}
static void copy_userdata_files() {
+ android::base::SetLogger(android::base::StdioLogger);
if (ensure_path_mounted("/data") == 0) {
if (access(adb_keys_root, F_OK) != 0) {
if (access(adb_keys_data, R_OK) == 0) {
@@ -209,6 +210,7 @@
}
ensure_path_unmounted("/data");
}
+ android::base::SetLogger(UiLogger);
}
// Sets the usb config to 'state'.