[Moto G General] _ghiottone:
How to make a Multilang package for official Motorola’s rom (4.4-):

What do you need? – Skills, patient, knowledge & time.

ONLY UNLOCKED BOOTLOADER & rooted device - if you dont have the firmware.

1. You need the same version of android (4.4.4, 5.0, etc) Nexus, GPE or Android One system apps.

Where do you find this? – In the system dumps – find in XDA’s thread or try Google search. If you dont found, try the factory images and you extract the system.img.

2. Install Android SDK with API 21 for the Lollipop systems & Java SDK.

3. the latest apktool.jar with aapt.exe & apktool.bat. Find it here. After download copy to C:\Windows path.

If you do not have access to C://Windows, you may place the three files anywhere then add that directory to your Environment Variables System PATH variable.

-	security step 1: after the copying restart your sytem

-	security step 2: install the framework-res.apk ---

a.) Put the apktool.jar & the framework-res.apk (grab from the downloaded system\framework folder) in one folder.

[IMG="001"]http://mobilarena.hu/dl/upc/2014-12/338698_001.jpg[/IMG]

b.) Open a command in this folder (like with TotalCommader ’cmd’ command) and type:

[IMG="002"]http://mobilarena.hu/dl/upc/2014-12/338698_002.jpg[/IMG]

apktool if framework-res.apk

[IMG="003"]http://mobilarena.hu/dl/upc/2014-12/338698_003.jpg[/IMG] and press Enter

- if everything ok you see this:

Framework installed to: /users/…/apktool/framework/1.apk

[IMG="004"]http://mobilarena.hu/dl/upc/2014-12/338698_004.jpg[/IMG]

4. I use BDFReak Advanced Apktool 4.1.0 for the process. Download & extract.

5. Copy the necesseary files to the extracted AdvancedApkTool 2-In folder.

[IMG="005"]http://mobilarena.hu/dl/upc/2014-12/338698_005.jpg[/IMG]

-	for example this is the necessary files:

app:

Bluetooth

Calculator

CellBroadcastReceiver

DeskClock

DownloadProviderUi

TelephonyProvider

-	framework:

framework-res

-	priv-app:

Contacts

ContactsProvider

Dialer

DownloadProvider

Keyguard

Launcher2

Mms

Settings

SettingsProvider

SystemUI

Teleservice

6. Run the Advanced ApkTool.exe – and Install the framework

[IMG="006"]http://mobilarena.hu/dl/upc/2014-12/338698_006.jpg[/IMG]

[IMG="007"]http://mobilarena.hu/dl/upc/2014-12/338698_007.jpg[/IMG]

[IMG="008"]http://mobilarena.hu/dl/upc/2014-12/338698_008.jpg[/IMG]

[IMG="009"]http://mobilarena.hu/dl/upc/2014-12/338698_009.jpg[/IMG]

- after then decompile the apps. The decompiled apk’s folders are in the [3-out] folder.

[IMG="010"]http://mobilarena.hu/dl/upc/2014-12/338698_010.jpg[/IMG]

7. Delete the not necessary folders:

[IMG="011"]http://mobilarena.hu/dl/upc/2014-12/338698_011.jpg[/IMG]

You need only the [res] folders from the decompiled apps and the [raw-] + [values-] folders from this parent folder. Save this folders!

[IMG="012"]http://mobilarena.hu/dl/upc/2014-12/338698_012.jpg[/IMG]

[IMG="013"]http://mobilarena.hu/dl/upc/2014-12/338698_013.jpg[/IMG]

[IMG="014"]http://mobilarena.hu/dl/upc/2014-12/338698_014.jpg[/IMG]

Remains only the [raw- ] and the [values- ] folders.

Example: framework-res.apk\res\raw-HU,

framework-res.apk\res\values-HU

This folders contains the language .xmls & etc for the multilang apps.

After this process you have to save the decompiled apk’s folder to another folder. For example „Nexus 5.0 Extracted apps”.

8. Now you have to copy the system apps from your Motorola device to the AdvancedApkTool [2-In] folder and after decompiled the files.

9. Go to the „Nexus 5.0 Extracted app” and copy the corresponding app’s [res] folders to the Advanced Apktool [3-Out] folder apps.

No overwriting!!! Skipp all the existing folders, xmls!

[IMG="016"]http://mobilarena.hu/dl/upc/2014-12/338698_016.jpg[/IMG]

10. Next step: Recompile the apps.

[IMG="017"]http://mobilarena.hu/dl/upc/2014-12/338698_017.jpg[/IMG]

[IMG="018"]http://mobilarena.hu/dl/upc/2014-12/338698_018.jpg[/IMG]

[IMG="019"]http://mobilarena.hu/dl/upc/2014-12/338698_019.jpg[/IMG]

[IMG="020"]http://mobilarena.hu/dl/upc/2014-12/338698_020.jpg[/IMG]

11. For safety I copy the original .apk's [META-INF] folder + AndroidManifest.xml to the new .apks, overwriting the existing ones.

(The original .apk is te [2-IN] folder, the new .apk is in the [4-OUT] folder. )

[IMG="021"]http://mobilarena.hu/dl/upc/2014-12/338698_021.jpg[/IMG]

[IMG="022"]http://mobilarena.hu/dl/upc/2014-12/338698_022.jpg[/IMG]

Now You are Done!

Next step - Making a flashable package.

I do not take any responsibility. Use at your own risk.