Decompile/Recompile MIUI V4

Discussion in 'Question & Answers' started by Dragon7780, Mar 17, 2012.

  1. Dragon7780

    Dragon7780Members

    Feb 11, 2012
    14
    0
    11
    Male
    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
     
  2. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    which errors do you get? Pastebin.com the errors and i will try to help.
     
  3. Dragon7780

    Dragon7780Members

    Feb 11, 2012
    14
    0
    11
    Male
    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?
     
  4. Dragon7780

    Dragon7780Members

    Feb 11, 2012
    14
    0
    11
    Male
  5. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    Can you link me to the pastebins please?
     
  6. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    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: 
     
  7. Dragon7780

    Dragon7780Members

    Feb 11, 2012
    14
    0
    11
    Male
    how can that be ive not edited anything just decompile and then recompile
     
  8. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,811
    1,115
    335
    Kansas
    The uglyness and powerfulness of apktool for you :p
     
  9. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    take my word for it. Do what I suggested and you will fix your problems
     
  10. 1982Strand

    1982StrandMembers

    Apr 2, 2011
    204
    10
    40
    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!
     
  11. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    apktool is just not translating the xml properly, its a bug of apktool
     

Share Our Site