Compiling MIUI4 for Atrix 2 (MB865) Error on Overlays,Duplicates?

Discussion in 'Porting Advice/Help' started by rdavisct, Sep 27, 2012.

  1. rdavisct

    rdavisctMembers

    Jul 16, 2011
    3
    0
    11
    Hi all, i am hoping someone may be able to help me with my situation,

    i am compiling miui for the atrix 2 using same setup as for the razr (with atrix stock files replaced obviously)

    and during make i get this ...


    ryan@ryan-MS-7592:~/mi/miui_patchrom$ make
    make -C /home/ryan/mi/miui_patchrom/edison otapackage
    make[1]: Entering directory `/home/ryan/mi/miui_patchrom/edison'
    unzip >/dev/null stockrom.zip -d out/ZIP
    >>> Install framework resources for apktool...
    install framework-miui-res.apk
    /home/ryan/mi/miui_patchrom/tools/apktool --quiet if /home/ryan/mi/miui_patchrom/miui/system/framework/framework-miui-res.apk
    unzip >/dev/null stockrom.zip "system/framework/*.apk" -d out
    install out/system/framework/moto-res.apk
    install out/system/framework/framework-res.apk
    install out/system/framework/blur-res.apk
    <<< install framework resources completed!
    >>> build out/framework-res.apk...
    add miui overlay resources
    /home/ryan/mi/miui_patchrom/tools/remove_redef.py >/dev/null out/framework-res
    /home/ryan/mi/miui_patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
    /home/ryan/mi/miui_patchrom/edison/out/framework-res/res/values/colors.xml:91: error: Resource entry bright_foreground_inverse_holo_light is already defined.
    /home/ryan/mi/miui_patchrom/edison/out/framework-res/res/values/colors.xml:66: Originally defined here.
    /home/ryan/mi/miui_patchrom/edison/out/framework-res/res/values/public.xml:4734: error: Public symbol color/bright_foreground_holo_dark declared here is not defined.
    Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7453576567267040766.tmp, -x, -S, /home/ryan/mi/miui_patchrom/edison/out/framework-res/res, -M, /home/ryan/mi/miui_patchrom/edison/out/framework-res/AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
    at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
    at brut.androlib.Androlib.buildResources(Androlib.java:248)
    at brut.androlib.Androlib.build(Androlib.java:171)
    at brut.androlib.Androlib.build(Androlib.java:154)
    at brut.apktool.Main.cmdBuild(Main.java:182)
    at brut.apktool.Main.main(Main.java:67)
    Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7453576567267040766.tmp, -x, -S, /home/ryan/mi/miui_patchrom/edison/out/framework-res/res, -M, /home/ryan/mi/miui_patchrom/edison/out/framework-res/AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:83)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
    ... 6 more
    make[1]: *** [out/framework-res.apk] Error 1
    make[1]: Leaving directory `/home/ryan/mi/miui_patchrom/edison'
    make: *** [otapackage] Error 2
    ryan@ryan-MS-7592:~/mi/miui_patchrom$


    so its saying i have duplicate entries in COLORS.XML,its pulling stock framework-res.apk from stockrom.zip, which is not wrong, how can i fix this?

    thanks
     

Share Our Site