1. Are you ready for the Galaxy S20? Here is everything we know so far!

Apk Manager Error's

Discussion in 'Android Devices' started by Jaay Dogg, Apr 24, 2012.

  1. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    Ok when i use apk manager i can decompile apk's & recompile apk's, but when i try to add the 1% battery mod to the framework-res drawable folder, then try to recompile i always get error's. I decompiled Mantera's battery mod framewrok-res & kept the battery mod files, then decompiled the stock CM7 framework-res, added the battery mod files to the drawable folder inside the framework-res & attempt to recompile, but get error's every time ? Does anybody know what i'm doing wrong here, I'd sure appericate it. Thanks :thinking:
     



    1. Download the Forums for Android™ app!


      Download

       
  2. b_randon14

    b_randon14 Android Expert

    post your errors and i'll look at em!
     
  3. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    :\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:191: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim12').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:192: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim13').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:193: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim14').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:194: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:195: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:196: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:197: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:198: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:199: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:205: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim9').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:206: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim10').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:207: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim11').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:208: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim12').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:209: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim13').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:210: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim14').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:211: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:212: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:213: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:214: error: Error: No resource found that matches the given name (at
    'draException in thread "main" brut.androlib.AndrolibException: brut.common.Bru
    tException: could not exec command: [aapt, p, -F, C:\Users\JAAYDO~1\AppData\Loca
    l\Temp\APKTOOL1223169479360387862.tmp, -x, -S, C:\apk_manager\other\..\projects\
    framework-res.apk\res, -M, C:\apk_manager\other\..\projects\framework-res.apk\An
    droidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
    a: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, C:\U
    sers\JAAYDO~1\AppData\Local\Temp\APKTOOL1223169479360387862.tmp, -x, -S, C:\apk_
    manager\other\..\projects\framework-res.apk\res, -M, C:\apk_manager\other\..\pro
    jects\framework-res.apk\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:83)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
    a:191)
    ... 6 more
    wable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:215: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:216: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:222: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim10').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:223: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim11').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:224: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim12').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:225: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim13').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:226: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim14').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:227: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:228: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:229: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:230: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:231: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:232: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:238: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim11').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:239: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim12').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:240: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim13').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:241: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim14').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:242: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:243: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:244: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:245: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:246: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:247: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:253: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim12').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:254: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim13').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:255: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim14').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:256: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:257: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:258: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:259: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:260: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:261: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:267: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim13').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:268: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim14').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:269: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:270: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:271: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:272: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:273: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:274: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:280: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim14').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:281: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:282: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:283: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:284: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:285: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:286: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:292: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim15').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:293: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:294: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:295: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:296: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:297: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:303: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim16').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:304: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:305: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:306: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:307: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:313: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim17').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:314: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:315: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:316: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:322: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim18').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:323: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:324: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:330: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim19').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:331: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:337: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:343: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_animfull').
    C:\apk_manager\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery
    _charge.xml:344: error: Error: No resource found that matches the given name (at
    'drawable' with value '@drawable/stat_sys_battery_charge_anim20').
    The system cannot find the file specified.
     
  4. b_randon14

    b_randon14 Android Expert

    Well the XML is looking for pngs that don't exist. How many battery charge icons do you have in drawable-hdpi? However many the battery charge XML uses is how many you have to have in the drawable-hdpi folder. Like mine uses 100 battery charge pngs so I have 100 battery charge pngs in drawsble-hdpi
     
  5. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    Well I know it can be done but Mantera did it for me last time with the 3-04-2012 build of CM7 Whyzor edition. Once I put the theming in it has 1-100 battery % PNG's, Do you know how to incorporate Mantera's 1% battery mod into CM7 ?
     
  6. mantera

    mantera Android Expert

    It definitely looks like you are missing all of the battery charging png files. They should all start with this name: stat_sys_battery_charge_anim

    The charging battery png files are different than the regular battery png files. It sounds like you only copied over the regular battery png files.
     
  7. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    So then do I add those PNG's to the framework before the decompile or after ?
     
  8. Mobstergunz

    Mobstergunz Android Expert

    to make it easier i say use WinRAR to make your changes you'll get the same results just less complicated......
     
  9. mantera

    mantera Android Expert

    After decompile and before recompile.
     
    Jaay Dogg likes this.
  10. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    Ok Mantera I will again after work, Now do I make those PNG's myself or find them in another rom ?
     
  11. Mobstergunz

    Mobstergunz Android Expert

    Whichever suits you better aslong as its the correct size and is named properly
     
  12. mantera

    mantera Android Expert

    Up to you.
     
    Jaay Dogg likes this.
  13. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    Cool I made the ones I was missing
     
  14. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    Ok Mantera I've been messing with this forever now & it's not working for me, This is what I'm doing, I first decompile your framework-res.apk inside the CM7 1% battery mod, then take out the two files from the drawable folder stat_sys_battery & stat_sys_battery_charge, then I take out the battery charging PNG's. Then I decompile the stock CM7 3-25-2012 build's framework-res.apk, once it decompile's I put the all the files mentioned above back into the folders they belong in & then try to recompile & I always get errors ? Am I not doing something right ? If you could please give me some guidance on this so I will be able to this. Thanks in advance :thinking:
     
  15. mantera

    mantera Android Expert

    What are the errors? the same ones as in your previous post?

    Edit: Also, I personally have switched to using Apk Multi-tool:

    http://forum.xda-developers.com/showthread.php?t=1310151

    The dev keeps it updated and supports the latest files.
     
  16. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    I'll have to check, but when I look in the framework-res the apk manager makes the two drawable battery files are now 0 bytes ? Is the method I describe right am I missing something ? I'm checking now on those errors
     
  17. mantera

    mantera Android Expert

    That's the correct procedure if you want to go through the decompile/recompile process.

    However, you may be able to just do as Mobstergunz says and just unzip the same files directly from the framework-res.apk using WinZip/7-zip/winrar and then add the files directly to the new framework-res.apk file. None of the pngs are .9.pngs and you're not actually making any changes to the xml files so that should work

    Although, it is good to know how to do it by decompiling as well, especially if you're going to be doing more theming.

    Edit: The files are probably 0 bytes because the recompiling did not complete successfully.
     
  18. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b9
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803ba
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bb
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bc
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bd
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803be
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803ba
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bb
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bc
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bd
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803be
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bb
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bc
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bd
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803be
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bc
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bd
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803be
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bd
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803be
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803be
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803bf
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c7
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803c2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080394
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108039d
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a6
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803af
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108038d
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108038e
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108038f
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080390
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080391
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080392
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080393
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080395
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080396
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080397
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080398
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x01080399
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108039a
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108039b
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108039c
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108039e
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x0108039f
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a3
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a4
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a5
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a7
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a8
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803a9
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803aa
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803ab
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803ac
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803ad
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803ae
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b0
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b1
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b2
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b3
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b4
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b5
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b6
    W: Could not decode attr value, using undecoded value instead: ns=android, name=
    drawable, value=0x010803b7
    I: Decoding values*/* XMLs...
    I: Done.
    Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
    0x010803c3
    at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
    at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
    at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
    at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
    ceValue.java:59)
    at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
    renceValue.java:46)
    at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
    larValue.java:43)
    at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
    0)
    at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
    sourceParser.java:315)
    at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
    e(XmlPullParserDelegate.java:69)
    at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
    ag(StaticXmlSerializerWrapper.java:267)
    at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
    cXmlSerializerWrapper.java:211)
    at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
    coder.java:46)
    at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
    ecoderContainer.java:34)
    at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
    00)
    at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:8
    6)
    at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132
    )
    at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
    at brut.apktool.Main.cmdDecode(Main.java:128)
    at brut.apktool.Main.main(Main.java:65)
    Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-m
    odding/signedframework-res.apk
    Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-m
    odding/unsignedframework-res.apk
    I: Loading resource table...
    I: Loaded.
    I: Decoding file-resources...
    I: Decoding values*/* XMLs...
    I: Done.
    I: Copying assets and libs...
    Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-m
    odding/signedframework-res.apk
    Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-m
    odding/unsignedframework-res.apk
    I: Loading resource table...
    I: Loaded.
    I: Decoding file-resources...
    S: Could not decode file, replacing by FALSE value: drawable/stat_sys_battery_ch
    arge.xml
    S: Could not decode file, replacing by FALSE value: drawable/stat_sys_battery.xm
    l
    I: Decoding values*/* XMLs...
    I: Done.
    I: Copying assets and libs...
    W: Could not find sources
    I: Checking whether resources has changed...
    I: Building resources...
    C:\apk_manager\other\..\projects\framework-res.apk\res\values\drawables.xml:17:
    error: Resource entry stat_sys_battery is already defined.
    res\drawable\stat_sys_battery.xml:0: Originally defined here.
    C:\apk_manager\other\..\projects\framework-res.apk\res\values\drawables.xml:18:
    error: Resource entry stat_sys_battery_charge is already defined.
    res\drawable\stat_sys_battery_charge.xml:0: Originally defined here.
    Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
    ption: could not exec command: [aapt, p, -F, C:\Users\JAAYDO~1\AppData\Local\Tem
    p\APKTOOL2406309890215015548.tmp, -x, -S, C:\apk_manager\other\..\projects\frame
    work-res.apk\res, -M, C:\apk_manager\other\..\projects\framework-res.apk\Android
    Manifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
    a: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, C:\U
    sers\JAAYDO~1\AppData\Local\Temp\APKTOOL2406309890215015548.tmp, -x, -S, C:\apk_
    manager\other\..\projects\framework-res.apk\res, -M, C:\apk_manager\other\..\pro
    jects\framework-res.apk\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:83)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
    a:191)
    ... 6 more
    The system cannot find the file specified.
    Press any key to continue . . .
     
  19. mantera

    mantera Android Expert

    Code (Text):
    1. C:\apk_manager\other\..\projects\framework-res.apk\res\values\drawables.xml:17:
    2. error: Resource entry stat_sys_battery is already defined.
    3. res\drawable\stat_sys_battery.xml:0: Originally defined here.
    4. C:\apk_manager\other\..\projects\framework-res.apk\res\values\drawables.xml:18:
    5. error: Resource entry stat_sys_battery_charge is already defined.
    6. res\drawable\stat_sys_battery_charge.xml:0: Originally defined here.
    This isn't right. Did you edit the drawables-xml file at lines 17 and 18?
     
  20. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    No what do I have to do ?
     
  21. mantera

    mantera Android Expert

    Basically, those lines aren't normally there if you just decompiled the framework-res.apk from cm7. Here's what my drawables.xml file looks like from my latest cm7 build:

    Code (Text):
    1.  
    2. <?xml version="1.0" encoding="utf-8"?>
    3. <resources>
    4.     <drawable name="alert_dark_frame">@drawable/popup_full_dark</drawable>
    5.     <drawable name="alert_light_frame">@drawable/popup_full_bright</drawable>
    6.     <drawable name="dialog_frame">@drawable/panel_background</drawable>
    7.     <drawable name="editbox_dropdown_dark_frame">@drawable/editbox_dropdown_background_dark</drawable>
    8.     <drawable name="editbox_dropdown_light_frame">@drawable/editbox_dropdown_background</drawable>
    9.     <drawable name="menu_frame">@drawable/menu_background</drawable>
    10.     <drawable name="menu_full_frame">@drawable/menu_background_fill_parent_width</drawable>
    11.     <drawable name="stat_notify_sync_noanim">@drawable/stat_notify_sync_anim0</drawable>
    12.     <drawable name="stat_sys_download_done">@drawable/stat_sys_download_anim0</drawable>
    13.     <drawable name="stat_sys_upload_done">@drawable/stat_sys_upload_anim0</drawable>
    14.     <item type="drawable" name="screen_background_dark">#ff000000</item>
    15.     <item type="drawable" name="screen_background_light">#ffffffff</item>
    16.     <item type="drawable" name="screen_background_dark_transparent">#80000000</item>
    17.     <item type="drawable" name="screen_background_light_transparent">#80ffffff</item>
    18.     <item type="drawable" name="status_bar_closed_default_background">#ff000000</item>
    19.     <item type="drawable" name="status_bar_opened_default_background">#ff000000</item>
    20.     <item type="drawable" name="search_bar_default_color">#ff000000</item>
    21.     <item type="drawable" name="safe_mode_background">#60000000</item>
    22.     <item type="drawable" name="input_method_fullscreen_background">#fff9f9f9</item>
    23.     <item type="drawable" name="selected_day_background">#ff0092f4</item>
    24. </resources>
    Notice that there's nothing in there about the battery charge. So if those lines are really there and there were no errors during your decompile, then that framework-res.apk is strange.
     
  22. mantera

    mantera Android Expert

  23. Jaay Dogg

    Jaay Dogg Android Expert
    Thread Starter

    The last one was the 3-4-2012 build & it won't work so that's why I'm trying to recompile it.
     
  24. mantera

    mantera Android Expert

    Which icons are you trying to move over into the framework-res.apk? the circle green?

    I was able to decompile that file from your zip just fine. And the files look fine. I also recompiled without changing anything just to verify that it will and it does.

    Try it again using the apk multitool I linked before and see if that makes a difference.
     

Motorola Triumph Forum

Features and specs are not yet known.

unknown
Release Date
0
Reviews
Loading...
Similar Threads - Apk Manager Error's
  1. melani78
    Replies:
    0
    Views:
    232
  2. derohanes
    Replies:
    2
    Views:
    356
  3. melani78
    Replies:
    3
    Views:
    295
  4. RicardoM
    Replies:
    1
    Views:
    336
  5. vincent_12610
    Replies:
    2
    Views:
    610
  6. mehmet01
    Replies:
    4
    Views:
    623
  7. Laurel23456
    Replies:
    2
    Views:
    962
  8. Pazzy_1
    Replies:
    1
    Views:
    1,099
  9. App Update
    Replies:
    1
    Views:
    593
  10. joseph ars
    Replies:
    4
    Views:
    1,139

Share This Page

Loading...