Correct ro.crypto.state check

Fix #6042

Co-authored-by: vvb2060 <vvb2060@gmail.com>
This commit is contained in:
LoveSy 2022-06-28 13:21:07 +08:00 committed by John Wu
parent d1a35dd2ba
commit 3817167ba1

View File

@ -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 {