yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] brightidea:
Great - performance is way better than my version :)

Just one note though: Since your patch is meant to be run on majority of devices it must be compiled for armv5te (saying this because I found WIDE(thumb2) instructions in your shared object - which means it won't work on older devices that don't support them - will generate invalid opcode exceptions)

- Brightidea.
[Galaxy S II Themes and Apps] Mujodroid:
Hello madmack i flashed mariotme flashable CWM ( VR3.0 ) cool n smooth , except dancing issue characters ? is the recent fix that you provide will solve the problem ?

thanks in advance to make my life easy ( ARABIC ) :D
[Galaxy S II Themes and Apps] brightidea:
Just place the file libicuuc-arabic.so ( which Madmack has shared in his last post http://www.multiupload.com/WB949X7MJF) in your device inside /system/lib folder and arabic in whatsapp will stop dancing :)

- Brightidea.
[Galaxy S II Themes and Apps] Mujodroid:
wow , for responding man ;) mercy

can i use your RTL for browsing n gmail ??
[Galaxy S II Themes and Apps] brightidea:
Sure you can! Just don't forget to post a feedback of 5 stars in the Market ;)

- Brightidea.
[Galaxy S II Themes and Apps] Mujodroid:
i tried to search the market but i cant find it :confused:
[Galaxy S II Themes and Apps] brightidea:
Come on - you should do better than that!

If you just search for "brightidea browser arabic patch" you should find it.

Anyway, Here you should find a few alternative methods: http://xdaforums.com/showthread.php?t=1218960

- Brightidea.
[Galaxy S II Themes and Apps] mariotme:
Thanks guys for your amazing teamwork! Can I use this libicuuc-arabic.so on other roms than VR 3.0? If I already patched my framework.jar and libandroid_runtime.lib?
[Galaxy S II Themes and Apps] brightidea:
This version should work with all ROMs - provided your device can process thumb 2 instructions (as of the current build)

- Brightidea.
[Galaxy S II Themes and Apps] mariotme:
hey Madmack just wanted to inform you that your Blog is down :<

cant access it now.

Unable to load the webpage because the server sent no data.

Here are some suggestions:

Reload this webpage later.

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
[Galaxy S II Themes and Apps] madmack:
Will do. Good point.

Like brightidea said, this should work on all roms that the previous v0.812 patcher worked on.

You're right. I'm getting mad at this hosting provider :mad:. I'll make sure I move out as soon as I can. Meanwhile, I'll see what the exact issue is.

edit: and it's back up.
[Galaxy S II Themes and Apps] Mujodroid:
Madmack/brightidea i placed that folder fixed by madmack , dancing issue wont stop dancing :confused::p
[Galaxy S II Themes and Apps] madmack:
you're probably not actually replacing it. make sure you use the latest version of root explorer and that you copy that file and override the existing one in /system/lib/ (your phone has to have my patch already applied).

I'm going to release v0.813 soon(ish) so you can wait and re-patch once that is out.
[Galaxy S II Themes and Apps] Mujodroid:
okay sir i will waiting :cool: can we have it flashable cwm

thaks
[Galaxy S II Themes and Apps] madmack:
this link is for v0.813.

http://www.multiupload.com/0CZZLW6UGG

blog is currently down. once it's up it'll have these changes committed along with a nice change log as well.
[Galaxy S II Themes and Apps] Mujodroid:
Flashable zip ??
[Galaxy S II Themes and Apps] madmack:
that's my patcher. you'll have to use the steps from my blog to flash whatever rom you have.

I don't release flashable ready files for ROMs because there is no such "one solution for all".
[Galaxy S II Themes and Apps] Dark_Lord0122:
as i stated before the dancing letters fix is working perfectly

when a blackberry user sends me a message i notice boxes .. i don't know what it means exactly maybe its blackberry emoticons ? not sure but can you check it out please?

keep up the great work

Edit:

also sometimes there is a big "space" between the being of the text to the end.

this "bug/thing" was always there not caused by the fix by any means.
[Galaxy S II Themes and Apps] mariotme:
i might be able to help you. which rom you running?

Edit:

thanks madmack! got 1 question tho. does v.813 patcher include the latest libwebcore.so patcher by Brightidea?
[Galaxy S II Themes and Apps] madmack:
yep :) 1.2B
[Galaxy S II Themes and Apps] Dark_Lord0122:
ah dam XD i thought you didn't add it so i downloaded his patch XD thanks :P
[Galaxy S II Themes and Apps] Mujodroid:
Hi iam using VR3 :D thanks in advance
[Galaxy S II Themes and Apps] brightidea:
Madmack,

I just downloaded Arabic Patcher v.813 but found that libicuuc-arabic.so still contains wide instructions. you may receive some complaints from SGM/ACE, SG3 and Desire Z users of crashing ;)

Code snippet taken from some subroutine found in your library:

.text:00026594
.text:00026594 sub_26594 ; CODE XREF: icu_44::BMPSet::initBits(void)+88p
.text:00026594 ; icu_44::BMPSet::initBits(void)+154p
.text:00026594
.text:00026594 var_38 = -0x38
.text:00026594 var_30 = -0x30
.text:00026594 var_28 = -0x28
.text:00026594
.text:00026594 PUSH.W {R4-R10}
.text:00026598 MOVS R4, #1
.text:0002659A ASRS R6, R1, #6
.text:0002659C AND.W R3, R1, #0x3F
.text:000265A0 ADDS R1, #1
.text:000265A2 LSLS R4, R6
.text:000265A4 CMP R1, R2
.text:000265A6 SUB SP, SP, #0x1C
.text:000265A8 BEQ.W loc_2673A
.text:000265AC MOV.W R12, R2,ASR#6
.text:000265B0 AND.W R2, R2, #0x3F
.text:000265B4 CMP R6, R12
.text:000265B6 BEQ.W loc_266CA

Note that instructions entailed with .W are 32bit instructions in thumb2 mode (which is not available in old devices - those only support 16 bit instructions in thumb mode)

- Brightidea
[Galaxy S II Themes and Apps] madmack:
Thanks a ton genius. No one would be double checking my work you know :)

Can you please verify this file instead?

http://www.multiupload.com/KQCY1DMPL5

I've dumped the .text section and couldn't find any ".w" instructions. Size of the file is considerably larger due to the omission of these thumb instructions.

Edit: quietly updated the link on my blog to v0.813 to reflect this change.
[Galaxy S II Themes and Apps] brightidea:
Thanks for the quick response :)

This one is certainly spans wider compatibility across different devices as I couldn't find any .W instructions in it either.

I am releasing a new version of my webkit patching tool as soon as I receive confirmation about the last modification I made to support SG3 - awaiting your feedback.

- Brightidea
[Galaxy S II Themes and Apps] madmack:
Thanks for checking.

I already sent him the file. Hopefully it's solid.
[Galaxy S II Themes and Apps] Lassang01:
the zip file works very nice on my sgs2 version 2.3.4
[Galaxy S II Themes and Apps] ke3pup:
i hope i didn't miss the answer to this already but is there a flashable zip for VillainRom 3.0 (2.3.5) ? I couldn't find one searching. Thanks
[Galaxy S II Themes and Apps] novanove1:
Hi there, let me know as well incase you find it, I will do the same

have been looking for it since 2 days.
[Galaxy S II Themes and Apps] ke3pup:
hi,

just letting you know, i followed the instuuctions on this madmacks blog here and it worked flawlessly. it creates a flashable zip file for you at the end that you can use. I actually prefer this method since you supply your own files meaning it leaves all other customization/tweak you might have applied alone.

try it , its quit easy.

Thank you OP for your work and effort. :)
[Galaxy S II Themes and Apps] novanove1:
:) Thanks a lot Bro, didnt expected that you would really inform me.

anyhow yesterday I flashed WANAMLITE ROM ( http://xdaforums.com/showthread.php?t=1240385 ) and it works like a charm

The battery consumption is awesome as well...
[Galaxy S II Themes and Apps] madmack:
news

:D:D:D

Looks like this thread will retire sometime soon.
[Galaxy S II Themes and Apps] mariotme:
great news!!

Lets hope we will get ICS on our phones :P
[Galaxy S II Themes and Apps] alibox87:
hello

does this method work with t mobile version.
[Galaxy S II Themes and Apps] baderfgt:
Yes. However, you have to use the program from his blog. Do not flash the already made zip files and make sure you are running a deodexed ROM. :)

PM me if you need more help.
[Galaxy S II Themes and Apps] tipu2185:
continuing from http://xdaforums.com/showpost.php?p=18916116&postcount=453

I will try replacing the font today and will update you with result.
[Galaxy S II Themes and Apps] tipu2185:
after replacing the font now things are totally screwed. No Urdu alphabet is appearing correct.
[Galaxy S II Themes and Apps] madmack:
that's because you haven't picked the right fonts obviously :)

I don't speak Urdu, I really can't help you with that. Look for Urdu Android Fonts. Grab em from other ROMs that support Urdu officially I'd say.
[Galaxy S II Themes and Apps] tipu2185:
90% of the problem resolved by replacing with proper fonts. Just some word not joing properly in the end of word as they should. Any idea how to approach it.
[Galaxy S II Themes and Apps] madmack:
i can't work without examples. give me the letter (write it in it's native form here in xda) and show me two pics: one showing what it's doing now, and the other showing me how it's supposed to look like.
[Galaxy S II Themes and Apps] mbba67:
Hi, bro madmack, Does ur arabic patch work for galaxy S+ (i9001), i realy want to patch 2.3.4 rom with arabic. pls help.... Thanks!
[Galaxy S II Themes and Apps] alzaq:
if we build our ROM, can we deodexing the files? (I mean during the building process)

İf yes, How we can do that?

I think it will be easy for the developer to do that than the end-user.
[Galaxy S II Themes and Apps] badawy85:
Does it work with HyperDroid_v4.4.7?

I like this rom (HyperDroid_v4.4.7) but it does not support arabic, pls can u advice it will work with this rom or not?

Regards
[Galaxy S II Themes and Apps] madmack:
you can deodex the files. yes. it's a bit of an advanced topic however for your average flash-and-go user.

deodexing and how to do that is not the topic here, i'm sure there is at least a 1000 site on google that explains how it's done ;)

I'm looking at the

requirements

in the link referenced by the OP. I think the answer surely should be there.
[Galaxy S II Themes and Apps] Steve113:
Hi

Than you for this mod. Will this work with Simple & Clean v2.4.3 please?
[Galaxy S II Themes and Apps] Steve113:
i took a plunge at this..

Hi,

I'm running Simple & Clean which is android version 2.3.6 on KK2

I've flashed this MOD via CWM, everything went ok with no errors.

After i booted i could not find the arabic language under languages.

I need to use Arabic for my Whatsapp application. Can you please help?

P.S Arabic is working fine on GMAIL AND BROWSER.
[Galaxy S II Themes and Apps] bu2askoor:
I think all u need is arabic keyboard.
[Galaxy S II Themes and Apps] madmack:
Steve,

this only gives you read/write support. I don't translate strings and menus or locales in my patch.
[Galaxy S II Themes and Apps] Steve113:
I can confirm this is working perfectly fine on my 2.3.6

My gmail subject headers are perfect after I flashed this mod.

All I can say say is this mod with taha_e's Arabic swype keyboard is working as if my phone came out of the box with Arabic - the way Samsung should've made it.

Thank you very much.
[Galaxy S II Themes and Apps] wssherbiny:
please Help me Madmack

Dear Madmack

I have a strange problem with a CM 6.1 rom. which is: the appearance of arabic letter as boxes in the menu arabic names and in the taskbar after trying to correct incomplete arabic support (which was reversed brackets in contact names like this " )علي( " AND reversed and separated arabic letters in browser like this ب ي و instead ويب) to this rom.

I'm attaching the original (framework.jar & libwebcore.so) files of this rom and I hope you can correct this problem to me

best regards
[Galaxy S II Themes and Apps] madmack:
which incomplete arabic support did you try to fix? did you actually try to use my patcher on the stock cm6.1 files and chosen the CM6 option when prompted?

Generally the "Boxes" issue is indicative of a missing or incomplete font files. I think you try fiddling around the /system/fonts folder by first replacing the DroidSansArabic.ttf file. If that doesn't work, replace the entire content of that folder with one from a rom that supports arabic correctly. (e.g. any CM7 rom).
[Galaxy S II Themes and Apps] aehlayel:
Madmack ya Madmack

There's this new phone out there, the Exhibit II 4G (SGH-T679) which doesn't run arabic (oddly :D)

Anyways, no custom ROMs yet, nothing deodexed yet.. would there be any chance of running this mod on it?

TIA
[Galaxy S II Themes and Apps] wssherbiny:
Dear Madmack

Thank you I'll try and tell you
[Galaxy S II Themes and Apps] madmack:
as soon as some brave sou deodexes it, why not :)

if you're asking whether i have any solutions for odexed roms, i clearly don't.
[Galaxy S II Themes and Apps] Darktrooper1991:
But as I see, there is no way to get the RTL to the original ROM, right?

Because it's odexed
[Galaxy S II Themes and Apps] ayman_salah:
Can you add RTL for XXLPB
[Galaxy S II Themes and Apps] madmack:
LPB = ICS.

http://blog.devasque.com/2011/10/19/android-ice-cream-sandwich-supports-arabic-from-google/
[Galaxy S II Themes and Apps] ayman_salah:
This mean that LPB has built in arabic even it's custom rom

can you confirm please
[Galaxy S II Themes and Apps] madmack:
i'm running lpb, yes. it supports arabic rtl completely.
[Galaxy S II Themes and Apps] ayman_salah:
Thanks for confirmation
[Galaxy S II Themes and Apps] MAJED.y:
Yes, but has the same problem if there's Numbers English letters and Arabic in the same line, like twitter app!

the words alignment goes wrong!.

Can you fix this Madmack via patch later? :rolleyes:

BTW: sham on Google :mad:
[Galaxy S II Themes and Apps] madmack:
looks like i won't be retiring this patch anytime soon, lol.

this shouldn't be a problem. I'm not sure it'll warrant a whole new patch though. :rolleyes: Its probably just a little framework.jar tweak without the need to modify the rest. I'll see what I can do :)
[Galaxy S II Themes and Apps] M_J_Nazari:
Hi Madmack

thanks for your great work.

just one problem after patching the files.

the samsung keyboard on 3x4 style, have a big problem, some Korean characters are appeared!!

i used all recent of your scripts.

0.813~0.906
[Galaxy S II Themes and Apps] madmack:
wow, what keyboard is that?

it doesn't like my custom fonts. you'll need to play around with the fonts in /system/fonts or get another keyboard. from what I can see, the problem is not from my arabization or RTL files per se.
[Galaxy S II Themes and Apps] M_J_Nazari:
i think its related to Samung Keypad.

thanks
[Galaxy S II Themes and Apps] jaikat:
hey madmack

its been a long time.. i'm the guy you helped bring arabic to his sense rom a year ago.. maybe more..

i need some help.. again.

i now own a i9100, and i used your patch to bring arabic to a rom(kl1 version) i'm using, and it seems there's a problem with brightidea's libwebcore patcher (at least in my case), cause every time i visit an arabic site the browser would crash randomly..

i even tried brightidea's patcher from the market without flashing your patch and got the same result..

the rom is based on 2.3.6.. if the sources are out would it be too much to ask for you to patch the libwebcore from source "the old fashion way"?!
[Galaxy S II Themes and Apps] adamsuail:
why not try ICS roms for SGS2? i really love the new browser and it has native Arabic support.

* BTW, Android 4 (ICS) will be officially available via kies tomorrow.
[Galaxy S II Themes and Apps] jaikat:
What can i say.. im a dinasaur ;)

No the truth is i really like this rom im using, because of the theme and the fact that its stripped of all the junk i dont use..

So i hope madmack or anyone could lend me a hand here..
[Galaxy S II Themes and Apps] madmack:
hey, good to see you jump ship :)

afaik, brightidea's patch works totally fine with all versions of the GB roms released for the Galaxy S2. I personally released some stock roms with a lot of versions of these GB roms and they all worked fine. I'm not entirely sure why it is crashing on you :confused: but I highly recommend taking that issue to brightidea's thread as he's the one who's patching the libwebcore.so file for us.

btw, did you move two files once his patcher is done? you'll need to move both lib__bcore.so and libwebcore.so to your lib/ folder and make sure you got libicuuc-arabic.so also installed.

otherwise, you can give me a log of when the browser crashes and I can perhaps give more insight but yea, definitely check brightidea with that.

as for the good old fashioned way, my setup is pretty dated and i haven't touched it in a while :rolleyes: lol. i never actually really succeeded at providing a crash proof libwebcore.so for the Galaxy S2 using my old fashioned manual patching method. It kept crashing and i was never able to figure out the reason.
[Galaxy S II Themes and Apps] jaikat:
Well i cant say i feel the same. i miss the trouble free htc days and the unbelieveable amount of development in that part of the world..

Im sure the problem is caused by brightidea's patch cause like i said i tried his app from the market and got the same random crash. this is why i thought maybe u can patch the source like u used to back in the days..

Tell me.. At which point did u start incorporating his libwebcore patch with yours?

Maybe if i try an older one i would get a better result..

Also now ill be looking for some kl1 rom with working arabic libwebcore to try.. wish me luck. and as always... thanks.
[Galaxy S II Themes and Apps] madmack:
The change log at my blog should give you a pretty good idea of when I started incorporating brightidea's patch. You really should drop him a post over at his thread.
[Galaxy S II Themes and Apps] tghandour:
Hi Madmack,

Excellent and great job done man :-).

I was so skeptic that this would work but I have just applied your Patch ver 0.906 to get Arabic support for GingerMod 0.8.5 AOSP ROM. Followed your step by step guide and got the CWM flashable file, flashed it in CWM, reboot and Voila... All is working perfect and flawlessly on Gingermod ROM 0.8.5 (GB 2.3.6 - BB XXLPH - XWKL1) with Siyah kernel 2.6.13 #122 installed.

Installed Smart KB Pro, Go Keyboard with Arabic support and tried stock browser, Opera, Dolphin HD, FB, Twitter,.... all working flawlessly :-)

Thanks again for you and brightidea for your excellent work..

Best regards..
[Galaxy S II Themes and Apps] madmack:
You're very welcome :)
[Galaxy S II Themes and Apps] AndroSung:
can it work on galaxy ace ? :)
[Galaxy S II Themes and Apps] tghandour:
What is your Android version?
[Galaxy S II Themes and Apps] the_gunners:
i'm using custom 4.0.3 rom, while it can read arabic words/language with not problem.

but somehow it cannot write or even doing copy paste not showing the word properly it's disjointed.

any chance of creating mod for 4.0.3 ?

here's sample of copy-paste from web site in my phone
[Galaxy S II Themes and Apps] AndroSung:
my android version is 2.3.6
[Galaxy S II Themes and Apps] zenosteam:
is there a new patch for arabic rtl for ics ?
[Galaxy S II Themes and Apps] AShadowX:
No because there isn't a need for one. Ice Cream Sandwich comes with Arabic support (RTL) built-in already, so there's no need to even create a patch or mod for it.
[Galaxy S II Themes and Apps] madmack:
I won't be working on that as this bug doesn't bother me personally.
[Galaxy S II Themes and Apps] MAJED.y:
Dear Madmack, are you happy with the Native RTL in ICS?

for an Example in Twitter App, English/Arabic/numbers in one line make the reading difficult!.

Other thing, Is there a way to change the default FONT correctly?!

as If i change it manually, the letters in Browser/Facebook/Gmail appear unconnected!!!.
[Galaxy S II Themes and Apps] madmack:
In all honesty, I am happy with it as it does what I want. Granted, most of my communication happens in English given that I'm in Boston but I really don't have the will or necessity to dig through Google's new RTL implementation and fix it.

Understand that my fix came initially where we had no connected letters at all in Eclair, Froyo and GB. That's why this work came to realization in the first point :) Now, if I was working in Google's Android RTL dev team, I'd fix it :cool: but that's not the case. Who knows, maybe someone who has the will will look at the AOSP source code and find a solution someday, but that someone certainly isn't going to be me.

I'm not sure about the font issue. I haven't looked at that personally.
[Galaxy S II Themes and Apps] the_gunners:
seems the native support for ICS not "so native"

problem also happens with my ics phone :(
[Galaxy S II Themes and Apps] the_gunners:
have you try copy some arabic word, and pasteing somewhere (eg. sms, twitter status update)

in my phone i can read arabic perfectly, but when copy-paste it will look disjointed... not readable :(
[Galaxy S II Themes and Apps] M_J_Nazari:
Hi Madmack

I'm on finializing the rom for galaxy s middle eastern users, based on official2.3.4 JV7 release.

I have one problem , can't fix it.

As you see, the sentence is stick to the left, while it must stick to the right side.

how can i fix it,

remember , its an official Samsung's release.
[Galaxy S II Themes and Apps] madmack:
JV7 has RTL support from sammy? if so, i can't help you. these are closed source binaries that i don't enjoy decompiling or fiddling with. use any other rom and my patch instead ;)
[Galaxy S II Themes and Apps] M_J_Nazari:
yes it has, its an Africa firmware, that includes arabic shaping.
[Galaxy S II Themes and Apps] bu2askoor:
I have that problem when trying different browsers, but it works fine one the default browser (internet)
[Galaxy S II Themes and Apps] hardy6boy:
Tested on SAMSUNG SGH-I927R CAPTIVATE™ Glide with Osimood v2.02.14

Works perfectly, thx
[Galaxy S II Themes and Apps] hkhan1:
Then how come I see the broken letters on the web pages. Is there a way to fix it without any patch or so. You can see the attached picture with broken letters.
[Galaxy S II Themes and Apps] madmack:
no clue. i don't have that problem on any ICS rom I've used whether it's an emulator or a rom on the galaxy s2/note (stock or cm9).
[Galaxy S II Themes and Apps] astroID:
Hi Madmack...first of all thank you for your patch, it work on my phone with gingerbread 2.3.6. Your patch can display properly connected with other apps except gmail. In my phone when I open gmail the arabic letter were still from left to right instead of right to left.

Do you know how to correct the arabic letter in gmail, so it can read arabic from right to left

†ђąηk ўσυ;;
[Galaxy S II Themes and Apps] brightidea:
Hello MerrillMartin

Firstly let me welcome you to the past :)

Secondly my program patches the browser core system shared object to inject special code which renders rtl text correctly - it does not enable rtl outside browser toolkit

Lastly you need to include a lot more details to get helped

BR,

Brightidea
[Galaxy S II Themes and Apps] madmack:
Yes it will. both browser + system files.
[Galaxy S II Themes and Apps] MAJED.y:
madmack here is Good news > hope.

official GT-I9100 source code
[Galaxy S II Themes and Apps] madmack:
read my post earlier today. its not really "good news".
[Galaxy S II Themes and Apps] MoFsaD:
^^

so it's dead end :(

is I know that Middle East Phones will be with tegra 2 processor and it's rom ill not be able to flash it in Dual-Core phones

when that happens can we fix it ?!
[Galaxy S II Themes and Apps] madmack:
it depends on what kind of architecture these tergra2 processors support i suppose. but most likely it won't happen. when you change a cpu in a phone, a lot of things get changed as well. that includes the regular binaries that we have in /system and obviously the big one, the kernel.
[Galaxy S II Themes and Apps] abuleen:
Dear madmack

Could you upload. Libwebcore.so the oreginal stock one please

Best regards
[Galaxy S II Themes and Apps] x10i_droid:
Hi madmack,

what if i installed kies and still on cmd i get a error message indicating that "device not found "