From 3817167ba1e301ac27b77d5ffdfd1727a7a3b1da Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 28 Jun 2022 13:21:07 +0800 Subject: [PATCH] Correct `ro.crypto.state` check Fix #6042 Co-authored-by: vvb2060 --- native/jni/core/bootstages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/core/bootstages.cpp b/native/jni/core/bootstages.cpp index 25a20d859..20bc43969 100644 --- a/native/jni/core/bootstages.cpp +++ b/native/jni/core/bootstages.cpp @@ -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 {