Skip to content

Commit cf02f21

Browse files
MlgmXyysdTimothyZhang023
authored andcommitted
Update to MIUI 11
(cherry picked from commit f5339db)
1 parent 992a3a4 commit cf02f21

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

module/src/main/cpp/hook.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ NEW_FUNC_DEF(int, __system_property_get, const char *key, char *value) {
3535
int res = old___system_property_get(key, value);
3636
if (key) {
3737
if (strcmp("ro.miui.ui.version.name", key) == 0) {
38-
strcpy(value, "V9");
38+
strcpy(value, "V11");
3939
//LOGI("system_property_get: %s -> %s", key, value);
4040
} else if (strcmp("ro.miui.ui.version.code", key) == 0) {
41-
strcpy(value, "7");
41+
strcpy(value, "9");
4242
//LOGI("system_property_get: %s -> %s", key, value);
4343
} else if (strcmp("ro.miui.version.code_time", key) == 0) {
44-
strcpy(value, "1527550858");
44+
strcpy(value, "1570636800");
4545
//LOGI("system_property_get: %s -> %s", key, value);
4646
} else if (strcmp("ro.miui.internal.storage", key) == 0) {
4747
strcpy(value, "/sdcard/");
@@ -65,13 +65,13 @@ NEW_FUNC_DEF(std::string, _ZN7android4base11GetPropertyERKNSt3__112basic_stringI
6565
std::string res = old__ZN7android4base11GetPropertyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_(key, default_value);
6666

6767
if (strcmp("ro.miui.ui.version.name", key.c_str()) == 0) {
68-
res = "V9";
68+
res = "V11";
6969
//LOGI("android::base::GetProperty: %s -> %s", key.c_str(), res.c_str());
7070
} else if (strcmp("ro.miui.ui.version.code", key.c_str()) == 0) {
71-
res = "7";
71+
res = "9";
7272
//LOGI("android::base::GetProperty: %s -> %s", key.c_str(), res.c_str());
7373
} else if (strcmp("ro.miui.version.code_time", key.c_str()) == 0) {
74-
res = "1527550858";
74+
res = "1570636800";
7575
//LOGI("android::base::GetProperty: %s -> %s", key.c_str(), res.c_str());
7676
} else if (strcmp("ro.miui.internal.storage", key.c_str()) == 0) {
7777
res = "/sdcard/";

0 commit comments

Comments
 (0)