breeza wrote:Is there some magic to editing these apks?
Took a working one & used apkmanager to extract, zip & sign with no errors logged. So I haven't changed anything but swype force closes with the new APK.
yes... lots of magic... this is from 2.15, but should still be up to date... thanks to mobilism hacks, the original formated stuff is gone -.-
Code: Select allCustom Language Tutorial
Preparation
* Get a tool capable of working in zip files. I use Total Commander. WinZip, WinRar or anything else should also work.
* Get a Swype Version from Post #1 which works on your device (WVGA, HVGA, X10). Install and test it! This is your base - it has to run propperly so you customize it.
* Get this file from yepayepa containing following languages: Bulgarian,Croatian,Danish,Dutch,EnglishUK,EnglishUS,Finnish,French,German,Korean,Norwegian,Romanian,SerbianLA(reported broken),Slovenian,Swedish - this is a 2.4.44 release, but the languages should work - see below for troubleshooting
* If your desired language is not among the listed, there is still hope. There are a lot of swype versions released here. Use the forum search function and check all the swype 2.x versions for your desired file. There is a pretty good chance those files will work - again, see troubleshooting if you encounter problems
* Get this tool for the last step.
* Unzip "auto-sign-apk.zip" you just downloaded. You should now have an "auto-sign-apk/" folder for later use.
* Make sure you have latest Java Runtime Environment (JRE) installed.
* When i refer to "dummyfile.apk", that is always meant without quotation marks.
Customization
* Copy the .apk from Post #1 which works on your device. I refer to it now as "myswype.apk"
* Open "myswype.apk" in Total Commander/Winzip/WhateverYouLike - we wont unpack it, we work inside it.
* Delete the "META-INF/" Folder inside "myswype.apk"
* Go to "Assets/Files" inside "myswype.apk"
* Each standard language consists of 3 Files here: "Language.htm", "Language-full.htm", "Language.le" - some complicated languages like korean may consist of up to 5 files.
* Delete the Languages you dont need.
* Dont delete anything else! Important files are "languages.lst", "license.dat", the two "Numbers-XX-Latin1.zkb.le" files, the four "QwertX-XX-Latin1.zkb.le" files and all .png's!
* Now copy additional languages from yepayepa's apk here. of course it is in the same location: "yepayepa.apk/assets/files/" - remember: 3 files per language!
* Open "languages.lst" in any text editor - even notepad will do!
* Write a list of Languages you wanna use here. The name to use is the name of the .htm file without .htm. This is case sensitive!
* The Contents of the original language.lst as an example: "EnglishUS,Spanish,Italian,PortuguesePT,German"
* Open "helplanguages.lst" in any text editor and repeat above steps
* Delete unneeded keyboards from "assets/keyboards/". The "SwypeRef*" are QWERTY default, the rest is self-explaining like QWERTY or AZERTY. There is no way to see what language needs what keyboard. You either know or you have to test.
* Delete chinese help-file from "res/raw/dict_pinyin.mp3". It's only needed if you use chinese.
* Recheck all your steps and close your zip-tool!
Optional: Customize Skin and Sound
* If you wanna change the skin, modify the .png files at "myswype.apk/assets/keyboards" - the other .png files in the .apk are only for tutorial and help.
* There are some skins at XDA forum, which already made it to a custom .apk file. But its lost in mobilism crash.
* The one and only soundfile, played when typing or finishing a word, is located at "myswype.apk/res/raw/beep.mp3" - change this if you like
Finalization
* Copy "myswype.apk" to the "auto-sign-apk/" folder
* Make sure there is no other .apk in this folder (from using this tool before)
* run "sign.bat"
* press enter two times
* rename "your_app_signed.apk" to something useful and move it out of that folder
* delete "myswype.apk" in "auto-sign-apk/" folder
* consider posting your custom build in the comments, so i can add it in post #3. might save other people some work.
* thats it! you are done! install the .apk and have a nice day!
Troubleshooting
* If you find your language not working, that usually got one of 3 Reasons:
* You messed something up. Recheck your "language.lst" and "helperlanguage.lst" file and see if you have all needed language files in "assets/files"
* Your language is not allowed by our included license file. That happens a lot with new languages like the Chinese in 2.10.52. Users reported workarounds with renaming the language to some supported language. Like renaming Serbian to Croation.
* The language files you got are not supported by the latest swype version. Rule of thumb is, 1.x swype language files wont work with 2.x language files, but 2.x language files are compatible with each other. As far as i know this rule applys in most but not all cases. So search for another swype version containing your desired language and try that file.
* We obtained another license file. Right now, it is unknown which languages it supports, but it is from swype 2.7 asia galaxy s. the license we currently use is 2.4.44 based. give it a try, it might work with your language. please also give feedback, which language works/doesnt work. copy it it "assets/files/" and overwrite the exiting license.dat