FsCrypt update: support fscrypt policies v1 and v2
This patchset introduces support decryption for Android 11.
In this update we deprecate ext4crypt. To specify the
policy version to use, use TW_USE_FSCRYPT_POLICY := 1 or
TW_USE_FSCRYPT_POLICY := 2. By default policy version will
be set to 2 if this variable is omitted.
Change-Id: I62a29c1bef36c259ec4b11259f71be613d20a112
diff --git a/partitions.hpp b/partitions.hpp
index ef70f37..a3c4528 100755
--- a/partitions.hpp
+++ b/partitions.hpp
@@ -26,7 +26,9 @@
#include "exclude.hpp"
#include "tw_atomic.hpp"
#include "progresstracking.hpp"
-#include "crypto/fscrypt/fscrypt_policy.h"
+#ifdef TW_INCLUDE_CRYPTO
+#include "fscrypt_policy.h"
+#endif
#include "twrpApex.hpp"
#define MAX_FSTAB_LINE_LENGTH 2048