Decompile/Recompile MIUI V4


Dragon7780

Members
Feb 11, 2012
14
11
Hello Everybody,

How can we translate miui v4 ICS.

i can decompile the framework-miui-res.apk but not recompile!
When i recompile i get errors on public.xml

Can SomeOne tell me/us how to decompile and recomple miui v4 ics files
without errors.. i use APK Multi-Tool with latest apktool.jar and aapt.exe.

Im using the SGS2 ROM for miuiandroid.com

Greets
Dragon
 

MarkHUK

Founder of Xiaomi.eu
Staff member
Nov 6, 2010
5,226
1,000,000
which errors do you get? Pastebin.com the errors and i will try to help.
 

Dragon7780

Members
Feb 11, 2012
14
11
ok ive placed the recompile errors on pastebin.com

im using apk multi-tool with latest apktool.jar and aapt.exe

or is it better to use other tool?
 

MarkHUK

Founder of Xiaomi.eu
Staff member
Nov 6, 2010
5,226
1,000,000
Yea you need to look at the code where these errors appear, its going to be:

layouts.xml, ids.xml, anims.xml, arrays.xml and so on.

the tags need to be like <item type="" ....>.....</item>

Code:
E:\Samsung Galaxy S2\WorkSpace\Apk Manager 4.9\other\..\projects\framework-miui-res.apk\res\values\anims.xml:3:
 

1982Strand

Members
Apr 2, 2011
204
40
Yea you need to look at the code where these errors appear, its going to be:

layouts.xml, ids.xml, anims.xml, arrays.xml and so on.

the tags need to be like <item type="" ....>.....</item>
Anyone knows why it changes/breaks the sources like that? And to me it's quite a mystery, because it's not ALL the tags it changes, some are okay. Pretty weird!
 

MarkHUK

Founder of Xiaomi.eu
Staff member
Nov 6, 2010
5,226
1,000,000
Anyone knows why it changes/breaks the sources like that? And to me it's quite a mystery, because it's not ALL the tags it changes, some are okay. Pretty weird!
apktool is just not translating the xml properly, its a bug of apktool