[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] marsui:
I read your guide thoroughly, I tried modifying a single character in a smali file from a decompiled APK (basically I changed a true 0x1 to a false 0x0), I got errors when trying to recompile.

So then I said, let me try to just decompile and recompile the APK without making any changes, just to make sure my modification was not the problem - and I cannot even do that without a slew of errors.

- I ran setup.bat as administrator, and pulled all framework files from my phone (HTC one - Sprint Variant)

- I ran script.bat and decompiled the apk

- leaving the script window open, I then tried option 12 to recompile a non-system apk (I tried option 11 too, even though what I am trying to recompile is a third party app and not a system apk)

Here is some of my log file (entire file is attached as it was too large)

Any ideas what I am doing wrong?

[B]log file is too large to completely paste in here, but here is the beginning[/B]
--------------------------------------------------------------------------
|Wed 03/05/2014 -- 12:41:22.05|
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
--------------------------------------------------------------------------
|Wed 03/05/2014 -- 12:42:26.19|
--------------------------------------------------------------------------
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\gbcaver\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-hdpi/dvr_filter_background.9.png". Renaming it to *.png.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
libpng error: Not a PNG file
ERROR: Failure processing PNG image D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\res\drawable-hdpi\subtitles.png

[B]Followed by tons of these kinds of error, of items not being defined:[/B]

D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\res\values\public.xml:266: error: Public symbol drawable/autowifi_back_button declared here is not defined.
D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\res\values\public.xml:4: error: Public symbol drawable/autowifi_back_button_states declared here is not defined.
D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\res\values\public.xml:267: error: Public symbol drawable/autowifi_backward declared here is not defined.

[B]Lastly an exception[/B]

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, -F, C:\Users\gbcaver\AppData\Local\Temp\APKTOOL7836915728672309959.tmp, -0, arsc, -I, C:\Users\gbcaver\apktool\framework\1.apk, -S, D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\res, -M, D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, -F, C:\Users\gbcaver\AppData\Local\Temp\APKTOOL7836915728672309959.tmp, -0, arsc, -I, C:\Users\gbcaver\apktool\framework\1.apk, -S, D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\res, -M, D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 8, -F, C:\Users\gbcaver\AppData\Local\Temp\APKTOOL7836915728672309959.tmp, -0, arsc, -I, C:\Users\gbcaver\apktool\framework\1.apk, -S, D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\res, -M, D:\rsms_dev\Android\Development\APK-Multi-Tool-Stable-RELEASE\projects\com.optimum.unity.mobile-1.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:404)
... 6 more