From df15606b0056e6679b456a42cd49eb82d9525662 Mon Sep 17 00:00:00 2001 From: YU-YEN HSU Date: Tue, 18 Feb 2020 01:13:26 +0800 Subject: [PATCH] prop compare fix --- native/jni/magiskhide/hide_policy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/jni/magiskhide/hide_policy.cpp b/native/jni/magiskhide/hide_policy.cpp index b0ace7e03..91cac2be6 100644 --- a/native/jni/magiskhide/hide_policy.cpp +++ b/native/jni/magiskhide/hide_policy.cpp @@ -31,11 +31,11 @@ void hide_sensitive_props() { // Xiaomi cross region flash auto hwc = getprop("ro.boot.hwc"); - if (!hwc.empty() && hwc.find("China") != string::npos) { + if (!hwc.empty() && hwc.find("CN") != string::npos) { setprop("ro.boot.hwc", "GLOBAL", false); } auto hwcountry = getprop("ro.boot.hwcountry"); - if (!hwcountry.empty() && hwcountry.find("CN") != string::npos) { + if (!hwcountry.empty() && hwcountry.find("China") != string::npos) { setprop("ro.boot.hwcountry", "GLOBAL", false); } }