summaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorErfan Abdi <erfangplus@gmail.com>2019-03-08 18:18:12 +0200
committerDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2019-06-16 12:46:47 +0200
commit90a5c1b81b8805679ce122513b6a56b7fd2105f6 (patch)
treee09ebc3c992de5f16cb74ad3840fd20e02295152 /Android.bp
parent1e56c85dd8673d63897f65ef8fe9369bc8d1b313 (diff)
downloadandroid_vendor_qcom_opensource_cryptfs_hw-lineage-16.0.tar.gz
android_vendor_qcom_opensource_cryptfs_hw-lineage-16.0.tar.bz2
android_vendor_qcom_opensource_cryptfs_hw-lineage-16.0.zip
cryptfs_hw: Support devices use metadata as keylineage-16.0
* This fixes FDE devices which uses metadata partition as encryption key. Errors: > Logcat: E Cryptfs_hw: Error::ioctl call to create encryption key for usage 1 failed with ret = -1, errno = 14 > Dmesg: scm_call failed: func id 0x72000504, ret: -2, syscall returns: 0xfffffffffffffffc, 0x0, 0x0 QSEECOM: __qseecom_set_clear_ce_key: scm call to set QSEOS_PIPE_ENC key failed : -22 QSEECOM: qseecom_wipe_key: Failed to wipe key: pipe 2, ce 0: -14 QSEECOM: qseecom_ioctl: failed to wipe encryption key: -14 Test: Boot griffin with encrypted data Signed-off-by: Erfan Abdi <erfangplus@gmail.com> Change-Id: Id7a6474fe7fe46e0d4e4ebb3b24e1ba940971df4
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index ea6cbb0..8bddd86 100644
--- a/Android.bp
+++ b/Android.bp
@@ -24,6 +24,9 @@ cc_library_shared {
supports_legacy_hw_fde: {
cflags: ["-DLEGACY_HW_DISK_ENCRYPTION"],
},
+ uses_metadata_as_fde_key: {
+ cflags: ["-DUSE_METADATA_FOR_KEY"],
+ },
},
},