[Android Software Development] Jarmezrocks:
Whilst I am at it, I was wondering if you might be able to tell me where we are going wrong with recompiling the phone.apk from AOSP 4.1.2 (not 4.2) using apktool_1.5.0.jar

We are getting the following errors:

I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-de\strings.xml:173: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-de\strings.xml:174: error: [B]Unexpected end tag string[/B]
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-es\strings.xml:178: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-es\strings.xml:179: error: Unexpected end tag string
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-es-rUS\strings.xml:173: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-es-rUS\strings.xml:174: error: Unexpected end tag string
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-it\strings.xml:181: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res\values-it\strings.xml:182: error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\James\AppData\Local\Temp\APKTOOL8719362398286356580.tmp, -I, C:\Users\James\apktool\framework\1.apk, -S, C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res, -M, C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: [B]could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F[/B], C:\Users\James\AppData\Local\Temp\APKTOOL8719362398286356580.tmp, -I, C:\Users\James\apktool\framework\1.apk, -S, C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\res, -M, C:\Users\James\Android\ROM_WORKSHOP\Apktool\Phone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:253)
... 6 more

I bolded a few things that stuck out for me. Tags. What would they be referencing? As in there are no dependencies? I have tried the phone apk its self, I have tried systemUI.apk (as this is a common thing for AOSP). I have installed against the framework-res.apk.

The aapt could not exec is referencing the Android Manifest. Is there a problem with our manifest file? I know with smali and bakmali on linux that you have to tell it the sdk version no matter what. Could there be an issue with apktool not understanding the sdk version?

I have attached the relevant files for you to examine. I appreciate any support that you can give. Thank you

Regards, James