keystore: fix inverted hardware keystore check

Check should be that the 'is_software' flag is off.

(cherry picked from commit 483407eaca108d3717bb49770915d6d95d5d0e0c)

Change-Id: I031a035beeec581e9af2207ae37c39aa39e3539c
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: