[GUIDE] Full support for Arabic and Hebrew - Galaxy 3 Android Development

Hi, everybody
i've tryed a lot of ROMs and right now only Kyrillos's rom supports Arabic and Hebrew as it should be,
so there are two solutions:
1- install CM
PersianSphinx said:
And its not all CM ROMs that have this. CM7 has it for sure. Ginger bread has it enabled for sure. ive even checked other androids.
Click to expand...
Click to collapse
2- patch the rom
i will be guiding only the second solution but first
i am not to be credited for any of the work it is all the work of:
Madmack and Brighidea
i dont know the real names
so
step 1:
download the latest version of the patcher from madmack's blog from here
step 2:
extract these three files from the rom:
1- /system/framework/framework.jar
2- /system/lib/libandroid_runtime.so
3- /system/lib/libwebcore.so
step 3:
copy these files in the input folder of the patcher, and run commands.exe as administrator ( dont close any screen that appears )
step 4:
get a file named flashable_framework.zip from the output folder,
in normal conditions we would flash it through cwm but for a reason it doesnt it gives you an error
so put each of the files in the zip in its correspondent folder in the system manually.
framework.jar in /system/framework/
lib__bcore.so , libandroid_runtime.so , libicuuc-arabic.so , libwebcore.so in /system/lib/
DroidSansArabic.ttf in /system/fonts/
step 5:
must wipe dalvik-cache,
and if it wont boot wipe data,
if it still wont boot either you didnt follow the steps correctly or there is something wrong and you must contact madmack through his blog
step 6: that's it
again i am not taking credit at all. all i did is that i sent some files to madmack and he did all the job that was from a couple of months
credits:
madmack
brightidea

synos_x said:
in normal conditions we would flash it through cwm but for a reason it doesnt it gives you an error
so put each of the files in the zip in its correspondent folder in the system manually.
credits:
madmack
brightidea
Click to expand...
Click to collapse
good guide. useful for me, now i can see all my persian songs on any froyo/eclair
give a third way to activate, Kyrillos' ROM has Arabic/Persian/Hebrew activated on version 9 and 10 of his ROM by default. And its not all CM ROMs that have this. CM7 has it for sure. Ginger bread has it enabled for sure. ive even checked other androids.

PersianSphinx said:
good guide. useful for me, now i can see all my persian songs on any froyo/eclair
give a third way to activate, Kyrillos' ROM has Arabic/Persian/Hebrew activated on version 9 and 10 of his ROM by default. And its not all CM ROMs that have this. CM7 has it for sure. Ginger bread has it enabled for sure. ive even checked other androids.
Click to expand...
Click to collapse
thank you for that it was encouraging, i will quote some of what you said, in first post, i dont know about Persian but i think Kyrillos used this patch for Arabic, may be.

synos_x said:
thank you for that it was encouraging, i will quote some of what you said, in first post, i dont know about Persian but i think Kyrillos used this patch for Arabic, may be.
Click to expand...
Click to collapse
I know this because i suggested it to him to do it mate
Persian is similar to Arabic in the alphabet, but we have 4 letters that arabs dont have: گ، چ، پ، ژ
also the layout of the keyboard is different and we dont have the weird ه with the dots above it in our language that is most of the difference... Oh yea, and we dont use the vowels at all in writing... only ا، ه، آ، و، ی and none of the hamza crap

Related

[I9003] [How-To] Easily adding Arabic Patch to a Custom Rom

Hey to all,
this is a short tutorial how Devs but also "normal user" can add Arabic Support to a Custom Rom. (This process is usable for other Samsung smartphones, too).
1) Requirements
2) Downloads
3) How to apply Patch...
3.1) ...with Root Explorer
3.2) ...with a .zip Rom
1) Requirements
1. Your device needs to be rooted. (If you use the Root Explorer method)
2. Your Android version is 2.1 or newer
3. Your ROM needs to be deodexed. To find out if your installed ROM is deodexed, navigate to /system/framework on your phone. If you see a file called framework.odex then this patch will NOT work for you.
4. Your rom is NOT based on MIUI.
2) Downloads
1. Arabic Patcher (requires Windows)
2. If you use the Root Explorer method you will need Root Explorer (available in Market) or something comparable
If something goes wrong using this method reply and i´ll help you
Author of this tool is madmack! Link to his homepage
3) HowTo apply the patch
3.1) ...with Root Explorer
1. Download Arabic Patcher and extract it
2. Pull /system/framework/framework.jar from your phone and place it in the subfolder called "input" that you extracted in step 1. If you’re not using a CyanogenMod ROM (like Stock I9003 Roms), then you’ll also need to pull /system/lib/libandroid_runtime.so from your phone and place it in subfolder input that you extracted in step 1
! If you’re interested in getting arabic shaping in the Browser, pull file /system/lib/libwebcore.so from your phone and place it in subfolder input as well !
3. Double click on commands.exe. Do not close the black cmd screens that will pop up. Once the patch is done, you should get a patched framework.jar in the subfolder output.
4. Put file output/framework.jar in your phone at /system/framework/
5. Put file output/libandroid_runtime.so in your phone at /system/lib/
6. Put file output/libicuuc-arabic.so in your phone at /system/lib/ This is extremely important, failing to place this file will result in a boot loop of your deivce
7. If file exists: Place file output/libwebcore.so in your phone at /system/lib/
8. If file exists: Place file output/lib__bcore.so in your phone at /system/lib/
Also included, the Aljazeera fonts in fonts. You can place these in /system/fonts and reboot Sometimes permissions and xml data doesn’t get updated correctly resulting in corrupted data entries. If you receive a bunch of Force Closes after a reboot, you’ll need to Factory Reset.
3) HowTo apply the patch
3.2) ...with a .zip Rom
1. Download Arabic Patcher and extract it
1.1 Download the Rom you want to patch
2. Extract the .zip of your Rom and search for /system/framework/framework.jar. Pull it and place it in the subfolder called "input" that you extracted in step 1. If you’re not using a CyanogenMod ROM (like Stock I9003 Roms), then you’ll also need to pull /system/lib/libandroid_runtime.so from your phone and place it in subfolder input that you extracted in step 1
! If you’re interested in getting arabic shaping in the Browser, pull file /system/lib/libwebcore.so and place it in subfolder input as well !
3. Double click on commands.exe. Do not close the black cmd screens that will pop up. Once the patch is done, you should get a patched framework.jar in the subfolder output.
4. Put file output/framework.jar in .zip at /system/framework/
5. Put file output/libandroid_runtime.so in .zip at /system/lib/
6. Put file output/libicuuc-arabic.so in .zip at /system/lib/ This is extremely important, failing to place this file will result in a boot loop of your deivce
7. If file exists: Place file output/libwebcore.so in .zip at /system/lib/
8. If file exists: Place file output/lib__bcore.so in .zip at /system/lib/
Also included, the Aljazeera fonts in fonts. You can place these in /system/fonts and reboot Sometimes permissions and xml data doesn’t get updated correctly resulting in corrupted data entries. If you receive a bunch of Force Closes after a reboot, you’ll need to Factory Reset.
nice info dude
How about Asian language? Eg. Chinese? Any method to make a patch?
Sent from my GT-I9003 using XDA Premium App
Nice One dude as many are requesting for that...
I'll try it man... but if this works then you are officially my new Hero !!!
Ok it works Fine man you r a genius !!! i used it on Cranium.zip & then i flashed it & it now can read Arabic fonts Properly, but Arabic is not included in the Local settings therefore no Arabic Keyboard...
but i have one more Question though... if i used a theme & replaced Framework.jar file do i have to patch it again ?!
iceman-x9 said:
Ok it works Fine man you r a genius !!! i used it on Cranium.zip & then i flashed it & it now can read Arabic fonts Properly, but Arabic is not included in the Local settings therefore no Arabic Keyboard...
but i have one more Question though... if i used a theme & replaced Framework.jar file do i have to patch it again ?!
Click to expand...
Click to collapse
Yes, you have to apply the path again.
See attachement for an arabic keyboard, install it and then under "language in and output" (or sth like that) aktivate it. (I idon´t tested it, but it should work)
PS: Press thanks button
Thanks fuss132 Nice tutorial it will help a lot
thanx man realy>>ur my hero
thanks fuss.....i had already found this,but the whole page was in arabic and translate sucks
Thanks for the Info
you are my hero
it works like charm
Only works on custom ROM's, meaning I can only use it if i have Cranium or CM7 when they make it right?
Baladya said:
Only works on custom ROM's, meaning I can only use it if i have Cranium or CM7 when they make it right?
Click to expand...
Click to collapse
thats not true i'm using it in XXKPM without any problems
thx... work fine in my xxkpm...
does any one test it on XXKB3 ?
nimafire said:
does any one test it on XXKB3 ?
Click to expand...
Click to collapse
It´s working on Froyo, too.
Only requires Android 2.1+
problem in messages
thanks for the big efforts , but i have problem when sending messages from my i9003 2.3.6 custom rom ,the recipient have squares instead from arabic letters.
could you help please....

[ROM ORIGINAL & ROOTED EDITION] RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1 [UPDATE 12/16]

[ROM ORIGINAL & ROOTED EDITION] RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1 [UPDATE 12/16]
Searching the original RUU ROM?
RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1_Radio_12.65.60.29_26.14.04.28_M_release_225512_signed.exe
Take this & enjoy!
http://www.multiupload.com/74DIWTH88Y
Mirror:
http://www.multiupload.com/FKJ8B7Q0QM
>>>>> UPDATE <<<<<
OK, folks!
For some unknown reasons a lot of users asking for a REAL ORIGINAL ROOTED ROM. This is a PD98IMG.ZIP file which is flashable via the boot loader.
Now I'll present you this ROM at this download:
http://www.multiupload.com/AURLLESU5V
- EVERYTHING is still ORIGINAL
- NOTHING has changed or added or modified at this ROM
- Bussybox is installed
- Toolbox is installed
- Superuser 3.07 is installed
The ONLY exception is the RECOVERY partition. I still like to use the 4ext to do some backups and other things. That's the reason why I keep this partition within the ROM.
Finaly here are common questions and answers about this ROM:
Q: How to update?
A: Just download the PD98IMG.zip and store it on your SDCARD. Unplug the batterie, plug it back and press the VOL-DOWN key for enter the bootloader. That's it.
Q: Does it work on every device?
A: Don't know. But it's working on every device with S-OFF
Q: This ROM is a peace of crap! Why the hell the "lib" folder is not within the "system" partition?
A: This question you should ask HTC. If you need the "lib" folder within the "system" partition please use an other image than this because this is ORIGINAL!
Q: Where I can add some support question about this ROM?
A: Use the trash bin because I will not give any support or add features or anything else to this ROM.
Q: Do you plan to do other things with this ROM?
A: NO!!!!!!!
Q: I love this ROM. But I want to do some changes and release this to the community. Is this O.K.?
A: From my point of view this ROM is Public Domain. Don't ask. Enjoy it and do it!
Regards!
http://forum.xda-developers.com/showthread.php?t=1382235
denied1977 said:
http://forum.xda-developers.com/showthread.php?t=1382235
Click to expand...
Click to collapse
This one is rooted and it's not the EXE
MrT69 said:
This one is rooted and it's not the EXE
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1335027
?
Damn!!!
Sometimes I hate your postings @ Mike1986
Sorry m8 - wasn't aware that this ROM is already available...
MrT69 said:
Damn!!!
Sometimes I hate your postings @ Mike1986
Sorry m8 - wasn't aware that this ROM is already available...
Click to expand...
Click to collapse
multiupload is much better so its a plus =D
how can i root it, i unintentionally install it on my phone and i cant get rid of
U need to install the recovery.img from mike1986 ROM 6.1x
How to do?
Make a PD98IMG.ZIP file which contains the android file and recovery.img
Flash this and then install the superuser 3.07
But fyi - the lib folder is outside the system.img
So if you want to install additional things to this ROM it might be that this will not work.
Sent from my Desire HD using XDA App
is it official htc rom
evanbigfan said:
multiupload is much better so its a plus =D
Click to expand...
Click to collapse
http://driphter.com/index.php?topic=3872.0
better than multiupload
""desire s"" ??
i tried to de-odex this rom with dsixda kitchen but unsuccessful due to 2 files not successfully de-odex in app folders....
anybody got any luck in de-odex the rom?
arzme said:
i tried to de-odex this rom with dsixda kitchen but unsuccessful due to 2 files not successfully de-odex in app folders....
anybody got any luck in de-odex the rom?
Click to expand...
Click to collapse
the two that dont get deodexed is maps and google voice if im not mistaken. just replace them with the apk's from market. This happens for most all htc ruu's.
The important files still get deodexed though, and thats what matters.
JSLEnterprises said:
the two that dont get deodexed is maps and google voice if im not mistaken. just replace them with the apk's from market. This happens for most all htc ruu's.
The important files still get deodexed though, and thats what matters.
Click to expand...
Click to collapse
u are spot on abt the 2 files that fail to de-odex.
need a clarify abt "just replace them with the apk's from market".... u mean, while de-odex, just remove the file and after flashing the rom, then install the 2 files from market...
or i need still to replace the file before zipping them back into roms?
anyway, thanks for sharing the knowledge.
arzme said:
u are spot on abt the 2 files that fail to de-odex.
need a clarify abt "just replace them with the apk's from market".... u mean, while de-odex, just remove the file and after flashing the rom, then install the 2 files from market...
or i need still to replace the file before zipping them back into roms?
anyway, thanks for sharing the knowledge.
Click to expand...
Click to collapse
Use whatever Rom you have on your device now, use a file explorer to get into /data/app and copy the Apk's specific to maps (com.google.maps) and voice (com.google.[somethingorother].voice) and copy em to your sd. Then plug in to pc, choose storage mode, and move em to your pc. Or if you're familiar with adb commands, you can go that route, but you need to know the exact filename of the Apk.
Sent by magic from my fingertips
JSLEnterprises said:
Use whatever Rom you have on your device now, use a file explorer to get into /data/app and copy the Apk's specific to maps (com.google.maps) and voice (com.google.[somethingorother].voice) and copy em to your sd. Then plug in to pc, choose storage mode, and move em to your pc. Or if you're familiar with adb commands, you can go that route, but you need to know the exact filename of the Apk.
Sent by magic from my fingertips
Click to expand...
Click to collapse
okay understood. thanks.
arzme said:
okay understood. thanks.
Click to expand...
Click to collapse
ok, so click thanks.
JSLEnterprises said:
ok, so click thanks.
Click to expand...
Click to collapse
it didn't work....
first method: before odex, i replaced the map.odex - de-odex didn't work
second method: delete both the map.odex & map.apk, then replaced with a map.apk - rom hangs on boot up
third method: delete map.odex & map.apk and continue to cook - rom hangs on boot up
arzme said:
it didn't work....
first method: before odex, i replaced the map.odex - de-odex didn't work
second method: delete both the map.odex & map.apk, then replaced with a map.apk - rom hangs on boot up
third method: delete map.odex & map.apk and continue to cook - rom hangs on boot up
Click to expand...
Click to collapse
Delete the apks that didn't de odex and then create a seprate folder with the data/app option put the 2 you want from market/phone in to that folder should be ok then
sent from my dhd
able to successfully de-odex and cook the rom.... my initial problem when the rom can't boot is due to the rom tht i use to cook... i have to do again, the extraction of the rom from the RUU. maybe my first time, the rom got corrupted.
thanks to all tht one way another, give their helps.

APK-Fire - tool to add language from 1 rom's apk files to an other

Hi,
After flashing a custom rom I noticed that rom didn't have my language, so I wanted to add it to this custom rom.
After a great and long journey and thx to the info found on this forum I managed to add the language I wanted.
During the journey I started to write a small tool to make the whole process a bit less painful. The tool has been growing from as simple batch decomiple - recompile apk tool to 1 that adds the value folders and do the resources.arsc switch thing.
This is my 1ste release and is still a beta version so still has some errors, stuff to be added and bad code. But still I hope some of you can use it.
If you got any questions just post or pm
Greetings
Installing the tool.
Just extract all files to your root folder and run the ignite script as root. That's it.
There is a help option that guide you step by step.
EDIT: Small adjustment in the language lists and added the Custom_language_list option
EDIT: Like I said tool is still in beta stage, it seems that yesterday in my hurry to get it ready I screwed up big time (like command to make a cp without telling where to copy to) anyway already beta version 1.1 is out now
UPDATE: 1ste real release out now.
Killed some more bugs
Updated the help page
Added some layout editing
Added or updated the log handeling
how can i insert pt language on last jaggyrom for htc explorer ?
I would appreciate if u created a 'How To' for Super Noobs like me ...
a windows version
If there is a windows version,it will be more appreciated.
bascro said:
I would appreciate if u created a 'How To' for Super Noobs like me ...
Click to expand...
Click to collapse
There is a help function in the tool that guide through most of the steps from the moment you got your hands on tha apk files.
So now the question is how to get those apk files.
Well I like to use Android-Kitchen to unpack rom's, and you'll need that tool anyway to add the new apk files to the rom.
1. Decompile the rom containing the language you want. (Can be stock-rom, your original rom, other custom,...)
2. Copy all the apk files from the systeml/app folder to the stock_APK.
3.Copy the framework-res.apk and com.htc.resources.apk from the system/framework folder to flare/framework and the stock_APK folders
The rest of the how you'll find when you start APK-Fire and use option 'h'
Note: Not all of the apk file will decompile without errors, those that give errors (like market, street, superuser,...) you don't realy need to add language so just delete those apk's from the stock_APK and the decompiled_APK folders.
pedrofidalgo said:
how can i insert pt language on last jaggyrom for htc explorer ?
Click to expand...
Click to collapse
To add portugees you can choose to add all the languages from the South_West_Europe list.
or
you put pt and pt-rPT (each on a diff line) to the Custom_language_list.
then follow the steps you'll find in help option.
picodaren said:
If there is a windows version,it will be more appreciated.
Click to expand...
Click to collapse
There is a windows version called APK Edit
Only prob here is that you have to open the apk that has the wanted language, copy those folders, open the apk from the rom where you want to add the language to and repeat this process for all the apk files 1 by 1.
If you take this road plz let me know how long it took yah
i have jaggy rom. and a backup of my stock rom in Portuguese. can i install pt language on jaggy rom ?
Need a little help .. : p
pedrofidalgo said:
i have jaggy rom. and a backup of my stock rom in Portuguese. can i install pt language on jaggy rom ?
Need a little help .. : p
Click to expand...
Click to collapse
sure you can.
Step trough:
1 Set-up Android-kitchen
2 Decompile your stock rom
3 copy the content of the system/apk folder to the APK-Fire/stock_APK
4 copy the 2 apk files from system/framework to APK-Fire/stock_APK AND APK-Fire/flare/framework
5 Start APK-Fire and install the frameworks (option 1)
6 Decompile the apk files (option 2)
7 Add the language code to the Custom_language_list each language code get's it's own line. (you find this file in the APK-Fire/lighter folder) for portugees you add something like this:
pt
pt-rPT
8 Get the value folders containing the portugees language (option 4)
9 Now you can choose to back up the stock_apk and the decompiled_apk folders (option 6 / 1) or delete the content of those 2 folders.
10 Got back to the kitchen and decompile the Jaggyrom and repeat the steps 2 till 6 as before.
11 Now copy the value folders you took from the stock rom to the jaggyrom (option 5)
12 Recompile the apk files (option 3)
(check log for errors, warnings you could ignore but errors need attention, be aware that non stock apps mostly will give errors but those also don't need additional language)
13 Do the resources.arsc switch thing to fool the signature security (option 6)
(for more info what this is all about read the switch_resources script)
14 Copy your upgraded apk files from the APK-Fire/firebox/translated_APK folder to the Android-kitchen/WORKING_****/system/app (don't forget to copy the 2 framework apk files to the Android-kitchen/WORKING_****/system/framework folder and not the app folder)
15 Cook your rom
16 Flash the rom
17 Hold your fingers crossed while booting
18 Hopely enjoy the costum rom in your desired language.
Hope this helps you.
Cosmoon said:
sure you can.
Step trough:
1 Set-up Android-kitchen
2 Decompile your stock rom
3 copy the content of the system/apk folder to the APK-Fire/stock_APK
4 copy the 2 apk files from system/framework to APK-Fire/stock_APK AND APK-Fire/flare/framework
5 Start APK-Fire and install the frameworks (option 1)
6 Decompile the apk files (option 2)
7 Add the language code to the Custom_language_list each language code get's it's own line. (you find this file in the APK-Fire/lighter folder) for portugees you add something like this:
pt
pt-rPT
8 Get the value folders containing the portugees language (option 4)
9 Now you can choose to back up the stock_apk and the decompiled_apk folders (option 6 / 1) or delete the content of those 2 folders.
10 Got back to the kitchen and decompile the Jaggyrom and repeat the steps 2 till 6 as before.
11 Now copy the value folders you took from the stock rom to the jaggyrom (option 5)
12 Recompile the apk files (option 3)
(check log for errors, warnings you could ignore but errors need attention, be aware that non stock apps mostly will give errors but those also don't need additional language)
13 Do the resources.arsc switch thing to fool the signature security (option 6)
(for more info what this is all about read the switch_resources script)
14 Copy your upgraded apk files from the APK-Fire/firebox/translated_APK folder to the Android-kitchen/WORKING_****/system/app (don't forget to copy the 2 framework apk files to the Android-kitchen/WORKING_****/system/framework folder and not the app folder)
15 Cook your rom
16 Flash the rom
17 Hold your fingers crossed while booting
18 Hopely enjoy the costum rom in your desired language.
Hope this helps you.
Click to expand...
Click to collapse
i dont know how to do it :/
if i give you my backup can you add pt language for the last jaggyrom ?
cumps
really??
I've already robbed the experience from you of wandering through the jungle of this mystic entity called Android by making the wandering seem nothing more then a walk through the park.
And now you tell me you don't want to know this mystic entity?
Nah I don't buy that, you almost got me there.
I'm willing to guide you through every step but I refuse to carry you.
If you'r on IRC or msn or I can meet you there to start your journey.
Btw at the current rate Jaggyjags is spitting out rom's I can't keep up adding stuff for everyone so I go by the rule:
You translate 1 version of a rom for a man and you made him happy till the release of the next version. You teach a man how to translate a rom and you made him happy for many versions
pedrofidalgo said:
i dont know how to do it :/
if i give you my backup can you add pt language for the last jaggyrom ?
cumps
Click to expand...
Click to collapse
seriously, I know you like your phone and want get the best out of it but your maximum effort is installing .zip roms or .zip updates?
you've got 2 options.
1. Stick with whatever you have right now: your Portuguese backup or any available custom rom.
2. research, research again, try things out and learn. Try to stop asking people to do things for you. It's difficult, I know, specially when you are used to it, but don´t worry, it always is.
Believe me, it is a really nice feeling when you get things done on your own.
good luck
Would you teach us HOT TO DO IT MANUALLY (without using APK Fire)
pmeler said:
Would you teach us HOT TO DO IT MANUALLY (without using APK Fire)
Click to expand...
Click to collapse
Well.... all right then
I've explained most of how to add language already, k most of it in close relation with the use of APK-Fire. Anyway I'll try to explain the whole process starting from the base rom till the modified one.
Step 1
Check if your (custom) rom really really doesn't have your language. Try also 'morelocal' app. This simple step can save you lot's of time
Step 2
Now that you't sure that the (custom) rom doesn't have your language or you just want to add more languages to the rom you build your self you have to go and look for roms that do have the language(s) your want to add.
Possible finding places:
- different versions of the leaked stock rom
- Others people custom rom's
- Rom's for other devices. ! Won't work for the 2 framework apk files, but has good chances to work with the other apk files !
Step 3
Question now probably is how can I find out what languages a rom contains (specialy those for other devices). Well easy, you just have to dismantle the rom's and to be sure a few apk files.
The easyest way to dismantle a rom is to use Android-Kitchen. This tool doesn't need alot of installing or modification but I do recommend you read the how to etc.
So now you have easy access to all the content files of the rom.
Take a few apk files from the system/app folder and dismantle them with 'Apk Tool' or if you realy want to go hardcore 'aapt'. And check the 'app-name'/res for 'values-*' folders that you need.
Step 4
Now that you've found the folders containing the translation (those values-* folders) you've got to copy them to to 'app-name'/res of the afk file from the rom you want to add language to.
dismantled app from copy value folders dismantled app from
rom with language -----------------> rom without language
Step 5
recompile the dismantled app where you just added the value folders to
Step 6
You thought you where allmost done didn't you??? Now the real fun part just starts.
In order to bypass the security that check for the integity of the apk file we need to cheat abit.
You need the new apk file and the original apk (the one without the language)
*rename the 'app-name'.apk file (from both version) to 'app-name'.zip
*delete the resources.arsc file from the original 'app-name'.apk (now temporaly 'app-name'.zip)
*take that same file from the new apk file and copy it to the original apk
* rename the original back from 'app-name'.zip to 'app-name'.apk
* Copy that apk file back into the rom (Android-Kitchen remember)
Step7
Now you repeat this proces for ALL apk files you find in the rom.
Yup all +100 apk files from 1 rom + the same +100 apk files from the other rom need to get this treatment.
Step 8
Cook rom
So you see 8 simple step is more or less what it takes.
Same tutorial but better here
Even more resources here and here
Updated the tool
Cosmoon said:
Updated the tool
Click to expand...
Click to collapse
It doesn't seem to do the last step for me. The one that is supposed to copy the resources.arsc. It just creates another copy of the stock, without the new resources.arsc.
Any idea of what's going on? Would be a flavor to not have to do this manually!
Hmm I fully tested the latest update with the 2 rframework apk files and everything worked fine.
Are you sure that it's just a copy of the stock apk folder?
The switch_resources script does all the final steps. renaming, delete file from stock, copy from new to stock and rename back.
As I still have to add loggin to this part you should see an output on screen showing what the script is/was doing.
While that part is running you should see a folder called 'temp' (inside firebox or 1 of the subfolders of firebox).
Inside the firebox/recompiled_APK you should find a folder for each app containing the resources.arsc file.
And as last check you can compair the size of the 3 diff apk files. (stock, recompiled and translated). If I'm not mistaken the translated is the smallest (how strange it may sound)
Also make sure the tool is in your root folder.
If possible send me the output you get during this fase.
Cosmoon said:
Hmm I fully tested the latest update with the 2 rframework apk files and everything worked fine.
Are you sure that it's just a copy of the stock apk folder?
The switch_resources script does all the final steps. renaming, delete file from stock, copy from new to stock and rename back.
As I still have to add loggin to this part you should see an output on screen showing what the script is/was doing.
While that part is running you should see a folder called 'temp' (inside firebox or 1 of the subfolders of firebox).
Inside the firebox/recompiled_APK you should find a folder for each app containing the resources.arsc file.
And as last check you can compair the size of the 3 diff apk files. (stock, recompiled and translated). If I'm not mistaken the translated is the smallest (how strange it may sound)
Also make sure the tool is in your root folder.
If possible send me the output you get during this fase.
Click to expand...
Click to collapse
They are identical, not even smaller so Although i was running this in cygwin on windows so it might be that. I'll try to boot it up in ubuntu to see if it's any difference Could be the su that's messing with me in cygwin :S
leolulz said:
They are identical, not even smaller so Although i was running this in cygwin on windows so it might be that. I'll try to boot it up in ubuntu to see if it's any difference Could be the su that's messing with me in cygwin :S
Click to expand...
Click to collapse
Never tried it on windows with cygwin, I'm running a debian linux, so that could be the thing that's messing it up.
Still good to know that only that part doesn't work on windows, I'll see if I can modify the script.
THANK YOU Cosmoon !
I asked because I want to remove unsued language from framework-res.apk to make it slimmer
Cosmoon said:
Never tried it on windows with cygwin, I'm running a debian linux, so that could be the thing that's messing it up.
Still good to know that only that part doesn't work on windows, I'll see if I can modify the script.
Click to expand...
Click to collapse
Ye, but it could work although, i never checked the su/root stuff, kinda rushed it yesterday to see how it worked Anyways it's a nice script and ill love to see this project getting further
pmeler said:
THANK YOU Cosmoon !
I asked because I want to remove unsued language from framework-res.apk to make it slimmer
Click to expand...
Click to collapse
Hmm never thought about that. Only thinking of adding stuff but having a option to remove can be handy to.
I'll add it in the next update.
Thx great idea man

(Arabic Persian support) Work on all Android ROMs

Hey guys
Arabic support on gingerbread and previous versions of android is really a pain in the ass .. at last there is a patch to work on any ROM
Its simple and effective
1. You need a rooted phone.
2. You need the ROM's source (zip file).
3. A ClockworkMod Recovery to flash the created zip file.
Disclaimer: I am not responsible if u bricked your phone.
How to do it:
1. Download the tool from
For All Roms - here.
For MIUI - here.
2. Extract the tool to a folder.
3. Search for a folder called input folder and open it.
3. Open your ROM source with any zip software or extract it.
4. Search for 3 files
A. framework.jar - Found in: /system/framework
B. libwebcore.so - Found in: /system/lib
C. libandroid_runtime.so - Found in: /system/lib (HTC Sense and AOSP ROMs ONLY)
5. Copy these 3 files in the input folder we have previously opened.
6. Run commands.exe
7. Follow on screen instructions till it finishes making your flashable Arabic - Persian fix
8. You will find your fix in the output folder, copy it to your SD card and flash it through the recovery (Make a nandroid backup before flashing it)
At last your ROM can read the Arabic - Persian letters correctly. Enjoy
P.S i am not the developer of this tool i just tested the tool and it works like a charm. All the thanks goes to the devs of this tool.
P.S Your rom must be deodexed, take care of this.
Moved to proper section
orb3000 said:
Moved to proper section
Click to expand...
Click to collapse
Thanks a lot .. sorry I posted it in the wrong section
Sent from my HTC Vision using xda premium
Thanks, your post lead me to the original
Thanks a lot dear, ur post lead me to the original now I must be one more happy user lol
usmandulmial said:
Thanks a lot dear, ur post lead me to the original now I must be one more happy user lol
Click to expand...
Click to collapse
Happy you are happy .. hit the thanks button if you are that happy
Thanks for the effort,
It is actually MIUI RTL fix which you can find the original one here:
Code:
miuiandroid.com/community/threads/arabic-and-persian-rtl-fix-30-10-2011-huge-update.723/
** Full Credit to [roenano] **
fakhrodn said:
Thanks for the effort,
It is actually MIUI RTL fix which you can find the original one here:
Code:
miuiandroid.com/community/threads/arabic-and-persian-rtl-fix-30-10-2011-huge-update.723/
** Full Credit to [roenano] **
Click to expand...
Click to collapse
The link u provided is a similar patch but it works for MIUI only I tried it b4 .. and when u flashed it to another ROM u r stuck at boot loop
Sent from my HTC Vision using xda premium
using arabic_script for samsung p1010 wifi
i copy and pasted 3 files from sys of my android to input folder but my framework.jar is too small (12.2 kb) compare to original one and it gives error while using commands.exe .
any suggestions?
edit: your rom must be deodexed ,took me half a day to find this out. .check that before u do anything
Thanks a lot dear
Nice
Thank you !!!!!!! :victory:
I flashed the output zip file through recovery, the process was aborted so the flashing failed. The ROM is fine, nothing damaged.
My question is:
Is it safe if I replaced the output files inside the ROM's zip file and then install the ROM again?
Yes
cat_Thirst said:
I flashed the output zip file through recovery, the process was aborted so the flashing failed. The ROM is fine, nothing damaged.
My question is:
Is it safe if I replaced the output files inside the ROM's zip file and then install the ROM again?
Click to expand...
Click to collapse
Yes it's perfectly safe. I always did that with MIUI roms, by putting the arabic in the zip file then flash it. To be 100% safe just do a nandroid backup before flashing the new rom with the arabic files. Hope that helps, try it and get back to me.
h.motawee said:
Yes it's perfectly safe. I always did that with MIUI roms, by putting the arabic in the zip file then flash it. To be 100% safe just do a nandroid backup before flashing the new rom with the arabic files. Hope that helps, try it and get back to me.
Click to expand...
Click to collapse
I put the arabic files into the ROM zip file, wiped data and cache and performed a nandroid backup.
But when I tried installing the ROM with arabic files it said that the installation is aborted! What could be my mistake?
This is the exact text displays after the failed installation:
Installing update...
E: Error in /sdcard/Creed_3.5_totoro.zip
(Status 0)
Installation aborted.
I use Creed ROM 3.5 for Samsung Galaxy Y.
Am I using the right ROM for the right device? or can u help me get through this problem?
cat_Thirst said:
I put the arabic files into the ROM zip file, wiped data and cache and performed a nandroid backup.
But when I tried installing the ROM with arabic files it said that the installation is aborted! What could be my mistake?
This is the exact text displays after the failed installation:
Installing update...
E: Error in /sdcard/Creed_3.5_totoro.zip
(Status 0)
Installation aborted.
I use Creed ROM 3.5 for Samsung Galaxy Y.
Am I using the right ROM for the right device? or can u help me get through this problem?
Click to expand...
Click to collapse
Did u replace the right files as mentioned in the tutorial, just make sure that everything is going exactly as mentioned above or in the tool itself. I tried this tool with more than 10 roms and it worked perfectly with every rom coz it injects the arabic to the framework itself. Please try again and make sure everything is done in the right way and get back to me.
Thank you very much!
I messed up before, but now...
My phone can read and write Arabic letters properly!
before i was worried because it won't write Arabic, but now I found the option in the Ice cream sandwich keypad.
Thank u so much!
At last
cat_Thirst said:
Thank you very much!
I messed up before, but now...
My phone can read arabic letters properly!
Only it cannot WRITE arabic, what to do?
I went to:
Settings > Locale and text > Could not find arabic
I also checked the keypad settings but there's no arabic to write!
Click to expand...
Click to collapse
I am happy it worked for you at last. To write arabic download a third party keyboard that supports arabic. My recommendation is swiftkey 3, it's an amazing keyboard. If u r using the market alternative "Aptoide" add my store at http://haithammotawee.bazaarandroid.com or http://haithammotawee.aptoide.store.com and u will find the application on it.
Happy i could help you, enjoy ur Arabic phone.
P.S like the post please if it was helpful to you.
h.motawee said:
I am happy it worked for you at last. To write arabic download a third party keyboard that supports arabic. My recommendation is swiftkey 3, it's an amazing keyboard. If u r using the market alternative "Aptoide" add my store at http://haithammotawee.bazaarandroid.com or http://haithammotawee.aptoide.store.com and u will find the application on it.
Happy i could help you, enjoy ur Arabic phone.
P.S like the post please if it was helpful to you.
Click to expand...
Click to collapse
Sir I Am Using Huawei U8800 With Custom Gingerbread 2.3.6 ROM. I Tried Your Fix But Its Now Working. I Stuck On Huawei Logo So Please Help Me Sir.
Didn't work
while flashing, it says error status (0) and stops.Any help?
iAhmedMaher said:
while flashing, it says error status (0) and stops.Any help?
Click to expand...
Click to collapse
Does it say any other info or just err status (0)?!
hello
i have i9070 galaxy s advance
and i downloaded Romes jplk2 with Persian language and Ublph without persian language
jplk2 and ublph have stock rom
how can transfer persian language from jplk2 to ublph?
ublph better than jplk2

[TUTO] Add Arabic And Hebrew Support For Android Devices (Step By Step)

Some Rom doesn't support full arabic language, for exmaple the last "Runnymede v6 sense 3.5 rom" so here's the simpliest TUTO of "How To Make Your Device Support Arabic Language:
Patch Features :
-Arabic support in gmail.
-Arabic support in the browser.
-Arabic support in messaging app.
-And More...
___________________________________________________________________​
So Here's The TUTO:
1) Download the patch below and extract it to a folder on your computer.
2) Pull /system/framework/framework.jar from your phone and place it in the subfolder input that you extracted in step 1.
3) If you’re not using a CyanogenMod ROM, then you’ll also need to pull /system/lib/libandroid_runtime.so from your phone and place it in subfolder input that you extracted in step 1.
4) If you’re interested in getting arabic shaping in the Browser, pull file /system/lib/libwebcore.so from your phone and place it in subfolder input as well.
5) Double click on commands.exe. Do not close the black cmd screens that will pop up. Once the patch is done, you should get a patched framework.jar in the subfolder output.
6) Version 0.800 provides a recovery flashable file in folder output. Place that on your sdcard, reboot into recovery and flash it. If the flashing through recovery didn’t work for some reason, you’ll need to do the following manually:
-Put file output/framework.jar in your phone at /system/framework/
-Put file output/libandroid_runtime.so in your phone at /system/lib/ (if this file exists, it shouldn’t if you’re arabizing CM6).
-Put file output/libicuuc-arabic.so in your phone at /system/lib/ This is extremely important, failing to place this file will result in a boot loop of your deivce.
-If file exists: Place file output/libwebcore.so in your phone at /system/lib/
-If file exists: Place file output/lib__bcore.so in your phone at /system/lib/
7) You'll find also included the Aljazeera fonts in fonts. You can place these in /system/fonts and reboot.
8) Sometimes permissions and xml data doesn’t get updated correctly resulting in corrupted data entries. If you receive a bunch of Force Closes after a reboot, you’ll need to Factory Reset.
- Rey
All credits g'too the real maker of tuto: madmack's
This is a dupe if the HebScript by Ron Regev (classicaldude) of the iAndroid Community - but with allmost all credits stripped (and surly without any in the pst itself!).
http://iandroid.co.il/forum/post306633.html
the developres of this patch (same as the guys who fixed all RTL issues in CM7):
Erasmux, Mena and Classicaldude.
from the files he posted:
"# MortScript Adaptation of hebfix bash script
# Initial hebrew fix installation script by Nadav Halwany
# Updated for global hebfix and adapted for MortScript by Ron Regev"
there are some post here in XDA with the same patch - but with all the credits.
Helpin' people is not a crime.
IpDo said:
This is a dupe if the HebScript by Ron Regev (classicaldude) of the iAndroid Community - but with allmost all credits stripped (and surly without any in the pst itself!).
http://iandroid.co.il/forum/post306633.html
the developres of this patch (same as the guys who fixed all RTL issues in CM7):
Erasmux, Mena and Classicaldude.
from the files he posted:
"# MortScript Adaptation of hebfix bash script
# Initial hebrew fix installation script by Nadav Halwany
# Updated for global hebfix and adapted for MortScript by Ron Regev"
there are some post here in XDA with the same patch - but with all the credits.
Click to expand...
Click to collapse
Hey Yo' Wait ! I've Post this **** to help people i know it's not mine but i've post it here cause i know that there's alot of people who have that issue
-So Plz Don't Be That Hero Who Everyone Talks About --' لا حول ولا قوة الا بالله
HELPIN' PEOPLE IS NOT A CRIME.
l3az wald lablad
Helping people is not a crime, yes, but stealing the works of other people and not giving them credit is. Please credit the person you copied this information from and link to his/her website.
YoUnEs DeX said:
l3az wald lablad
Click to expand...
Click to collapse
Nadé khouya
Alaa said:
Helping people is not a crime, yes, but stealing the works of other people and not giving them credit is. Please credit the person you copied this information from and link to his/her website.
Click to expand...
Click to collapse
I'm not stealing here dude! I'm new here and it's easy to put copyrights so DONE
cannot copy to lib folder
thanks for sharing really appreciating, i have a bigger problem, after i did all your instruction the android won't allow me to paste into the lib folder and i got a msg "access denied"
i tried to make another scenario which is adding these files to the original zip build and to make another installation but also i got abort
any idea how can i sort this out
thanks
Nabil

Categories

Resources