summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2019-03-20 21:40:44 +0100
committerGerrit Code Review <gerrit2@gerrit.omnirom.org>2019-03-20 21:40:44 +0100
commit908442dfb5ede6580c79d9c14a8c44b0f30670ac (patch)
treefb6556174678001a93cbb355dc5f2a4789932599 /partition.cpp
parentMTP FFS updates: (diff)
parentUpdate FDE decrypt to pie from CAF (diff)
downloadandroid_bootable_recovery-908442dfb5ede6580c79d9c14a8c44b0f30670ac.tar
android_bootable_recovery-908442dfb5ede6580c79d9c14a8c44b0f30670ac.tar.gz
android_bootable_recovery-908442dfb5ede6580c79d9c14a8c44b0f30670ac.tar.bz2
android_bootable_recovery-908442dfb5ede6580c79d9c14a8c44b0f30670ac.tar.lz
android_bootable_recovery-908442dfb5ede6580c79d9c14a8c44b0f30670ac.tar.xz
android_bootable_recovery-908442dfb5ede6580c79d9c14a8c44b0f30670ac.tar.zst
android_bootable_recovery-908442dfb5ede6580c79d9c14a8c44b0f30670ac.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/partition.cpp b/partition.cpp
index 8e30c3318..b96b969be 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -44,6 +44,14 @@
#include "set_metadata.h"
#include "gui/gui.hpp"
#include "adbbu/libtwadbbu.hpp"
+#ifdef TW_INCLUDE_CRYPTO
+ #include "crypto/fde/cryptfs.h"
+ #ifdef TW_INCLUDE_FBE
+ #include "crypto/ext4crypt/Decrypt.h"
+ #endif
+#else
+ #define CRYPT_FOOTER_OFFSET 0x4000
+#endif
extern "C" {
#include "mtdutils/mtdutils.h"
#include "mtdutils/mounts.h"
@@ -51,15 +59,8 @@ extern "C" {
// #include "make_ext4fs.h" TODO need ifdef for android8
#include <ext4_utils/make_ext4fs.h>
#endif
-
#ifdef TW_INCLUDE_CRYPTO
- #include "crypto/lollipop/cryptfs.h"
#include "gpt/gpt.h"
- #ifdef TW_INCLUDE_FBE
- #include "crypto/ext4crypt/Decrypt.h"
- #endif
-#else
- #define CRYPT_FOOTER_OFFSET 0x4000
#endif
}
#include <selinux/selinux.h>