yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] madmack:
can you try to move the three files yourself from the system/lib folder ?

its working here.. am just not so sure about the cwm file.

anyone else tried it ?
[Galaxy S II Themes and Apps] Dark_Lord0122:
i will try it in a few minutes on Litening rom V5.0 KG6. i will tell you how it goes.

Edit :

its working perfectly :) thanks
[Galaxy S II Themes and Apps] soyef:
Moved all three, still stuck at splash screen, so I removed the flashed files one by one, and it seemed the issue was with the webcore, I think its cos I'm on KG1, Samsung mustve changed the webcores after KG1 cos even a kg2 official webcore was stuck at splash screen

So I guess the issue is with KG1
[Galaxy S II Themes and Apps] Death_Keeper:
thank you for your support! your script help me a lot.

one question thogth...can you make a browser rtl fix for hebrew too?

the included lib file in your OP doesnt fix hebrew in browser...

again, thank you for your support so far,

yossi
[Galaxy S II Themes and Apps] madmack:
News flash:

brightidea might be reaching a solution that can patch any android libwebcore.so to support arabic. That's right folks ! Its still in the early stages so it might take a while to test before release. This is big ! it'll hex edit any libwebcore.so we throw at it (hopefully) and give us shaped arabic characters in browser+gmail without the need for manufacturer's source code.

hmm.. i think you're right. iirc KG1 had a different browser than the ROMs that followed. I should put a little note regarding that in the OP. sorry about the bootloops :o

I'm uploading a new version that should support Hebrew RTL right now. Please test it and let me know.

k done: http://www.multiupload.com/2AWG3FCXDP
[Galaxy S II Themes and Apps] wanam:
What about framework patch on LiteningV5? i think it's odexed, and rtl version isn't out yet.
[Galaxy S II Themes and Apps] mariotme:
he cant help you unless your running a Deodexed ROM.

His current patcher only works on Deodexed files
[Galaxy S II Themes and Apps] Dark_Lord0122:
Yea its Odoxed you cant do anything but someone released a patch that should connect the letters .. search in the thread not as good as madmac's but at least it connects the letters.
[Galaxy S II Themes and Apps] Azdian:
great news .. i thought that would be impossible
[Galaxy S II Themes and Apps] bu2askoor:
The file worked in gmail but not browser on vr2.4.2.

Thanks
[Galaxy S II Themes and Apps] Death_Keeper:
Hi,

Thank you for your quick reply... but i treid your file on Sensation V1.2 Rom with no luck with hebrew support.

Hope its an easy fix... appriciate your fine work!

edit: have to say, gmail was fixed for Hebrew all along, the only problem is the browser

Yossi
[Galaxy S II Themes and Apps] madmack:
Nothing is really impossible.. it just takes a genius to do this kind of work, something I surely am not. This is as deep in terms of binary as it gets (0s and 1s anyone?).

so yea, he just gave me some files for Galaxy S 2.3.4 ROMs that I'm about to share as well with credits to him.

thanks for the feedback. that's really weird though because gmail uses the same rendering engine as the default browser. you tried it with arabic ?

I'm going to check this again. when you say gmail, you mean the body of the email and not just the titles right ?
[Galaxy S II Themes and Apps] bu2askoor:
i reflashed the file and now arabic is enabled in gmail and browser... a bit strange.

thanks madmack :)
[Galaxy S II Themes and Apps] madmack:
Great. thanks for the confirmation :)

For those asking about odexed ROMs, we really can't do much about it.. :(

get deodexed roms, like villainrom's latest and it should work perfectly !
[Galaxy S II Themes and Apps] Azdian:
promising !

does the new way fix ( text numbers order ) how can i explain it ...

يعني لما توصلك رسالة فيها رقم

يالرقم يجي معكوس او يتغير ترتيب الجملة مثلاً الرقم يصير بالبداية والجملة تتلخبط
[Galaxy S II Themes and Apps] madmack:
yea, this is a problem with my framework patch and can be fixed. I'm a little too lazy to fix it but the CM sources (that i'm porting from) did fix it so its a matter of updating my code and releasing a new set of tools/patcher. Frankly I was waiting for CM to fix more problems but I guess they're stopping their upgrades for now so I might as well just go ahead and update my sources as well.

to you guys that don't get what he said, he's asking if we can fix the reversal of numbers when they're in the beginning of a new line and contain RTL text.
[Galaxy S II Themes and Apps] Death_Keeper:
hi, the gmail app works flawlessly with hebrew... even before your browser fix.(just the default rtl script). thank you for your help so far!
[Galaxy S II Themes and Apps] sindbad77:
Thanx for your efforts for the arabic support. And also thanx for Emad(brightidea) for his compiling/ decompiling libwebcore.so. Waiting for your Arabic Rom.
[Galaxy S II Themes and Apps] brightidea:
The most recent build

Hey Madmack -

I have uploaded my most recent release here (Should work with KG3 & KG6)

( http://www.multiupload.com/FEMKZ90OYS )

I've been testing this on my device for sometime now with no troubles.

*Just in case someone reports an issue with the older one which you have in the first page of the post.*

I will be working on developing a generic patcher when I get the time.

- Brightidea.
[Galaxy S II Themes and Apps] ringrover:
mate it is flash file by CWM???
[Galaxy S II Themes and Apps] brightidea:
Yes that's right.

- Brightidea.
[Galaxy S II Themes and Apps] madmack:
I never had any problems with the previous file but flashing this one anyways :)

link on the OP updated.

thanks for multiuploading it and keeping the updater-script files intact without the framework :)

By the way, the font you chose causes some overlap in some cases. You might want to try that font that I've released on the OP and package that one instead.
[Galaxy S II Themes and Apps] brightidea:
About the font I suppose you know your stuff better you've been doing this forever :)

I never really tried the font you're supplying so it's a good chance for me to do that now

It just so happens that I feel the bold font that I have built makes reading easier than stock font
[Galaxy S II Themes and Apps] ayhamx360:
hi man will this work on a stock 2.3 rooted with cf root ?

or this only for custom roms ?
[Galaxy S II Themes and Apps] madmack:
I agree. Stock is certainly the worse of the bunch.

I'm not a font guru by any means but the font on the OP is based on the CM7 arabic font (which I found the best for clarity). It had problems with spacing on the SGS2 so I merged a Samsung font with the CM7 font and came up with what we have in the OP.
[Galaxy S II Themes and Apps] madmack:
it won't work on stock because it ain't deodexed.

If you meet the requirements in the OP (link to the blog), then you're good to go.
[Galaxy S II Themes and Apps] mariotme:
guys 1 little question :P

doesnt libwebcore.so mod by brightidea work also on odexed ROMS? or am mistaken?
[Galaxy S II Themes and Apps] madmack:
Yes. I should have been clearer.

browser+gmail files work on all roms ! you only need root, cwm (optional) and the same android version as indicated by the downloaded item. (ex. 2.3.4 or 2.3.3).

the framework patcher will require a deodexed rom.

so what I meant is if you want to get arabic read/write everywhere.. then you will most certainly be needing a deodex rom.
[Galaxy S II Themes and Apps] mariotme:
hehehe thats much better clarification :p

lol thanks guys :D
[Galaxy S II Themes and Apps] Death_Keeper:
hi, tried this new version too...

the hebrew is still messed up... no rtl support in the browser...

the page itself is shown normally, the problem starts in the tab name, and active buttons, where the hebrew is messed up (instead of the wodk: hello, it shows : olleh...

please help.

Yossi
[Galaxy S II Themes and Apps] madmack:
Yossi,

The content of the web page is in perfect RTL and the only problem you have is in Buttons and Tabs ?
[Galaxy S II Themes and Apps] Azdian:
madmack could you make a change-log or explain whats new every time you update the files :)
[Galaxy S II Themes and Apps] madmack:
On my end all change-logs are always available on my blog :) The important ones that you all should know about are the ones related to the framework patcher.

I'm not really creating any libwebcore.so files for the SGS2 now given that we have brightidea. What he's doing is making his code more crash-proof. So the change log will always be like: better implementation, less crashes.

The change logs that makes each version different are very technical and I think most people won't understand/care about it until and if he decides to release the sources for what he's changing/adding.

I'm not even storing his older webcores or linking to them because we simply don't need them. I'd say always download the latest version, specially if you're having problems with the browser and/or the gmail app. If you got no problems at all, then no need to change a thing.

Meanwhile, I'll be publishing a fresh new framework patcher with updated sources that should fix the number reversal problem within the next few days :) You'll get the change log on the blog once its out ;)
[Galaxy S II Themes and Apps] Death_Keeper:
yes!

i guess there isn't a sulotion for this yet?

yossi
[Galaxy S II Themes and Apps] madmack:
that's strange because it means that the webcore is reversing hebrew text correctly but skips it in some places only.

check this website:

http://iandroid.co.il/forum/post306633.html#p306633

they have a tool that should be able to patch any libwebcore.so file to support hebrew RTL. Its the one I actually used for the version prior to this one (the one i asked you to test).

when you say the buttons and tabs, are these inside the webpage or in the browser app ? because if they're part of the app then these are shaped via the framework patch and if they're inside the "page box" then its the libwebcore.so file that's responsible for it.
[Galaxy S II Themes and Apps] ammarselo:
Assalamu Alaikom

Madmak,

thank you for your hard work. I was using lightning ROM for a while and now i'm switching to the latest Villain ROM 2.3. I flashed your file with CWM and then placed the two lib files into my phone but still the Arabic letters are not connecting!

what did i do wrong?
[Galaxy S II Themes and Apps] bu2askoor:
try this post i made in VR rom thread:

http://xdaforums.com/showpost.php?p=16373132&postcount=830
[Galaxy S II Themes and Apps] the guitarist:
any news about your upcoming rom madmack ? ;)
[Galaxy S II Themes and Apps] madmack:
I've decided to abandon it for now until someone figures out the hw accelerated browser in deodexing.

I can provide a patch for villainrom that can completely arabize it and give a nice battery mod which is what my rom used to do if u guys want that but I'm not so motivated due to that browser issue.

I'm working on the framework patcher however, specifically the number reversing issue.
[Galaxy S II Themes and Apps] madmack:
Number reversal issue is fixed

All right guys, the number reversing issue in some cases is taken care of and patch v.804 is out :)
[Galaxy S II Themes and Apps] Azdian:
All hail madmack :D

downloading and patching now :)
[Galaxy S II Themes and Apps] madmack:
Let me know ! I haven't tested it thoroughly yet given that I'm on an odexed rom but it should work.
[Galaxy S II Themes and Apps] Azdian:
what wrong ? i cant run the patch .. i face this error

and yeah its a deodexed rom
[Galaxy S II Themes and Apps] madmack:
looks like an odexed rom to me :rolleyes:

make sure you don't have framework.odex in your phone's /system/framework
[Galaxy S II Themes and Apps] Azdian:
sorry my bad .. it was Exynos ROM .. it got framewotk.jar and framwork.odex

trying another rom ^_^

* is there a way to get original Samsung keyboard supporting arabic ? ripping some files from the KG5 may help ?
[Galaxy S II Themes and Apps] Azdian:
i flashed villain rom and applied the patch on the required files ... the phone freezes on the start up
[Galaxy S II Themes and Apps] SirM2X:
Any body tired this on MIUI?

Which choice do I have to choose while patching the framework.jar file??

AOSP or CM7?

I'm really surprised that MIUI doesn't display Arabic alphabet correctly! It used to have built in support on SGS 1 days!
[Galaxy S II Themes and Apps] ayhamx360:
hi please little help

i did the first 3 steps in ur guide and puted the firmware from my device into the frimware folder

but when i open the commands and press ok its gives me this (You must place the libandroid_runtime.so,in folder libandroid_runtime to procced

then i pess ok

it say libandroid_runtime.so does not exsicte

so how to fix it please

thanks in advance :)
[Galaxy S II Themes and Apps] madmack:
Did you use the cwm flashable file ?

There is no CM7 option, only a CM6 :) But you should try AOSP nevertheless. it might not boot up though because iirc they have changed some classes that I'm modifying so it breaks their build. If it bootloops then I have no solution as the chinese devs decided not to release any sources :rolleyes:

seems you haven't placed the file where it belongs. you need to place the framework and the libandroid_runtime file.
[Galaxy S II Themes and Apps] Death_Keeper:
Thank you,

i am femiliar with this forum...and i already tried the fixes threre.

here are some screenshots of the problem.

the text inside the webpage is shown correctly... the tab title is flipped...

in the selection box, the first image shows the right word: אחד

when i try to select one of the options - its flipped...

thank you for your paitence...

Yossi
[Galaxy S II Themes and Apps] firefds:
What site is that Yossi?

Edit: I founs the site.

Are you using the stock web browser?

Because when I click that button I don't get the pop out window you get but a new selection menu. i'm adding a picture.

So i think that if your using another browser like dolphin or opera its a browser problem and not the lib file.
[Galaxy S II Themes and Apps] madmack:
thanks for the detailed explanation, but I couldn't help but notice that you're not using the default "Internet" app which is what our fix is about.

Is that Opera ? Opera definitely has a rendering issue in the title of the app (tab title) and in some other parts even in other RTL languages. The browser patch in the OP fixes Gmail and the default Browser application. :o
[Galaxy S II Themes and Apps] firefds:
I edited my post before I saw the response above me.

I can confirm the patch from the iandroid.co.il site works fine for hebrew tabs and selection boxes.

Haven't tried your fix madmack on the sgs2, but i'm guessing it works as well
[Galaxy S II Themes and Apps] Death_Keeper:
thank you!

is there another browser that support rtl rendering?

its a shame that its not working for opera...I really like it as a browser...
[Galaxy S II Themes and Apps] Azdian:
yes i flashed the file you find in generated folder after applying the patch .. and used cwm to flash it .. does it work with you ? cuz i'll try again later tonight
[Galaxy S II Themes and Apps] SirM2X:
Thank you again madmack!

I'll try and see what happens! ;)

I was considering to uninstall MIUI as it has no advantage over Samsung ROMs (while it had huge advantage over i9000s stock ROMs)

Thank you again mate.
[Galaxy S II Themes and Apps] SirM2X:
OK so I tried patching the files on MIUI and it booted up but gave me lots of FCs and the phone was practically useless.

Anyway! Just wanted to let you people know.
[Galaxy S II Themes and Apps] solidd_swa:
can I ask a favor of someone, can someone create a deodexed version of the latest Arabic rom with the new framework here? I am really tired the the numbers and sentences being messes up on the stock Arabic rom.
[Galaxy S II Themes and Apps] solidd_swa:
what I am saying is that we keep the webcore libs from the stock.

will that keep the browser accelerated?
[Galaxy S II Themes and Apps] zabihjan:
thx so much for this.....

font is looking coool and everything works.....
[Galaxy S II Themes and Apps] madmack:
Well, if you use the default "Internet" browser, it should support full RTL if you use our files in the OP. Opera uses a completely different rendering engine so we can't change anything in that.

Just tested it on VillainROM's latest and it works just fine.

thanks for letting us know. I remember seeing the logcats from MIUI and there is a long and bothersome fix but I'm not going to bother given my indisputable love to their closed source android implementation. :rolleyes:

You'll lose hardware acceleration if you deodex. You should probably not do that and use one of the deodexed ROMs out there and apply the patch(es) to these roms instead.

If you have a deodexed rom, no. libs have nothing to do with the browser acceleration problem that we have.
[Galaxy S II Themes and Apps] Azdian:
idk whats happend but its work like a charm right now !

great job madmack ..

A7bk fe allah :D ..

7NA11675GN673541C
[Galaxy S II Themes and Apps] madmack:
I'm glad you got it working :)

thanks also for the donation :o
[Galaxy S II Themes and Apps] kindiboy:
madmack

do you think it would work on Leomar75 Revolution rom ?

I don't care about acceleration on the stock browser.
[Galaxy S II Themes and Apps] mariotme:
Leomars rom is odexed so only browser and gmail rtl work
[Galaxy S II Themes and Apps] solidd_swa:
is the Arabic patches available for villian rom latest yet? is it in the tweeks app?
[Galaxy S II Themes and Apps] mariotme:
Am not sure if its in villian tweaks app but am sure that the patcher works with villian rom if you know how to use it ;)
[Galaxy S II Themes and Apps] zabihjan:
this works well on the browser, what about on messaging to join the texts?

Thank you
[Galaxy S II Themes and Apps] brightidea:
For that you need to patch framework.jar after successfully deodex'ing your ROM. Be sure to check the first post in the thread for details about the automated patching package by madmack

- Brightidea
[Galaxy S II Themes and Apps] brightidea:
MIUI 2.3.5

Thank you MadMack for the recent release of v0.804 which included better handling for the numbers.

Just curious, I was visiting my cousin this a few hours ago and he decided to install the most recent MIUI version 1.8.12 which is based on Android 2.3.5; After applying the framework.jar patch It started giving FC's when an arabic song name is about to be displayed (showing in the Logcat that StaticText<init> is undefined)

Do you think I made a mistake somewhere or this is to be expected in v2.3.5 ?

- Brightidea
[Galaxy S II Themes and Apps] soyef:
There's a different patch for miui roms on the development forums, did you use that?

Here it is

http://xdaforums.com/showthread.php?t=1210138
[Galaxy S II Themes and Apps] madmack:
My patch doesn't work with MIUI unfortunately. they have added some methods to the classes that I replace and I haven't taken the time to work around that problem.

there is a modified patcher floating around the forum though, see if it works :)

I'm not planning on supporting MIUI given their closed source stance :rolleyes:
[Galaxy S II Themes and Apps] firefds:
Hey madmack,

I'm not sure if someone asked this question, but does your patch fix the message alignment in gmail.apk?

what I mean is when I write a text in Hebrew for example in gmail, the text I see is RTL. But wheh I send the message I get it LTR.
[Galaxy S II Themes and Apps] MAJED.y:
I believe it does exist even in all Email clients and that's because they send the message in "Plaint Text format", so there's no text format,no Alignment and no RTL.
[Galaxy S II Themes and Apps] madmack:
the content of the body of the emails is rendered by libwebcore.so so make sure you get the patched version in your device. if the default browser displays hebrew in correct RTL then so should your emails (in the Gmail app).

The framework patcher fixes LTR into RTL in places such as typing text (which you reported to be working fine) and in Contacts menus, apps' menus.. etc
[Galaxy S II Themes and Apps] BAZ007:
Salam Madmack,

I tried, countless times, using different methods and ways, to make the patcher work for Darky's (Fiesto) XXKG6 Base ROM (Deodoxed) but it always gets stuck at the first screen after booting (the one with the pesky sign)

What I did is, flash Fiesto's rom with Supercore 1.4 Kernel, boot the ROM normally, reflash feistos Deodoxer Patch, reboot, copy the framework.jar and libandroid_runtime.so to your Patcher, Generate the patcher using AOSP, reflash the patcher using CWM, then stock, nothing .. I cant get it to work, any ideas why ??
[Galaxy S II Themes and Apps] madmack:
unfortunately without logcat I won't be able to tell.

Make sure you apply the patch to the deodexer files, and not the original darky files. then you'll need to wait for a while because all the apps' files will get optimized the first run after the update.
[Galaxy S II Themes and Apps] BAZ007:
Thanks Madmack, I found the problem,

apparently Fiesto's ROM doesnt like the CWM generated and applies the files incorrectly, I did it manually and its working fine !

Now I am just carving to figure out how to make OpenVPN work for any rom =D
[Galaxy S II Themes and Apps] brightidea:
For those interested in the universal Arabic patch for libwebcore.so (browser & gmail) and by madmack's request I have opened a thread which deals specifically with that subject

http://xdaforums.com/show....php?t=1218960

- Brightidea
[Galaxy S II Themes and Apps] wanam:
Link truncated, Fixed link
[Galaxy S II Themes and Apps] zidane:
Hi madmac,

i just switched to a new non arabized ROM, which can be found here: http://xdaforums.com/showthread.php?t=1220283

however, i cannot get your patch to work, i get an error saying patching libandroid_runtime failed.

i have tried many times but i get the same error each time, i also tried the older versions of the patch on your blog and still get the same error.

i've attached the framework.jar and libandroid_runtime.so in case it will help you know why i get this error.

EDIT: sorry for the inconvenience, the ROM already has arabic support even though nothing was mentioned in the OP.
[Galaxy S II Themes and Apps] Lonexl:
Half way there..........

I used Brightidea’s file and now I have a full Arabic in both Gmail and the browser which is brilliant. :)

I was unable to use Madmac framwwork.jar as my rom is not deodexed, being the best rom I ever came across I would like to stick to it.

So would ask to whether you have patching files that gives Arabic shaping & RTL support for text messages. On Andriod 2.3.4 based rom.

Thanks.
[Galaxy S II Themes and Apps] madmack:
v0.810

all right boys and gals.. v0.810 is out.

change log and details is at the blog.
[Galaxy S II Themes and Apps] xenastro:
Ya3teek el 3afieh :-)
[Galaxy S II Themes and Apps] lovidore:
Did anyone try patching with Windows 7 x64? For some reason I seem to be getting 2 errors (regarding lines 150,151) when I try to apply the patch. Or maybe it could be because I'm using an altered framework.jar from Kahvitahra? (http://www.multiupload.com/0DV53UZ024)

I still tried flashing the resulting CWM package which resulted in me being stuck at the loading screen (the one with the yellow triangle). This happened numerous times.

I'll try to upload the files to this post when I'm home because I'm at work right now.
[Galaxy S II Themes and Apps] madmack:
which version of the patch are you using?
[Galaxy S II Themes and Apps] lovidore:
The latest patch (0.810) I just installed both java versions (x86 and x64) and patched using the original framework from villainrom 2.4.2 and it worked. But once I tried the framework that has the lag browser fix (CWM packed by jahvitahra linked here:http://www.multiupload.com/0DV53UZ024) it no longer works. It just gets stuck in the decompiling phase, longest duration I waited was 20 minutes.