Commit 4dc0d136 authored by YU-YEN HSU's avatar YU-YEN HSU Committed by John Wu

Xiaomi cross region flash hacks

parent 541fa5cb
......@@ -28,6 +28,16 @@ void hide_sensitive_props() {
if (!value.empty() && value != prop_value[i])
setprop(prop_key[i], prop_value[i], false);
}
// Xiaomi cross region flash
auto hwc = getprop("ro.boot.hwc");
if (!hwc.empty() && hwc.find("China") != string::npos) {
setprop("ro.boot.hwc", "GLOBAL", false);
}
auto hwcountry = getprop("ro.boot.hwcountry");
if (!hwcountry.empty() && hwcountry.find("CN") != string::npos) {
setprop("ro.boot.hwcountry", "GLOBAL", false);
}
}
static inline void lazy_unmount(const char* mountpoint) {
......
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