summaryrefslogtreecommitdiff
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-04-15 22:34:19 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-04-15 22:34:19 +0000
commit9fc764f1f0e6c4c581a5236d7558d97a1f90b38e (patch)
treec1ebcae66a7fbf7aaa79a6c1d894f2fa708ac441 /recovery_main.cpp
parent0b172415fdc13fb50108abcd11871aba58e8425c (diff)
parent316e9717461890dd319dc370970069fe4532a561 (diff)
Merge "Move wipe cache|data to libinstall"
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 8b4ad5a3..8f3f2a78 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -50,7 +50,8 @@
#include "common.h"
#include "fastboot/fastboot.h"
-#include "logging.h"
+#include "install/wipe_data.h"
+#include "otautil/logging.h"
#include "otautil/paths.h"
#include "otautil/roots.h"
#include "otautil/sysutil.h"
@@ -434,6 +435,8 @@ int main(int argc, char** argv) {
ui->Print("Warning: No file_contexts\n");
}
+ SetWipeDataSehandle(sehandle);
+
std::atomic<Device::BuiltinAction> action;
std::thread listener_thread(ListenRecoverySocket, ui, std::ref(action));
listener_thread.detach();