yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] mahdibassam:
Hi everyone,

i had a look at the tutorial on the Blog, and i don't understand how I'm supposed to do this.

Can someone give me more simple instructions to enable arabic/farsi on my sgs 2?
[Galaxy S II Themes and Apps] iznee:
Its just a straight forward process...downlod and follow instructions given..i am now running vr 1.4 with black theme and a working arabic support for the browser and the rest...thanks to madmack again.
[Galaxy S II Themes and Apps] zabihjan:
Thank you will try now
[Galaxy S II Themes and Apps] Kevin_seymer:
Hi/Salam

I use this rom

http://xdaforums.com/showthread.php?t=1125140

And I want arabic support in my sms and browser...what steps should I follow?
[Galaxy S II Themes and Apps] zabihjan:
Testing now

Update

I installed the second link on first page. Do i still have to do the font too. I check websites such as bbc Persian and ll that are working fine.
[Galaxy S II Themes and Apps] xenastro:
Installed Villain ROM 2.0 and then installed Arabic fix (outside browser) and it worked fine, now installed the browser+gmail fix and everytime I open the browser it crashes.

Villain ROM 2.0 is based on the leaked 2.3.4 btw.

Anyone was able to make Arabic work in Browser and Gmail yet?
[Galaxy S II Themes and Apps] soyef:
It works but after applying most other apps just close without warning
[Galaxy S II Themes and Apps] ioluas:
Same here, framework patcher worked fine but not the Browser/Gmail one. I guess we'll have to wait for madmack to post libwebcore.so for 2.3.4 build. How I miss CM7!
[Galaxy S II Themes and Apps] madmack:
so the 2.3.3 browser file don't work :(

I'm still away from town nowadays and wont be back for another week so I can't test things myself. its a good sign that the 2.3.3 files at least don't cause any bootloops. I'll definitely need to run some checks myself when I get home and analyze the logs. perhaps I can come up with a solution, otherwise we'll have to wait until either Samsung release the source code for 2.3.4 or the middle east rom gets released. Whichever comes first :)
[Galaxy S II Themes and Apps] yousif666:
I got FC alot on gingerbread 2.3.4 i also tried the patch and it didn't work, it FC gmail.
[Galaxy S II Themes and Apps] madmack:
its tested and it works perfectly fine with 2.3.4.

follow the steps more rigorously :) the problem is from your end.
[Galaxy S II Themes and Apps] Dark_Lord0122:
would the libwebcore.so work on lite'ning rom v2.1 ( 2.3.4 ) ??
[Galaxy S II Themes and Apps] theone_s_me:
It's not workin with Lite'ning Rom v2.2 XXKG1 based on 2.3.4 :(

hope there is a fix for it soon....

thnx Madmack for the great efforts...
[Galaxy S II Themes and Apps] yousif666:
You are right it was from my end for the patch i mean.

But for the browser no. I installed it via cwm and when i enter gmail app and i enter any email i get wite screen and then it return me to the inbox. Also with the browser when i open it it exit by itself.

Running 2.3.4
[Galaxy S II Themes and Apps] alsafady89:
Go east go west madmack is the best! lol
[Galaxy S II Themes and Apps] st70:
Does not work with Villain 2.1

Hello,

I tried the patch with Villain Rom 2.1, but I get an error message: could not unzip classes.dex

any solution? :confused:

Thanks.
[Galaxy S II Themes and Apps] MAJED.y:
Madmack...

now there's a challenge upon us,

How can we arabtize ODEXED framwork using your Technic. ? as every new KG2 Rom has an ODEXED framwork.

If we tried to Deodexed the Framework this will effect the browser performace "H/W Accelerator OFF"..

Waiting for your in put..
[Galaxy S II Themes and Apps] xenastro:
I have posted a fix for Villain ROM 2.1 in his ROM thread, it uses the deodexed framework, you can use any browser from market.
[Galaxy S II Themes and Apps] madmack:
It won't work with his new odexed ROM. My patch requires a deodexed framework.

The problem with our Galaxy S2 ROMs are the dated tools we have for deodexing. Baksmali in particular is having some bugs with some op codes when we're deodexing the stock framework.odex file. There are two options available for us:

a) the old school way, just deodex the entire framework and live with a software accelerated browser. pretty much what everybody was doing up to this point.

b) deodex framework.odex, patch it, and reodex it and apply the signature patch. Its a little advance but it should get the job done. However, browser will still be software accelerated due to the fact that we deodexed it and messed up the bytecodes.

Best solution ? wait until baksmali gets fixed. I have faith that this will happen sooner or later given how popular our device is :) Unfortunately I don't have a lot of experience deodexing or with the dalvik opcodes so I can't contribute much. But for the meantime, the two options above should do the job.

Awesome :) thanks.
[Galaxy S II Themes and Apps] ringrover:
just deodex the entire framework and live with a software accelerated browser. pretty much what everybody was doing up to this point.

how we can ???? :mad::mad::mad:

i tried but no way .... i tried to do it with Criskel rom V4.... but it stick the phone
[Galaxy S II Themes and Apps] SirM2X:
First of all I wanted to thank Madmack for this awesome MOD.

I've got a question.

What if I wanted to use your version of the Aljazeera font on a ROM that already supports arabic (say JPKG2 for example)?

I'm asking because your fonts look exceptionally awesome and the default fonts of the Arabic ROM are ugly!

Now I tried replacing your DroidSansArabic.ttf with the one in the /system/font but when I restarted my phone, those ugly stock fonts were still there!

What do you suggest?

(I don't want to deodex the framework as I need the GPU accelerated browser and stuff)

Thanks in advance brother. :-)
[Galaxy S II Themes and Apps] TAEL:
Sir, copy both of these files into your fonts directory. (attached)
[Galaxy S II Themes and Apps] SirM2X:
Thank you so much Tali! ;-]

It worked like a charm. However there's this slight problem I'm having with the character چ

It's not connecting to its succeeding character... You know what I mean?

Do you have the same issue?
[Galaxy S II Themes and Apps] TAEL:
I don't have this issue. What's your ROM? I'm using KG2 without problem.
[Galaxy S II Themes and Apps] SirM2X:
I'm on the KG2 as well. Guess that's because I tampered with the lib files!

Gonna replace them back now.

Thanks again ;-]
[Galaxy S II Themes and Apps] angiogram:
Hi Madack

Thank you very much for your awesome arabic patch. I got an issue when I try to patch framework.jar and libandroid_runtime.so from Criskelo ROM v4. Can you kindly check or maybe do the patching for me please. I attached the file below. Thanks for your help.
[Galaxy S II Themes and Apps] ams84:
Browser FIX didn't work with KG2, anyone know wich browser reading arabic with KG2??

or I will wait for browser FIX for KG2
[Galaxy S II Themes and Apps] ameerxp:
Try opera, i have noticed that it can do that, not in all arabic sites but some of them, its better than nothing.
[Galaxy S II Themes and Apps] ams84:
thank you but flash don't work!!!!!:confused:
[Galaxy S II Themes and Apps] xenastro:
There is no browser fix for KG2 right now, unless you use the stock arabic ROM.
[Galaxy S II Themes and Apps] ameerxp:
Flash does work in opera, you have to click on the play button to make it play.
[Galaxy S II Themes and Apps] madmack:
yea, we don't have any 2.3.4 browser files yet folks. we'll need to be patient on that one until Samsung releases the sources or use Opera or Firefox to do the shaping job as they both work independently.
[Galaxy S II Themes and Apps] madmack:
If you want to use the custom font on the middle east ROMs you'll need to replace the font that's called GS45_Arab_AndroidOS.ttf instead of DroidSansArabic.ttf

I really don't understand how these guys are doing things, but the font on the OP should do the job. Remember, DroidSansArabic.ttf on International ROMs and GS45_Arab_AndroidOS.ttf on ROMs that natively support shaping.
[Galaxy S II Themes and Apps] ringrover:
Criskelo rom

Mad ...

Could you make patch for cris roms .. An Arabic patch ... The Ron is fully odexed..not deodexed ,,,, pls
[Galaxy S II Themes and Apps] madmack:
I can't do magic. if you read the OP and the requirements, you'll know that my patch only works on deodexed ROMs.
[Galaxy S II Themes and Apps] lovidore:
Any word on the 2.3.4 libcores? I haven't found a definitive answer regarding the current patch working on 2.3.4, just people saying one thing and others saying something totally different.
[Galaxy S II Themes and Apps] ringrover:
Unfortunately this the first time u cannot ;).....

Q: why the some of Devs build there roms as Odexed and some Deodexed ???
[Galaxy S II Themes and Apps] lovidore:
It's due to the laggy browser problem. A lot of de-odexed roms have a laggy browser and for some reason people find that unacceptable. I don't have this issue because I use 3rd party browsers anyway (Dolphin HD, Opera Mini, etc).
[Galaxy S II Themes and Apps] madmack:
patch works perfectly on deodexed 2.3.4 roms if you know what you're doing and follow the steps :) no reason for it not to work really.

the only problem we have now remains: no browser or gmail support in 2.3.4 and that's because we don't have the source code nor a leaked arabic rom that we can't extract stuff from like we did from 2.3.3.

i'm still waiting eagerly for the 2.3.4 source to be out so I can start experimenting with this new stuff. I never got a stable 2.3.3 working due to sammy's hacked bionic library (used to compile stuff and is not open source). so hopefully in 2.3.4 they haven't changed anything from AOSP's bionic.

@ringover

its not the first time man. there are certain things that you can and some stuff that you just can't. you have to estimate the time and effort it will take and see it happening before you can do anything about it. making it work perfectly on odexed or deodexed roms will require a working baksmali. I don't have the time or experience to patch that tool up so it'll remain unfixable for the moment am afraid.

Odexed roms are optimized at build time (no need for android's dalvik to optimize them on boot up) so they're generally faster. Deodexed allow you to customize things easily so that's why chefs prefer it. The speed shouldn't be noticable for the end user and that is the case with all devices afaik. The problem arises in our SGS2 because baksmali (the tool used to deodex odexed files) has a bug that is affecting our device and stock roms. If this bug gets sorted out, we'll be rolling deodexed roms again.
[Galaxy S II Themes and Apps] abu2x:
I'll pray in ramadhan next week so you can make it for odexed rom,...:o
[Galaxy S II Themes and Apps] madmack:
i'm as desperate as you guys are :o

only way to patch odexed roms is to deodex and reodex them. deodexing them ruins your life and your browser.. so its a no go :( that's also why i'm still on 2.3.3 atm.
[Galaxy S II Themes and Apps] mariotme:
hey guys 1 fast question anyone managed to arabize VR v2.3?
[Galaxy S II Themes and Apps] abu2x:
anyway,..many thanks for your great support on arabic android :o

i deodex the rom then patch the framework. work fine.

but how to reodex them after deodexed? or just let them deodexed?
[Galaxy S II Themes and Apps] lovidore:
It's best to leave them deodexed. The point of a deodexed rom is to allow customization of system apps (including fonts and text rendering) in roms. This isn't possible through odexed ROMs using madmacks method. (As far as I know)
[Galaxy S II Themes and Apps] madmack:
if you want to odex them back you'll need a tool called dexopt or dexopt-wrapper I believe. I had to do it once sometime previously so I don't have much experience with it. but googling these two should give you some pointers :)

you don't really need to reodex though as the post above me suggests :) if it ain't broke, don't fix it :)
[Galaxy S II Themes and Apps] alsafady89:
how can I deodex a rom? I want to apply your method to villainrom 2.3 but the framework is odex, I don't have much experience sorry if this is a stupid question lol I am trying to learn :D
[Galaxy S II Themes and Apps] alsafady89:
Forgot to mention I am not looking for arabic in the browser and gmail as i read it is not possible at the moment for 2.3.4, just text messages!
[Galaxy S II Themes and Apps] hero2003:
Need Help

Hey Guys , Can u Add Arabic Support to Galaxy ace ?

pm me if u can do it and i will share webcore to who can do it for me ;)
[Galaxy S II Themes and Apps] MAJED.y:
If your rom is deodexed then upload :

- framework.jar

- libandroid_runtime

and i will do it for you later at night.

remember this is for apps Only, no arabic for web or emails, for this use Opera instead.
[Galaxy S II Themes and Apps] hero2003:
thank you man i uploaded that to files but Framework.jar is patched with extended power .

i've uploaded webcore too maybe u can add support for browser too ?

Framework n Runtime : http://www.mediafire.com/?mi5s9a5ne2ngg2p

WebCore : http://www.mediafire.com/?935t6ewg15rg996
[Galaxy S II Themes and Apps] alsafady89:
Hey would anyone provide arabic support for villainrom 2.3 please? below are the deodexed framework and libandroid files.

http://www.mediafire.com/?e9cdjj4w4z4o47f

Thanks alot!
[Galaxy S II Themes and Apps] veyka:
See post here :)
[Galaxy S II Themes and Apps] MAJED.y:
Sorry for the delay.

here's the patched one with the font. you will see arabic in apps, to use arabic keyboard use Smart Keyboard or Better Keyboard and select arabic language from the setting.

flashable_cwm_framework _Original "the original file in case you want to revert back."

flashable_cwm_framework_Arabic "Arabic pach for your rom"

http://www.mediafire.com/?yobhlo0l6e4x4g5

of course use update via ClockworkMod Recovery

"used : arabic_script_0.803_windows"
[Galaxy S II Themes and Apps] xenastro:
For VillainROM 2.3 users, here's a post on how to enable Arabic shaping on your devices:

http://xdaforums.com/showpost.php?p=16176276&postcount=9875
[Galaxy S II Themes and Apps] adamsuail:
Arabic support on CM9

Madmac..am always late to give you the good news...just flashed the Cyanogenmod nightly build # 9....it supports Egyption Arabic :) ..not really sure about the kernal but it says 2.3.5.

wifi worked after a wipe/ factory reset, and home button worked after a reboot..but it brings a lot of goodies to the table.
[Galaxy S II Themes and Apps] madmack:
Yea, CM7 actually supports RTL pretty neatly (both Arabic + Hebrew) for quite sometime now :o As a matter of fact, my very own patch uses their source code to port it over to all deodexed android devices :)

You can get more info if you're interested at my blog. I try to write about my findings and the juicy details as much as I can. Of course, my sources are always up on github as well which is linked from my blog as well.
[Galaxy S II Themes and Apps] MAJED.y:
Greeting Madmack.

here's the i9100 Gingerbread sources code of 2.3.4 "CHINA"

Hope this will help in patching the webcore for the browser/gmail.

__

another thing as you realize a lot of ROMs here now are using odexed Framework!, and we can't do "RTL Patch" to framework anymore or we gonna face laggy browser!, is there any fix?!
[Galaxy S II Themes and Apps] madmack:
thanks Majed. I'm looking at these sources as we speak.

I'm working with an assembler and we might come up with a genius solution for all future libwebcore.so (hint: no sources necessary).

-

As for the odexed problem. We really can't edit odexed files. Its simply not doable. And even if I do provide a tool to patch the odexed files, the only method I'm aware of involves deodexing and reodexing them which means we'll end up with a laggy browser.

The best solution ? Like I said earlier, is to have baksmali fixed ! That will solve all our problems.
[Galaxy S II Themes and Apps] trancer_84:
So, just to be clear, there is no support for viewing arabic on any odexed rom?
[Galaxy S II Themes and Apps] madmack:
here is a summary of the current situation:

browser + gmail files:

------------------------

Odexed ? Will work flawlessly.

Deodexed ? Will work flawlessly.

Framework.jar:

-----------------

Deodexed ? Will work but you'll lose the browser's cool hw acceleration.

Odexed ? No easy way to do it. The only way I'm aware of is to deodex it, patch it, then reodex it. But that involves some signature replacements and you WILL lose HW acceleration as well so its pretty much pointless.

So in summary, you can always get arabic shaping everywhere in the ROM. The question then becomes, will you be willing to lose HW acceleration in the browser or not.
[Galaxy S II Themes and Apps] madmack:
All right folks.

I checked the new 2.3.4 source code but its not really 2.3.4 :( You guys can double check by downloading the appropriate sources then extract the Platform zip file and read the README file. If it states 2.3.3_r1 then we're in no luck.

Otherwise, a kind genius fellow by the name of Emad has posted on my blog a set of very delicate artwork to get our 2.3.4 webcores to shape and render RTL text correctly. He has given me these two files that I'm compressing in one zip file:

http://www.multiupload.com/9Q6NLHVYJX

Extract these two files and also libicuuc-arabic.so from my patcher that is on the OP and copy these three files to /system/lib/ and reboot. I've tested them on KG3 and so far so good. I've had very few crashes related to Flash I believe so I've already let him know about it and he's working on it.

All credit goes to Emad. I'm by no means an assembler and a hex editor ! All I do is use available sources to compile arabic support into our .so files.

You're very welcome to try these two files. See how they work and let me know if you got any feedback on their performance.

Majed, please feel free to download the sources you've mentioned and see for yourself if they're indeed 2.3.4.
[Galaxy S II Themes and Apps] zabihjan:
what are the chances of copying the arabisation code from 2.3.3 rom made for Egypt/Israel

http://hotfile.com/dl/124673246/77279c8/I9100JHKG2_I9100JHKG2_I9100PTRKG2.rar.html
[Galaxy S II Themes and Apps] zabihjan:
didnt work on my 2.3.4 kg6
[Galaxy S II Themes and Apps] madmack:
to work in 2.3.4 ? very low !

You'll need to copy multiple files over because they're linked. By doing that, you therefore have a mix of 2.3.4 and 2.3.3 ROM. That's why I'm not interested in these solutions :)
[Galaxy S II Themes and Apps] madmack:
works here.
[Galaxy S II Themes and Apps] zabihjan:
mine was stuck for 10 minutes in boot logo so i am in the process of restoring my device.
[Galaxy S II Themes and Apps] mariotme:
Same here no go for me too.

Stuck on SGS boot logo had to reflash whole KG6 from scratch :)
[Galaxy S II Themes and Apps] zabihjan:
is there any chance someone could upload these files from the arabic kg2 roms and make it flashable zip?

/system/app/samsungIME.apk

/system/app/samsungIME.odex

/system/lib/libhandwritelib.so

/system/lib/libjni_pinyinime.so

/system/lib/libjni_secime.so

/system/lib/libXT9.so

/system/lib/libjni_latinime.so

/system/lib/libjnigraphics.so

/system/lib/libXt9core.so

and the language files under

/system/T9DB

arabic roms for SGS2:

Arabic Samsung I9100 Firmwares.

Arabic Firmware	CSC	.PIT	Android	Country	Date	Download

I9100JPKF3 ##	CSC = OJP	EXT4.PIT	2.3.3	Egypt	2011 June	DOWNLOAD

I9100JPKG2 ##	CSC = OJP	EXT4.PIT	2.3.3	Egypt	2011 July	DOWNLOAD

I9100JHKG2 ##	CSC = PTR	EXT4.PIT	2.3.3	Israel	2011 July	DOWNLOAD

Thank you
[Galaxy S II Themes and Apps] madmack:
Sorry about that guys, I'll check it out once I get back to my computer
[Galaxy S II Themes and Apps] madmack:
I figured it out. You'll need libicuuc-arabic.so from my patcher as well.
[Galaxy S II Themes and Apps] mariotme:
will try it ASAP

ty

Edit: ok good news booted up successfully ;) will keep you posted if noticed any issues
[Galaxy S II Themes and Apps] zabihjan:
so how do i go fixing it
[Galaxy S II Themes and Apps] mariotme:
follow the links on first post and download the latest Arabizing package.

Unzip it and u will find a folder called REQUIRED-IMPORTANT in that folder your can find libicuuc-arabic.so.

Just copy it and the 2 files in the zip madmack posted earlier into system/lib and reboot ;)
[Galaxy S II Themes and Apps] zabihjan:
thank you for quick reply
[Galaxy S II Themes and Apps] mariotme:
Madmack there is no possible way to arabise deodexed ROMS with odexed framewrok?

other than deodexing adn reverting it once more? that will also lead to laggy Browser?
[Galaxy S II Themes and Apps] madmack:
nope :( I don't think so. I haven't seen any work done on the internetz that is indicative of core modifications to an odexed jar file.
[Galaxy S II Themes and Apps] trancer_84:
Thanks for the clarification!

I just want to properly read the arabic text messages i receive.

I tried the instructions in your first post a few weeks ago while on VillainRom(deodexed), but i kept getting errors when running the patch program.

Lite'ningRom(deodexed) displayed arabic messages perfectly. only the browser had the letters spaced out.

Now i'm on Batista70's kg3 Rom (odexed), and i'm on the hunt for a solution to view messages correctly.

Anyway, your dedication is admirable. hopefully a simple solution is right around the corner? ;)
[Galaxy S II Themes and Apps] bu2askoor:
well now there is VillainROM 2.4 Fully deodexed .. which means a new flashable file coming soon? lol

Opera supports arabic along with HW acceleration as far as i know

Thanks madmack
[Galaxy S II Themes and Apps] madmack:
I don't make flashable files for ROMs you see :o Specially ones I don't use. That's why I laid out a very nice and tidy blog for that to the general public to use.

Any user can make that flashable file. You guys are welcome to post them here on the thread however :)

VR2.4 should be able to get arabized 100% even in its laggy browser and Gmail given the latest webcore files that I posted here yesterday.
[Galaxy S II Themes and Apps] madmack:
2.3.4 Browser

A little update:

Emad (our genius hero) has provided a fix for the 2.3.4 libwebcore file that I posted yesterday. It should be crash free now: we both tested it rigorously and so far no crashes.

I've updated the OP and put up a CWM flashable file for you guys to ease the pain. It has three .so files, and my modified font file.

Now I wish I had the skills of Emad :o lol. He's a real hax0r. In fact he's actually modifying the binary files (libwebcore.so) file and redirecting the code flow at 3 points. This means that he can modify any .so file without the need for source codes !!

Anyways, enjoy it guys.

While am at it. Anyone interested in madmack's rom to be upgraded to 1.6 ?

I can base it on KG5/7 (latest 2.3.4 roms) and it will have full arabic support everywhere. It'll only have one problem though, a laggy browser ! just like VR's latest ROM.

Let me know if you guys are interested and I'll bring the other thread back to life :)
[Galaxy S II Themes and Apps] madmack:
the guy's proper nickname is brightidea here on xda in case anyone is wondering :) Hopefully he'll chime in over here once he passes the 10 posts limit imposed by xda.
[Galaxy S II Themes and Apps] soyef:
Didn't get past splash screen, sorry can't get any logs right now
[Galaxy S II Themes and Apps] BAZ007:
Madmack, pretty sure alot of people would love to see an upgraded version of your ROM that is based on the latest firmware, however 2 questions:

1- Could it natively support OpenVPN ? (the only ROM that comes with this feature from the kitchen is Darky's), the app from the market always glitches for some reason.

2- Could it be Odexed so it can also support Jkay Mods, seeing how pretty much no one would need any other theme based on the number of themes he released and the amount of support !!

Thanks in Advanced
[Galaxy S II Themes and Apps] madmack:
Are you running a 2.3.4 rom ?

I can odex it after deodexing and applying the arabic patch. We will lose the hw accelerated browser though.

I don't have much experience with OpenVPN though :(
[Galaxy S II Themes and Apps] bu2askoor:
Thanks madmack & emad.
[Galaxy S II Themes and Apps] soyef:
Yeah running a 2.3.4 rom