mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-28 20:45:24 +00:00
prop compare fix
This commit is contained in:
parent
4dc0d13688
commit
df15606b00
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user