[Android Software Development] majdinj:
This tutorial is going to help ROM chiefs on how to add and integrate different languages and csc codes from different regions in their cooked custom ROM​

Have you ever wanted to port your language across custom ROMs but you don't know how?

Yes after searching the xda, you knew that you need to integrate your language value folder in each ROM apk in order to have your language ported to the custom ROM; however heh, it will be very long journey of decompiling and compiling, making integrating your language value folder in each ROM apk is like a hell..!!

So from this side, I decided to make a tool that will decompile and extract languages values folders and after extracting all values folders from all apks of the same name (e.g, SystemUI.apk) from all ROMs' different regions, you can integrate all languages in one multi-languages apk; making the whole process a much less painful than the manual way..!!

So in short, this tool will add languages from ROM's apk files to another of the same name.. ;)

How to use:

1. Run apk-lang-extractor.bat file; this will create all needed folders.

2. Install your ROM dependencies (Only once) by putting them in "put-dependencies-here" folder and choose option #0.

3. Put all same apks from different region ROM's releases in "put-apk-here" folder; you can give them numbers in order to not get confused; ensure no space in apk name (e.g, SystemUI1.apk, SystemUI2.apk, SystemUI3.apk... etc).

4. Set Current-apk for one of them (option #1), and start extracting job (option #2) and do the same for the rest of apk files.

5. Let the apk file that you will integrate all languages in to be the last apk to extract the languages from; this is important to ensure the least error during compiling.

6. After you extracted all languages from all apk files, and being the last extracted apk is set as Current-apk, start languages integrating process (option #3) that will result in one apk file that contains all extracted languages. :laugh:

​

Credits:

1. Igor Pavlov: for 7za command line.

2. Brut.all & iBotPeaches: for the awesome apktool.jar :good:

3. atomicdryad: for SignApk.jar

4. Google: for android SDK

and to dedicate the contribution of such elite developers, the credits are shown in the utility splash screen..

​

- apk-languages-Extractor-Integrator_v1.05 @19/July/2013 - [the most recent]

- apk-languages-Extractor-Integrator_v1.00 @ 17/July/2013 - [old]

Change-log:

@ 19/July/2013 (v1.05):

- Fixed error message during language integration "The process cannot access the file because it is being used by another process".

- Fixed compression function. Now the whole final apk file is compressed by level specified, instead of signature only (my bad!!).

- Fixed open "finished-apk" folder delay after language integrating process.

- Deleting existing signed file apk of same name before signing (no more overlapping).

- New option added in the main menu to link the utility with this thread page (you can check update anytime now).

@ 17/July/2013 (v1.00):

- First release.

You just finished integrating languages values folders in each apk file in your custom ROM; however, we haven't finish porting languages yet..!! Continue with the next post