Translating (new) Music Apk


Satom

Members
Apr 23, 2012
17
13
Hello all,

I have trouble re-compiling de Music.apk (Rom version 2.6.22 SGSII I-9100)..

I get this error:

Code:
[*] Music folder
recompiling Music.apk...
I: Smaling...
I: Building resources...
C:\Users\Me\Desktop\AutoAPKTool2.0.3.1dK\_INPUT_APK\Music\res\values-nl\plurals.xml:68: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
C:\Users\Me\Desktop\AutoAPKTool2.0.3.1dK\_INPUT_APK\Music\res\values-nl\plurals.xml:68: error: Found tag </item> where </plurals> is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Me\AppData\Local\Temp\APKTOOL1608843740386779053.tmp, -I, C:\Users\ Me\apktool\framework\1.apk, -I, C:\Users\Me\apktool\framework\6.apk, -S, C:\Users\ Me\Desktop\AutoAPKTool2.0.3.1dK\_INPUT_APK\Music\res, -M, C:\Users\ Me\Desktop\AutoAPKTool2.0.3.1dK\_INPUT_APK\Music\AndroidManifest.xml]
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\Users\Me\AppData\Local\Temp\APKTOOL1608843740386779053.tmp, -I, C:\Users\Me\apktool\framework\1.apk, -I, C:\Users\ Me \apktool\framework\6.apk, -S, C:\Users\ Me\Desktop\AutoAPKTool2.0.3.1dK\_INPUT_APK\Music\res, -M, C:\Users\ Me\Desktop\AutoAPKTool2.0.3.1dK\_INPUT_APK\Music\AndroidManifest.xml]
    at brut.util.OS.exec(OS.java:83)
    at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
    ... 6 more
Het systeem kan het opgegeven station niet vinden.

So I went to the plurals.xml and looked at line 68.. and this part is from line 67 - 70:

Code:
<plurals name="album_details_format">
        <item quantity="other">%s, %d songs</item>
        <item quantity="one">%s, %d song</item>
</plurals>

And tried to manually "fix" it by changing %s and %d to %1$s and %2$d
Unfortuantly it didn't fixed it.. So I was wondering if someone can help me :)
 
Code:
<plurals name="album_details_format">
<item quantity="other" formatted="false">%s, %d songs</item>
<item quantity="one" formatted="false">%s, %d song</item>
</plurals>
 
So formatted=false should do the trick.. May I ask what that means? (What it does)
 
Special character stuff. It stops the characters from being treated literally and stuff.
 
Ok, thanks!

So, I went ahead and tried it again, with Apktool 1.4.5 and with:

Code:
  <plurals name="album_details_format">
    <item quantity="other" formatted="false">%s, %d songs</item>
    <item quantity="one" formatted="false">%s, %d song</item>
  </plurals>

And I'm getting same errors again:

Code:
plurals.xml:68: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
plurals.xml:68: error: Found tag </item> where </plurals> is expected

I guess I'm doing something wrong(?)