[Android Software/Hacking General [Developers Only]] adam-c:
Hello! I'm new to the forum and a casual android modder. I've really enjoyed digging into the Android world and have learned a lot from the forum. I was working with apktool and ran into a bit of a problem. I searched and found a post indicating that the environmental variables had to be tweaked which I did but this did not resolve the problem.

Thanks in advance,

-Adam

Environmental variables:

C:\>echo %PATH%
C:\DMI\WIN32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime Alternative\QTSystem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\QuickTime Alternative\QTSystem\;C:\Program Files\ZipGenius 6\;C:\PROGRA~1\JPSoft\4dos; C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools

apktool commands (minus a few more lines of errors for length):

C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>apktool d framework-res.apk
I: Loading resource table...
I: Decoding resources...
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_header_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/statusbar_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_close_on.9.png". Renaming it to *.png.
I: Copying assets and libs...

C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\status_bar_close_on.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\status_bar_header_background.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\statusbar_background.9.png
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3342: error: Public entry identifier 0x1080252 entry index is larger than available symbols (index 594, total symbols 43).
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3342: error: Public symbol drawable/APKTOOL_DUMMY_0252 declared here is not defined.
.
.
.
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3340: error: Public symbol drawable/zz_stat_sys_signal_5_cdma declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\Owner\LOCALS~1\Temp\APKTOOL1107807157838832304.tmp, -x, -S, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res, -M, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\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:\DOCUME~1\Owner\LOCALS~1\Temp\APKTOOL1107807157838832304.tmp, -x, -S, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res, -M, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more