diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2018-10-17 15:39:28 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2019-03-20 21:33:48 +0100 |
commit | 98661c1a298cb01c93ae31973a42d152077beae6 (patch) | |
tree | 6d3b9e93bd1827017dea8eae4e89c923ce139ec2 /partition.cpp | |
parent | gpt: Add -Wno-format-security (diff) | |
download | android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.gz android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.bz2 android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.lz android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.xz android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.tar.zst android_bootable_recovery-98661c1a298cb01c93ae31973a42d152077beae6.zip |
Diffstat (limited to 'partition.cpp')
-rw-r--r-- | partition.cpp | 15 |
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> |