Just check if you have changes in the file public.xml, when you install the framework should do so:
apktool if res.apk-framework ---> framework.1
apktool if MIUI-framework-res ---> framework.3
apktool if com.htc.resource.apk--> framework.2
Added the line - 2 in the framework apktool.yml decompiled.
To me when I have everything framework-miui-res.apk/values/public.xml decompil the values 0x03 ... when is that when decompil / recompile, though recompile when they stay the same if you should go
Just to be clear, it doesn't need to be any apk in particular that is installed to 2.apk, I just said com.htc.resources.apk because when I solved the problem everyone was having recompiling framework-miui-res, that was what I had handy. It would work just as well with any framework apk that uses 0x02. That and the line in apktool.yml are enough to force apktool to keep the correct value for the miui framework.