[G1 Android Development] madindehead:
Hello guys,

I started using Apk Manager last night, to try and edit my framework-res for my Desire HD ROM.

I am wanting to make a custom battery mod, so need to replace some png files, and some xmls. I am taking the xmls from other mods which work, same with the pngs. Now, I am able to decompile the lot, and add the new files, but when I try and compile it, I get an error. The log is below.

--------------------------------------------------------------------------

|13/04/2011 -- 15:59:50.79|

--------------------------------------------------------------------------

java version "1.6.0_23"

Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

Could Not Find E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk

Could Not Find E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

I: Loading resource table...

I: Decoding resources...

I: Copying assets and libs...

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery.xml:1: error: Error parsing XML: not well-formed (invalid token)

E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\other\..\projects\framework-res.apk\res\drawable\stat_sys_battery_charge.xml:1: error: Error parsing XML: not well-formed (invalid token)

E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\other\..\projects\framework-res.apk\res\drawable\zzz_stat_sys_battery_1.xml:1: error: Error parsing XML: not well-formed (invalid token)

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Mads\AppData\Local\Temp\APKTOOL7001842116612545157.tmp, -x, -S, E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)

at brut.androlib.Androlib.buildResourcesFull(Unknown Source)

at brut.androlib.Androlib.buildResources(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Mads\AppData\Local\Temp\APKTOOL7001842116612545157.tmp, -x, -S, E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, E:\Mads\My Documents\HTC Desire HD\Tools\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]

at brut.util.OS.exec(Unknown Source)

... 7 more

The system cannot find the file specified.

Any idea as to what could be happening? Sorry, I am very new to this, but I want to get into making some mods for myself :)

Thanks

Update: Why is it saying it can't access those files in the top part of the log? I only have framework-res in the folder, and nothing else. This is all so confusing :( Just to add, I am not editing any xmls, I am simply replacing them. I am taking xmls from a battery mod that works, and placing them into the framework for the same ROM (before the mod was applied).