Commit 3817167b authored by LoveSy's avatar LoveSy Committed by John Wu

Correct `ro.crypto.state` check

Fix #6042
Co-authored-by: 's avatarvvb2060 <vvb2060@gmail.com>
parent d1a35dd2
......@@ -188,7 +188,7 @@ static bool check_data() {
return false;
auto crypto = getprop("ro.crypto.state");
if (!crypto.empty()) {
if (crypto == "unencrypted") {
if (crypto != "encrypted") {
// Unencrypted, we can directly access data
return true;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment