Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there a handy tool for just localizing APKs (resources.arsc) besides apktool?
    primarykey
    data
    text
    <p>I wanted to localize my Android 4.0.4 (3G) Pad into Uighur language.</p> <p>I decompiled, added a new <code>values-ug-rCN</code> translation in <code>res</code> folder, compiled back to get <code>resources.arsc</code> file.</p> <p>All APKs went fine excep Phone.apk. I can decompile to get xmls, but when compiling, it gave me the following errors: (The error was reproduced using the latest ApkTool1.5.2, both with/without installing framework.apk)</p> <pre><code> E:\apktool152\x&gt;apktool.bat if framework-res.apk I: Framework installed to: C:\Documents and Settings\Administrator\apktool\frame work\1.apk E:\apktool152\x&gt;apktool d Phone.apk 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:\Documents and Settings\Administrator\apk tool\framework\1.apk I: Loaded. I: Regular manifest package... I: Decoding file-resources... I: Decoding values */* XMLs... I: Done. I: Copying assets and libs... E:\apktool152\x&gt;apktool b Phone I: Checking whether sources has changed... I: Smaling... I: Checking whether resources has changed... I: Building resources... E:\apktool152\x\Phone\res\values-de\strings.xml:194: error: Multiple substitutio ns specified in non-positional format; did you mean to add the formatted="false" attribute? E:\apktool152\x\Phone\res\values-de\strings.xml:195: error: Unexpected end tag s tring E:\apktool152\x\Phone\res\values-es\strings.xml:194: error: Multiple substitutio ns specified in non-positional format; did you mean to add the formatted="false" attribute? E:\apktool152\x\Phone\res\values-es\strings.xml:195: error: Unexpected end tag s tring E:\apktool152\x\Phone\res\values-es-rUS\strings.xml:197: error: Multiple substit utions specified in non-positional format; did you mean to add the formatted="fa lse" attribute? E:\apktool152\x\Phone\res\values-es-rUS\strings.xml:198: error: Unexpected end t ag string E:\apktool152\x\Phone\res\values-it\strings.xml:194: error: Multiple substitutio ns specified in non-positional format; did you mean to add the formatted="false" attribute? E:\apktool152\x\Phone\res\values-it\strings.xml:195: error: Unexpected end tag s tring aapt: warning: string 'modem_power' has no default translation in E:\apktool152\ x\Phone\res; found: en_GB zh_CN aapt: warning: string 'modem_power_summary' has no default translation in E:\apk tool152\x\Phone\res; found: en_GB zh_CN Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl ibException: brut.common.BrutException: could not exec command: [aapt, p, --min- sdk-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Tem p\APKTOOL187345540728029844.tmp, -0, arsc, -I, C:\Documents and Settings\Adminis trator\apktool\framework\1.apk, -S, E:\apktool152\x\Phone\res, -M, E:\apktool152 \x\Phone\AndroidManifest.xml] at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358) at brut.androlib.Androlib.buildResources(Androlib.java:283) at brut.androlib.Androlib.build(Androlib.java:206) at brut.androlib.Androlib.build(Androlib.java:176) at brut.apktool.Main.cmdBuild(Main.java:228) 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, 15, --target-sdk-version, 15, -F, C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\APKTOOL187345540728029844.tmp, -0, arsc, -I, C: \Documents and Settings\Administrator\apktool\framework\1.apk, -S, E:\apktool152 \x\Phone\res, -M, E:\apktool152\x\Phone\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav a:357) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336) ... 5 more Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd k-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\ APKTOOL187345540728029844.tmp, -0, arsc, -I, C:\Documents and Settings\Administr ator\apktool\framework\1.apk, -S, E:\apktool152\x\Phone\res, -M, E:\apktool152\x \Phone\AndroidManifest.xml] at brut.util.OS.exec(OS.java:89) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav a:355) ... 6 more E:\apktool152\x&gt; </code></pre> <p>I just wanted to translate the xmls inside <code>values</code>, and compile back to get <code>resources.arsc</code>.</p> <p>I can go past the errors relevant to <code>values</code> xmls, by removing <code>de, es, it</code> translations if need be. But I don't know the other errors.</p> <p>So how can I solve this problem? Or is there another alternative tools just for the task?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload