summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptfs_hw.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/cryptfs_hw.c b/cryptfs_hw.c
index ebf9381..72d0133 100644
--- a/cryptfs_hw.c
+++ b/cryptfs_hw.c
@@ -413,6 +413,13 @@ int should_use_keymaster()
{
/*
* HW FDE key should be tied to keymaster
+ * if version is above 0.3. this is to
+ * support msm8909 go target.
*/
- return 1;
+ int rc = 1;
+ if (get_keymaster_version() == KEYMASTER_MODULE_API_VERSION_0_3) {
+ SLOGI("Keymaster version is 0.3");
+ rc = 0;
+ }
+ return rc;
}