summaryrefslogtreecommitdiffstats
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-04-16 00:57:17 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-04-16 00:57:17 +0200
commit2148d317cddde3e4b70388c36b3cf39ff868ec78 (patch)
treebe9173eec48b83689ea9c4222e660a6341ece9d3 /recovery_main.cpp
parent[automerger skipped] Merge "Import translations. DO NOT MERGE" (diff)
parentMerge "Move wipe cache|data to libinstall" (diff)
downloadandroid_bootable_recovery-2148d317cddde3e4b70388c36b3cf39ff868ec78.tar
android_bootable_recovery-2148d317cddde3e4b70388c36b3cf39ff868ec78.tar.gz
android_bootable_recovery-2148d317cddde3e4b70388c36b3cf39ff868ec78.tar.bz2
android_bootable_recovery-2148d317cddde3e4b70388c36b3cf39ff868ec78.tar.lz
android_bootable_recovery-2148d317cddde3e4b70388c36b3cf39ff868ec78.tar.xz
android_bootable_recovery-2148d317cddde3e4b70388c36b3cf39ff868ec78.tar.zst
android_bootable_recovery-2148d317cddde3e4b70388c36b3cf39ff868ec78.zip
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 8b4ad5a32..8f3f2a781 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();