summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Android.bp3
-rw-r--r--cryptfs_hw.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 12e2aa6..ea6cbb0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -18,6 +18,9 @@ cc_library_shared {
product_variables: {
lineage: {
+ should_skip_waiting_for_qsee: {
+ cflags: ["-DSKIP_WAITING_FOR_QSEE"],
+ },
supports_legacy_hw_fde: {
cflags: ["-DLEGACY_HW_DISK_ENCRYPTION"],
},
diff --git a/cryptfs_hw.c b/cryptfs_hw.c
index 36d5d48..42bf4c4 100644
--- a/cryptfs_hw.c
+++ b/cryptfs_hw.c
@@ -97,6 +97,12 @@ static inline void* secure_memset(void* v, int c , size_t n)
}
#ifdef LEGACY_HW_DISK_ENCRYPTION
+#ifdef SKIP_WAITING_FOR_QSEE
+static int is_qseecom_up()
+{
+ return 1;
+}
+#else
static int is_qseecom_up()
{
int i = 0;
@@ -110,6 +116,7 @@ static int is_qseecom_up()
}
return 0;
}
+#endif
static int load_qseecom_library()
{