yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] madmack:
k, I got a lot less hangs and a couple of other guys confirmed that as well.

given that I still had some crashes sporadically, I'll continue to look for solutions in the code.

will let u guys know if I got anything new :)
[Galaxy S II Themes and Apps] kzakaria:
Thanks
[Galaxy S II Themes and Apps] madmack:
try this guys and lemme know:

http://www.multiupload.com/FFRAPBFZQZ

we need as much beta testers as possible :D
[Galaxy S II Themes and Apps] kzakaria:
Same. I made sure I cleared everything. FC sfter 10 seconds.
[Galaxy S II Themes and Apps] madmack:
your file is most likely not getting replaced.

I'm uploading 1.3 of my rom. Flash that when its up, and then factory reset. Then try again with the browser. it should be very usable now.
[Galaxy S II Themes and Apps] MAJED.y:
The one before the last one with the Original font is okay, with extensive use no FC which is good.

I think just the font need to be replaced.

Good work Madmack.
[Galaxy S II Themes and Apps] abuleen:
this one is very good

is it diffrent than the latest one?

and what do you think about KE7? :)

best regards
[Galaxy S II Themes and Apps] madmack:
I haven't tried KE7 yet. I hope Samsung got around to fixing the battery drain issues.

I'll load it when I get some time :)
[Galaxy S II Themes and Apps] madmack:
more beta testers ?

http://www.multiupload.com/IU4A9SB4Y9

place this file in /system/lib and lemme know if it fixes the webcore crashes (or at least minimizes them).

its been frustrating lately.
[Galaxy S II Themes and Apps] oozrafa:
Got this one from an Israeli forum (don't forget to unrar it) and tested it with alarabiya.net and no crashes. I hope this helps you all. Please let me know...
[Galaxy S II Themes and Apps] madmack:
thanks. the hebrew patch to libwebcore.so is quite different than what we have to do. i'm in contact with the authors and they developed a patch that simply takes the already compiled binary from stock, and hex edit it to make letters flip. the problem with arabic is that we need to add the shaping functions. so hex editing won't help us here.

wish i had better news, but i don't :(
[Galaxy S II Themes and Apps] madmack:
all right guys.. last beta test for the day:

http://www.multiupload.com/MN900A4OLO

this should be pretty darn stable. if it crashes once or twice, keep going. don't give up on it. it seems once it got the Cache settled at a certain level, it will refuse to crash. Hopefully this won't be necessary if users just simply factory reset.

Let me know ! my army of testers :p
[Galaxy S II Themes and Apps] kzakaria:
Madmack:

Thank you so much for all the hard work. is it possible to move to KE7 as this makes your work much more future proof. I upgraded to KE7 and was asking if I should start testing using the attached file with KE7. Also try to have one thread only which makes things easier.

Again: Thank you so much for all the hard work ;)
[Galaxy S II Themes and Apps] madmack:
arabization files are one thread only. ROM is another thing, and it belongs to another thread.

discussions about trying webcore files, font files, and other stuff of the sort are here. Deodexation and ready arabic files are on the other thread. I don't want to mix and match both.

to answer your question, yes. you can use these libwebcore.so files on any 2.3.3 samsung ROM.

I'm running it myself on a odexed KE7.
[Galaxy S II Themes and Apps] kzakaria:
OK. I will try and let you know how it goes.
[Galaxy S II Themes and Apps] kzakaria:
It works with ke7

You are the MAN!!!!

This is what I did:

1- Upgrade to KE7

2- Factory Reset

3- Root

4- Restore stock kernel

5- replace the orginal libwebcore with yours

and the browser works ROCK SOLID. I do not hav Arabic anywhere ealse but that is good for now

Thanks. IT WORKS:):):):):)
[Galaxy S II Themes and Apps] renegade:
Installed on madmack's 1.2 and browser super stable now. Thanks for the great work.

note: Dolphin HD was hanging but upgraded to 5.2 beta an it's all good.
[Galaxy S II Themes and Apps] madmack:
thanks for the feedback guys. its not perfect still i believe :( it seems samsung's implementation in caching is not working perfectly. I'm having some very stable results with this webcore but if you clear cache, and then visit the site of death (acid3 testing site), it'll hang. If I go visit some other sites first, preferebly visiting less complex sites and escalating all the way to engadget and aljazeera, then everything works fine, including the SOD.

I'm done playing with compilation flags as I believe I've reached optimal results with this latest webcore. I'm going to dig deeper into samsung's code and disable their caching mechanism piece by piece. I think its really whats causing the trouble and I have no idea whether the code they provided is what they actually compiled into their released webcore.

I'll let you guys know if I have more stuff to test. Thanks for all of you who help out :)
[Galaxy S II Themes and Apps] MoFsaD:
is there deodexed KE7 ?
[Galaxy S II Themes and Apps] madmack:
i'm not aware of any except for the one i did which is still somewhere on my hard drive. (not that solid, will need to redo it)
[Galaxy S II Themes and Apps] madmack:
new webcore:

can you guys test this version and let me know if it crashes ?

http://www.multiupload.com/NAAG23AOKB

Its considerably larger, but its built with the new toolchains (had to do some real work to get it to compile), but we get all the latest optimizations from code sourcery. (logs even mention something about fixing stuff that are cortex-a9 specific)
[Galaxy S II Themes and Apps] Azdian:
needs a factory reset ? or just replacing&rebooting
[Galaxy S II Themes and Apps] madmack:
replace & reboot.
[Galaxy S II Themes and Apps] MAJED.y:
I'm on deodexed KE7 with KE2 browser with original font.

Open Okaz.com.sa site, zoom in zoom out in the 4th zoom the browser just hang.

cleared the cache, do it again ..hang....

I don't know if that's count!.
[Galaxy S II Themes and Apps] madmack:
thanks for the report.

i went to that site on my odexed KE7 rom, zoomed in and out about a gazillion time without a problem.

it could be with your deodexed rom setup. did you try deodexing KE7 ? any stuttering in the browser ? I'm guessing thats why you've placed the KE2 deodexed browser. maybe the incompatibility is causing these issues for you.

Otherwise try to clear cache, or better yet, clear the browser's data from manage applications in android settings and try again.
[Galaxy S II Themes and Apps] madmack:
screenshots

a nice gentleman by the name of "Saudi Guy" gave me these screenshots as a confirmation that the latest webcore works flawlesly even with heavy websites, so I thought I'd share that with you guys:

http://www.4shared.com/photo/pqBw05bu/SC20110524-150808.html

http://www.4shared.com/photo/PqiDgLJi/SC20110524-150820.html

http://www.4shared.com/photo/utBA35Yu/SC20110524-150823.html

http://www.4shared.com/photo/WloBNgZG/SC20110524-150831.html

http://www.4shared.com/photo/bkGmiFpP/SC20110524-150836.html

http://www.4shared.com/photo/unhY704f/SC20110524-150839.html

http://www.4shared.com/photo/B-LhOmob/SC20110524-150845.html
[Galaxy S II Themes and Apps] MAJED.y:
I did it with Ultimate just got Phone/Email Apks from KE2, and yes about the browser!.

The rom works flawless by the way as I'm using it all the time.

I will try to back to KE2 and see.

thank you Madmack.
[Galaxy S II Themes and Apps] Azdian:
صworks perfect till now.

opened 4 tabs ( aljazeera - alarabiya - okaz - adslgate )

switching between them .. zooming in & out and fast scrolling with no crashes .. works like a charm :)

many thanks
[Galaxy S II Themes and Apps] madmack:
thanks guys !

very good feedback so far. no problems at all. I think indeed it was faulty outdated toolchains that are the cause of this abrupt crashes.

Let me see if I can add more NEON optimizations to speed it up a bit. Once that's done, I'll test it and upload it here. But at least we're on the right track now :)
[Galaxy S II Themes and Apps] cturbos:
what is it based on?

thanks
[Galaxy S II Themes and Apps] madmack:
the only sources available.. KDD

but the libwebcore didn't change between the roms so far, so we're good :)
[Galaxy S II Themes and Apps] cturbos:
so,is this 1.4 version?
[Galaxy S II Themes and Apps] madmack:
nope. no 1.4 is released AFAIK
[Galaxy S II Themes and Apps] kzakaria:
working here

Works like a charm :)
[Galaxy S II Themes and Apps] madmack:
thanks for the feedback guys.

I actually managed to eventually crash it with some heavy rigorous testing :(
[Galaxy S II Themes and Apps] Azdian:
write here some websites thats crashed the browser ?

cuz acid3 website works fine
[Galaxy S II Themes and Apps] madmack:
yea i know. its really weird, i think there is a memory leak problem.

open big websites (engadget mobile desktop, aljazeera.net portal, acid3) and whatever you can think of that has big rendering requests.. and it'll freeze.

maybe its because i messed up my system with different webcores and you guys have a clearer cache.. (does that even matter with .so files ?)

if you go to the acid3 site, and scroll up and down after its done rendering the 93% thing, does it crash ?

edit: i've reset browser data and cache from android's setting menu and the crash in acid3 has stopped.
[Galaxy S II Themes and Apps] MoFsaD:
Could u please upload the deodexed KE7 I have been looking for it
[Galaxy S II Themes and Apps] madmack:
nasty new trick to make libwebcore.so work with minimal dependencies:

http://www.multiupload.com/A8NEMY6RJM

it didn't crash here initially. file size is a bit larger but hey, can't complain right.

please try and let me know.
[Galaxy S II Themes and Apps] madmack:
updated first post to reflect this new webcore that is stable enough.

browser shouldn't crash now. have been tested by a dozen ppl including myself.
[Galaxy S II Themes and Apps] oozrafa:
Hey madmack

I know this is for the GSII (which i've already fixed using your patching tool), but I also have an LG Optimus 2x and the patching tool doesn't work on it. It gives me an error saying that it can't patch the libandroid_runtime.so file :) any ideas?
[Galaxy S II Themes and Apps] madmack:
are you using a custom ROM on the optimus ?
[Galaxy S II Themes and Apps] oozrafa:
Yes, Im using modaco's rom
[Galaxy S II Themes and Apps] madmack:
They might have patched it already. You can put any pseudo libandroid_runtime.so in the patcher (just to fool it) and then when the patcher is done, copy all the files except that one.
[Galaxy S II Themes and Apps] Dark_Lord0122:
when i read arabic using whatsapp ( using patch only ) i see the letter ف after every letter and the first letter of every sentence is cut off. i am using lite'ning rom.
[Galaxy S II Themes and Apps] madmack:
I have some cousins in Hamad Town :)

Yea, its a known bug from the sources. I'll need to update my sources which will fix some stuff like the flipped numbers at the beginning of the line.
[Galaxy S II Themes and Apps] Dark_Lord0122:
nice to know :P

oh i didn't know that its a known bug i thought i messed something up xD.

your work is amazing :P keep up the good work :)
[Galaxy S II Themes and Apps] madmack:
Yea, this arabization is a port of the arabic patch made for CM7. I only worked to make it portable to all different android devices. So as a freebie, we get to inherit all of its faults as well :rolleyes:
[Galaxy S II Themes and Apps] oozrafa:
I tried this but then i just get into a bootloop :( I've also sent Paul a message asking him about this. I've attached the libandroid_runtime.so form the O2X so that you can try for yourself.

Any more ideas?
[Galaxy S II Themes and Apps] madmack:
Unfortunately I didn't write the code for the LibPatcher.exe file so I have no idea why the O2X's is any different. Maybe the ISA's are so different that the LibPatcher was unable to process it, which is the first time this has happened. This LibPatcher was created by the guys who created the first Hebrew Patcher. It basically renames a certain JNI call so that it can be compatible with our new framework.jar patched files.

So I guess I should report it to the author of that file, and he can look it up himself.

You can always revert back to older versions of my patch which did not require a patch to libandroid_runtime nor an libicuuc-arabic.so file. Look through the change log to figure which one exactly you need.
[Galaxy S II Themes and Apps] bu2askoor:
Ardoid.com has some files which might be ported, but I think they are closed source.
[Galaxy S II Themes and Apps] Amr.mashaal:
It is working for me except for a ف that appears istead of every space. Is this a known bug or it is just me

Do you guys have a fix for it
[Galaxy S II Themes and Apps] madmack:
change font, read OP. I don't know why u ignored that part
[Galaxy S II Themes and Apps] Amr.mashaal:
thanks man, i thought it was optional.

i have noticed also that when i send SMS from the stock application in Arabic the receiver get ???? instead.

i can receive Arabic SMSs without a problem.

did you notice that?

handcent is working though.
[Galaxy S II Themes and Apps] soyef:
Go to messaging, menu, settings, input mode and change it to automatic
[Galaxy S II Themes and Apps] zidane:
is it possible to make a flashable zip file to get arabic on any deodexed rom?
[Galaxy S II Themes and Apps] frozen5555:
where can i find latest stock libwebcore.so?
[Galaxy S II Themes and Apps] madmack:
stock non-arabized libwebcore.so: http://www.multiupload.com/FWZPLIEY4G
[Galaxy S II Themes and Apps] frozen5555:
Thanks madmack, will you help me in restoring default font in your rom so i can use firefox for arabic websites?
[Galaxy S II Themes and Apps] madmack:
Sorry man. I don't want to put a backup of every file on this thread. Make sure you backup the files that you want to keep before replacing them.

New webcore

I've built a new webcore file based on the HK source code for the I9100. Its the closest in binary to the file that ships with the phone. Don't get me wrong, it still likes to crash here and there but that's the one I'm currently using so thought I'd share it.

http://www.multiupload.com/NRDCJWAPWV
[Galaxy S II Themes and Apps] zidane:
thanks for the new update, i'll try to give it a shot once i get everything else working.

i have tried to get arabic on my phone but had no luck, does the link to your blog work on any ROM?

i am using AngeloM (thread closed here, but you can find it here: http://www.androidiani.com/forum/modding-samsung-galaxy-s2/48449-rom-ginger-deo-2-3-3-deodexed.html)

the patch successfully created three files and i replaced them as instructed but arabic letters are still disconnected.

i tried the CWM flash zip and also did it manually but still no luck.
[Galaxy S II Themes and Apps] madmack:
you're most likely not replacing the files if the letters are not shaped still.

I know some apps tell u the file was replaced when it really isn't. the old version of root explorer does that in the sgs.
[Galaxy S II Themes and Apps] zidane:
i have the latest version of root explorer, i checked the file date modified etc and they match

i tried using adb but for some reason adb remount doesnt work, and the only way i can actually replace the files was by using root explorer.

when i run the commands, i select AOSP correct?

i have a feeling im doing everything right, and the problem lies with the ROM im using
[Galaxy S II Themes and Apps] madmack:
delete libicuuc-arabic.so from your lib folder and reboot. see if that works or if you get a bootloop. If you don't get a bootloop then the files are definitely not being replaced correctly.

where are you checking for shaped text ? I hope not the browser or gmail because the framework patch doesn't shape text there.
[Galaxy S II Themes and Apps] zidane:
no i read your post thoroughly, haha! i was checking in messaging.

anyways, you were right!

i didnt get a bootloop. so you think the problem is the ROM im using, and that the files are really not being patched (even though it tells me created new framework.jar successfully)?

or if it is simply as you said, and nothing is really being replaced, do you have any other suggestions for me?

thanks for your time!
[Galaxy S II Themes and Apps] madmack:
I replace these the adb old school way. change ur kernel if u can't remount or google around for how to use "mount" in the shell to do it.

you can ask about these things to the rom's chef, he'll tell u. but my framework patch will absolutely work, no doubt about that ;)
[Galaxy S II Themes and Apps] zidane:
it was the kernel. i tried with shell and still got an error.

so i changed the kernel and adb remount worked so i did it the old school way too haha.

i guess they got copied correctly this time, because now im stuck at boot screen. the first screen you get when it tried to boot up.

its been 5 minutes now, so im pretty sure its stuck.

should i put CWM and restore my backup or is there another solution?
[Galaxy S II Themes and Apps] madmack:
just make sure you copy the three files. missing any one if them will definitely give you a bootloop. there is no bug with my patch, and if u do it correctly, it'll work.
[Galaxy S II Themes and Apps] zidane:
im changing ROMs some time today, i will try again with the new ROM.

thanks for everything
[Galaxy S II Themes and Apps] aflatonios:
after replacing the " libwebcore" my phone won't boot anymore . it's stuck on "Galaxy s2 GT-i9100 screen"

could you help me please ?!
[Galaxy S II Themes and Apps] madmack:
reflash any rom using Odin.
[Galaxy S II Themes and Apps] BAZ007:
Thanks Madmack for your support

We really do appreciate it, and I am just thinking how long it would have taken us to Support Arabic on the new devices in such a short time without you !
[Galaxy S II Themes and Apps] madmack:
did you figure out how to replace the font ? ;)
[Galaxy S II Themes and Apps] myakove:
Just use the Arabic shaping for Android 2.2 and 2.2.1 on VillainROM 1.2.

Works perfect, Thanks

I have selected AOSP when asked.
[Galaxy S II Themes and Apps] santacruzdz:
your file made my webbrowser freaze and doesnt work at all, and additionally it ask to install a third app on my Terminal...which is very suspecious i think....luckly i made a back up !
[Galaxy S II Themes and Apps] madmack:
[sarcasm]yea, good call.. stay away from my files. 3rd party software hackery FTW :rolleyes:[/sarcasm]
[Galaxy S II Themes and Apps] BAZ007:
Buwahahaha

It was that I forgot to enable "root function" to super manager after my fresh flash, I was going insane and thought of ADB shell as my last resort !!

I would love to get my hands on AL Jazeera font =)
[Galaxy S II Themes and Apps] madmack:
that font is included in the 0.803 patch. Look under the fonts subdirectory.

Not sure if it will get rid of the font spacing issues though.
[Galaxy S II Themes and Apps] BAZ007:
I will check and report back
[Galaxy S II Themes and Apps] BAZ007:
Aljazeera font is displayed correctly, however its the text justification is starting on the right, and the letters are disconnected, these are the issues !
[Galaxy S II Themes and Apps] santacruzdz:
well, i wanted to give another chance to your file...so i copied it using root explorer and replaced the original in the lib folder/system...at first worked okay...then after few time, the web browser started to crash unusually..more than usually i mean...so im not sure if the "lib" file you posted is compatible with the stock roms.? i dont know if all other users have this problem too ?
[Galaxy S II Themes and Apps] BAZ007:
Maybe you should give your self a chance before giving others a chance ?

How come you use a patch that is designed for deodexed ROMS ONLY ...

You did not even read the OP in this thread which points out steps clearly, moreover you are making false statements and bashing the Developer with no proof/knowledge of what you are talking about.

1- Read OP Post

2- Follow Instructions

3- Politely ask for help if you encounter a problem
[Galaxy S II Themes and Apps] bu2askoor:
Madmack made out clear many times that the browser is not stable with Arabic.... nothing new... No need to argue people :-)
[Galaxy S II Themes and Apps] madmack:
if you would read through the first few pages you'll know that the webcore file has some problems and we're not able to overcome them completely yet.

you just can't come in and bash on work that you're clearly clueless on how to appl or what it exactly does without even asking if you got everything right or for help at all as a matter of fact.

3rd party software hacking you say ? its beyond me how and why you would even say that! lol. I just don't understand some people.
[Galaxy S II Themes and Apps] santacruzdz:
you guys should sign for a petition so that Google add Arabic reading and typing in its android versions...it is significant that you understand why with over millions of users across the world..arabic is is just ignored or half working in its version..!

arab customers seems to be not enough valuable in google eyes...??
[Galaxy S II Themes and Apps] xenastro:
Salam Madmack,

I have installed Villain ROM 1.2, and installed the arabic support from VillainTweak 1.3.1 but it did not work properly.

I can read sms in Arabic but text is grabled a bit, and it didn't work at all in browser.

I tried to do your method manually and patched framework.jar, but it kept giving me an error that "libandroid_runtime.so" failed.

I also tried replacing libwebcore.so from your OP into /system/lib and that still did not enable Arabic in browser.

Any idea what I can do? many thanks for all the contributions to the Arabic community :)
[Galaxy S II Themes and Apps] iznee:
I am in the middle east...so when i open google page using stock or dolphin browser the arabic writings are opposite and disconnected...but if i open google with opera mobile..the arabic writings are in proper RTL format and is connected although the fonts are horrible..

All this while i thought the phone itself must have proper language pack or software to display any particular language.
[Galaxy S II Themes and Apps] madmack:
The OP's libwebcore is not exactly stable yet. You're probably not replacing it correctly, that's why the browser is not changing.

As for the garbled text in SMS. Make sure you get the Font in the OP. all this information is available in the OP.

You can't patch libandroid_runtime.so after you've used VillainTweak because it already patches it. that's why you're getting this error. Just use VillainTweak's arabic patch and change the font. You don't need to do it manually again.

Dolphin and Stock browser use the same stock webkit engine (no arabic by default). Opera and Firefox have arabic shaping in them because they use a different rendering engine.

Unfortunately the browser will remain unreliable til perhaps 2.3.4. I decided to step back and not exhaust myself over it because I think the bug is the same one we have with the Android OS battery drainage that is specific to 2.3.3 Gingerbread on Dual Core phones. So once 2.3.4 comes out, i'll give another shot at it.

In other news, some guys over at ce4arab are trying to extract a beta samsung arabic firmware that they have for the SGS2. This should come arabized perfectly everywhere for us. Lets just hope they can extract it. Once its out I'll see if I can port the files or make a rom out of it for everybody :)
[Galaxy S II Themes and Apps] madmack:
Browser files fixed for good

Update:

Browser arabized perfectly now and is FIXED

Thanks to AlWakra, he uploaded a beta arabic ROM and I extracted the libwebcore.so file and its dependency. Tried it on VillainROM and it works superbly so far. Shaped and all.. Yep ! Here are the two files zipped up for your convenience:

http://www.multiupload.com/7PHQ4RO0ME

Just put these two files in /system/lib and reboot.

Thank you AlWakra. I was growing old and tired with my own efforts.
[Galaxy S II Themes and Apps] bu2askoor:
Great news for there browser.

Madmack:

I tried to patch cognition ROM. It worked to a certain level. Arabic letters had issue in alignment and there was the letter ف between words.

Any ideas?

Thanks
[Galaxy S II Themes and Apps] madmack:
nothing much we can do about the alignment but you need to use the font from the OP to fix the spacing issue.