How to force setreplacement in MIUI 12?
I need help, I'm using MIUI 12 Chinese Beta 20.09.09 (non include the Spanish language) in Redmi Note 8 Pro and I'm programming a module to set transparent elements in MIUI 12, set background and change the strings resources, but it doesn't work with miui.apk, my code is
It run without problems, I don't have errors, but it doesn't work the change the color, and the same issue gots with the strings resources
How can force to replacement the resources?, there is any way to do it?
I need help, I'm using MIUI 12 Chinese Beta 20.09.09 (non include the Spanish language) in Redmi Note 8 Pro and I'm programming a module to set transparent elements in MIUI 12, set background and change the strings resources, but it doesn't work with miui.apk, my code is
Code:
@Override
public void handleInitPackageResources(XC_InitPackageResources.InitPackageResourcesParam iprParam) throws Throwable {
switch (iprParam.packageName) {
case "com.miui.core":
iprParam.res.setReplacement("miui","color","list_item_bg_color_light", Color.TRANSPARENT);
iprParam.res.setReplacement("miui","color","list_menu_bg_color_dark", Color.TRANSPARENT);
iprParam.res.setReplacement("miui","color","list_menu_bg_color_light", Color.TRANSPARENT);
break;
}
}
Code:
iprParam.res.setReplacement("miui", "string", "month_september", "Septiembre"); // changing the strings to spanish
How can force to replacement the resources?, there is any way to do it?