summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrahmaji K <bkomma@codeaurora.org>2016-03-07 05:43:17 (GMT)
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-02-12 12:45:40 (GMT)
commit3494750761d3d867ea01144ba4c7fb7e4138c55b (patch)
tree1b017f3054cccd4a53e4b381eed2f1540db7640f
parentf09ae181c55ab6cf1a3af4be11031a27e0fe3915 (diff)
downloadandroid_vendor_qcom_opensource_cryptfs_hw-3494750761d3d867ea01144ba4c7fb7e4138c55b.zip
android_vendor_qcom_opensource_cryptfs_hw-3494750761d3d867ea01144ba4c7fb7e4138c55b.tar.gz
android_vendor_qcom_opensource_cryptfs_hw-3494750761d3d867ea01144ba4c7fb7e4138c55b.tar.bz2
cryptfs_hw: update the listener property with keymaster property
Replace the sys.listener.registered with sys.keymaster.loaded because the keymaster loading is the final operation done by the qseecomd and key operations should wait till the qseecomd initialization completes. Change-Id: I78a2a6941058f8ec6197ef88b324f6178f7ae2fb
-rwxr-xr-xcryptfs_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptfs_hw.c b/cryptfs_hw.c
index c7adfd1..a0177fa 100755
--- a/cryptfs_hw.c
+++ b/cryptfs_hw.c
@@ -126,7 +126,7 @@ static int is_qseecom_up()
char value[PROPERTY_VALUE_MAX] = {0};
for (; i<QSEECOM_UP_CHECK_COUNT; i++) {
- property_get("sys.listeners.registered", value, "");
+ property_get("sys.keymaster.loaded", value, "");
if (!strncmp(value, "true", PROPERTY_VALUE_MAX))
return 1;
usleep(100000);