commit | 483407eaca108d3717bb49770915d6d95d5d0e0c | [log] [tgz] |
---|---|---|
author | Kenny Root <kroot@google.com> | Thu Apr 04 17:12:25 2013 -0700 |
committer | Kenny Root <kroot@google.com> | Thu Apr 04 17:12:30 2013 -0700 |
tree | 0baec697516ce1cf354452d66a57a4bb4d7fa868 | |
parent | 77c4e48e80b989cb80599a40fbbad9a16745d89f [diff] [blame] |
keystore: fix inverted hardware keystore check Check should be that the 'is_software' flag is off. Change-Id: Ic03ef957f6aa62b959b24fe8e4ff202f431aab89
diff --git a/keystore/keystore.cpp b/keystore/keystore.cpp index 34cab24..760ec4d 100644 --- a/keystore/keystore.cpp +++ b/keystore/keystore.cpp
@@ -753,7 +753,7 @@ } bool isHardwareBacked() const { - return (mDevice->flags & KEYMASTER_SOFTWARE_ONLY) != 0; + return (mDevice->flags & KEYMASTER_SOFTWARE_ONLY) == 0; } private: