DO NOT MERGE: Move load & restore logs to logging.cpp

We perform these steps to perserve the recovery logs when wiping
/cache partition. Move them to logging.cpp to keep the actually
EraseVolume function concise.

Bug: 130166585
Test: unit tests pass, mount cache and check last log after cache
Change-Id: Idc52833817a446f3a0148a3dd2112f911c9ef48d
(cherry picked from commit 2239b9e4dd)
This commit is contained in:
xunchang
2019-04-15 15:24:24 -07:00
committed by Tianjie Xu
parent 388d253b9c
commit cd780b456f
5 changed files with 109 additions and 84 deletions
-2
View File
@@ -23,8 +23,6 @@
struct selabel_handle;
void SetWipeDataSehandle(selabel_handle* handle);
// Returns true on success.
bool WipeCache(RecoveryUI* ui, const std::function<bool()>& confirm);