[Samsung Galaxy Nexus] arrtoodeetoo:
I'm trying to edit some of the files in framework-res and other system files. I am able to successfully decomp and recomp anything from the system/app folder, however, when I get to framework-res.apk, it gives me a lot of errors (pasted below). At first, I thought it was something that I was doing wrong in editing an xml file, but then I tried simply decompiling and then immediately recompiling the file, and got the same errors.

I have the very latest version of apktool and aapt with framework-res.apk installed into the program and the latest SDK. The only thing I think might be an issue is that I'm using files from 4.02. Not sure if this even makes a difference.

Any advice?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\owner\Desktop\Nexus\apktool>apktool b framework-res framework-edit.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values\plurals.xml:
79: error: Multiple substitutions specified in non-positional format; did you me
an to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values\plurals.xml:
79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-bg\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-bg\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ca\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ca\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-cs\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-cs\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-da\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-da\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-de\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-de\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-el\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-el\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-en-rGB\plura
ls.xml:79: error: Multiple substitutions specified in non-positional format; did
you mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-en-rGB\plura
ls.xml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-es\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-es\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-es-rUS\plura
ls.xml:79: error: Multiple substitutions specified in non-positional format; did
you mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-es-rUS\plura
ls.xml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-fi\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-fi\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-fr\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-fr\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-hr\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-hr\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-hu\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-hu\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-in\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-in\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-it\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-it\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ja\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ja\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ko\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ko\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-lt\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-lt\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-lv\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-lv\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-nb\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-nb\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-nl\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-nl\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-pl\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-pl\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-pt\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; diExcep
tion in thread "main" brut.androlib.AndrolibException: brut.common.BrutException
: could not exec command: [aapt, p, -F, C:\DOCUME~1\owner\LOCALS~1\Temp\APKTOOL1
245866895833091365.tmp, -x, -S, C:\Documents and Settings\owner\Desktop\Nexus\ap
ktool\fr\res, -M, C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\Andro
idManifest.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:\D
OCUME~1\owner\LOCALS~1\Temp\APKTOOL1245866895833091365.tmp, -x, -S, C:\Documents
and Settings\owner\Desktop\Nexus\apktool\fr\res, -M, C:\Documents and Settings\
owner\Desktop\Nexus\apktool\fr\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
d you mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-pt\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-pt-rPT\plura
ls.xml:79: error: Multiple substitutions specified in non-positional format; did
you mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-pt-rPT\plura
ls.xml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ro\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ro\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ru\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-ru\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sk\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sk\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sl\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sl\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sr\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sr\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sv\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-sv\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-tl\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-tl\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-tr\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-tr\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-uk\plurals.x
ml:79: error: Multiple substitutions specified in non-positional format; did you
mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-uk\plurals.x
ml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-zh-rCN\plura
ls.xml:79: error: Multiple substitutions specified in non-positional format; did
you mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-zh-rCN\plura
ls.xml:79: error: Found tag </item> where </plurals> is expected
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-zh-rTW\plura
ls.xml:79: error: Multiple substitutions specified in non-positional format; did
you mean to add the formatted="false" attribute?
C:\Documents and Settings\owner\Desktop\Nexus\apktool\fr\res\values-zh-rTW\plura
ls.xml:79: error: Found tag </item> where </plurals> is expected

C:\Documents and Settings\owner\Desktop\Nexus\apktool>