Decompile/Recompile MIUI V4


Feb 11, 2012
14
0
11
#1
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

Xiaomi.eu Founder
Staff member
Nov 6, 2010
4,400
2,208
1,000,000
#2
which errors do you get? Pastebin.com the errors and i will try to help.
 
Feb 11, 2012
14
0
11
#3
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

Xiaomi.eu Founder
Staff member
Nov 6, 2010
4,400
2,208
1,000,000
#7
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:
 
Apr 2, 2011
204
10
40
#11
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

Xiaomi.eu Founder
Staff member
Nov 6, 2010
4,400
2,208
1,000,000
#12
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