• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Apk Manager Error's

Jaay Dogg

Android Expert
Aug 27, 2011
758
207
45
Prescott, Az
www.paypal.com
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:
 
:\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.
 
Upvote 0
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.
 
Upvote 0
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.

After decompile and before recompile.
 
  • Like
Reactions: Jaay Dogg
Upvote 0
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:
 
Upvote 0
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:

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.
 
Upvote 0
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

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.
 
Upvote 0
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 . . .
 
Upvote 0
Code:
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.

This isn't right. Did you edit the drawables-xml file at lines 17 and 18?
 
Upvote 0
No what do I have to do ?

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:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <drawable name="alert_dark_frame">@drawable/popup_full_dark</drawable>
    <drawable name="alert_light_frame">@drawable/popup_full_bright</drawable>
    <drawable name="dialog_frame">@drawable/panel_background</drawable>
    <drawable name="editbox_dropdown_dark_frame">@drawable/editbox_dropdown_background_dark</drawable>
    <drawable name="editbox_dropdown_light_frame">@drawable/editbox_dropdown_background</drawable>
    <drawable name="menu_frame">@drawable/menu_background</drawable>
    <drawable name="menu_full_frame">@drawable/menu_background_fill_parent_width</drawable>
    <drawable name="stat_notify_sync_noanim">@drawable/stat_notify_sync_anim0</drawable>
    <drawable name="stat_sys_download_done">@drawable/stat_sys_download_anim0</drawable>
    <drawable name="stat_sys_upload_done">@drawable/stat_sys_upload_anim0</drawable>
    <item type="drawable" name="screen_background_dark">#ff000000</item>
    <item type="drawable" name="screen_background_light">#ffffffff</item>
    <item type="drawable" name="screen_background_dark_transparent">#80000000</item>
    <item type="drawable" name="screen_background_light_transparent">#80ffffff</item>
    <item type="drawable" name="status_bar_closed_default_background">#ff000000</item>
    <item type="drawable" name="status_bar_opened_default_background">#ff000000</item>
    <item type="drawable" name="search_bar_default_color">#ff000000</item>
    <item type="drawable" name="safe_mode_background">#60000000</item>
    <item type="drawable" name="input_method_fullscreen_background">#fff9f9f9</item>
    <item type="drawable" name="selected_day_background">#ff0092f4</item>
</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.
 
Upvote 0
The last one was the 3-4-2012 build & it won't work so that's why I'm trying to recompile it.

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.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones