Ah sorry too, i was not clear either.
Usually i do values-en or values-zh or drawable-en when i do translation in miui.
Anyways, it should save the changes upon recompile.
During build usable make sure:
Overwrite resources.arsc : (10) = ON
Overwrite classes.dex : (11) = ON
10, mostly handle those edits in values xml files
11, when smali edits are made
Ah shocks wait, i am looking at it, seems like i turned it off by bypassing the script
Yesterday i thied it for myself and did a test with the languagepack update 2 or 3, i followed the steps and erverything worked. The only thing i didn't test was if the flashable really worked.
I did not see anything what had to do with java.
Using win7x32 which java i use... i don't know.
Still got a question how to use your AUTO APK TOOL.
I have downloaded Multi Lang Update 4, unzipped it and put the APKs in _INPUT_APK.
JW made an update for the translations, those are strings, arrays and plurals.
How do i use the update JW made?
Is the fisrt thing i do "decompile" (APKs are in_INPUT_APK), when decompiled i get 'new' folders in _INPUT_APK with the strings etc, can i copy the updated folders to _INPUT_APK so it overwrites the "old" folders and after that recompile and follow the steps 3, 4, and 18 to make my updated flashable language pack?
Ofcourse i only want the NL pack so it is possible to delete the languages i don't use/want?
Which folders/files are "forbidden" to delete, i mean which folders/files are needed for a good running ROM. I do not know how to put it clear to explain, so i hope you know what i mean.
Thnx for now and i'm off to bed. goodnight all.
yeah i got what you mean.
Easiest way is
- decompile my multilang apks, (remove the ones we dont translate)
- yes it will all be in the _INPUT_APK folder (it will recreate struture there)
- yes copy jan willem 3's updates over in the _INPUT_APK folder structure
- it will overwrite all files
- then recompile after copying it over (if all is translated well, it should have no errors)
- then build usable
- then 18 build the flashable, (delete the build.prop inside the flashable_update.zip and inside the system folder before building it, if you know what it is for then just reuse it)
as i have said, you can delete all that has values-pt, values-de, raw-de, etc. but you might delete something that is needed so don't delete values folder
the only complicated apk is the framework-res so you can leave that one out if you want
- grab the apks from the en-zh rom
- then just add jan willem 3's nl sources in the decompiled folder structure
- then recompile
- build usable
- 18, build flashable
When i would copy JW his update (in this case it isn't the update tranlation for 1.4.29 as far as i know). How do i get the new strings and the string that are deleted?
If i take the APP-EN_BASE_1.4.22_20110423.rar for expamle.
I put it in the right folder and decompile, remove everything i don't want to have (the other languages) and i copy the latest translation in to that folder it will overwrite everything and would delete the new strings that haven't been translated yet (so after copying it is possible that i will miss a few strings).
(When copying a file with a size of 1mb and you copy it to the same file, but that one is bigger (say 1.5mb) the 1mb file will overwrite the 1.5mb file, so this "new" file has a size of 1mb am i correct? Or am i totally wrong and confused?)
W/ResourceType( 2712): Bad XML block: header size 261 or total size 0 is larger than data size 0 C:\Users\Administrator\Desktop\AutoAPKTool1.0.2\_INPUT_APK\Gallery\res\menu-da\media_context_menu.xml:14: error: Error: No resource found that matches the given name (at 'id' with value '@id/set_or_cancel_cover'). Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL8651035744520181830.tmp, -I, C:\Users\Administrator\apktool\framework\1.apk, -S, C:\Users\Administrator\Desktop\AutoAPKTool1.0.2\_INPUT_APK\Gallery\res, -M, C:\Users\Administrator\Desktop\AutoAPKTool1.0.2\_INPUT_APK\Gallery\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source) at brut.androlib.Androlib.buildResourcesFull(Unknown Source) at brut.androlib.Androlib.buildResources(Unknown Source) at brut.androlib.Androlib.build(Unknown Source) at brut.androlib.Androlib.build(Unknown Source) at brut.apktool.Main.cmdBuild(Unknown Source) at brut.apktool.Main.main(Unknown Source) Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL8651035744520181830.tmp, -I, C:\Users\Administrator\apktool\framework\1.apk, -S, C:\Users\Administrator\Desktop\AutoAPKTool1.0.2\_INPUT_APK\Gallery\res, -M, C:\Users\Administrator\Desktop\AutoAPKTool1.0.2\_INPUT_APK\Gallery\AndroidManifest.xml] at brut.util.OS.exec(Unknown Source) ... 7 more
recompiling MiuiMusic.apk... I: Smaling... I: Building resources... aapt: warning: string 'music_picker' has no default translation in C:\Users\Administrator\Desktop\AutoAPKTool1.0.2\_INPUT_APK\MiuiMusic\res; found: de I: Building apk file...
|Thread Tools||Search this Thread|