yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] nechmadi:
About a month from now sani the samsung importer in israel will sell phones with rtl and hebrew. When it will be out we can use their files
[Galaxy S II Themes and Apps] tamarian:
Thank you Madmack, this is beautiful, worked like a charm, using the new libwebcore posted at ce4.
[Galaxy S II Themes and Apps] madmack:
http://www.multiupload.com/MBV61LPUXN

if that happens, something is wrong with your kies drivers' installation.

yea, its "better" but not perfect still. i think i know what parameters are messing with it. I'm still throwing a buncha libwebcores at my unit to see how it likes them. aljazeera.net is a great website to test that. i think the main culprit is my choice for the floating point unit. lets see what our cortex-a9 has in store for us.
[Galaxy S II Themes and Apps] maaafeb05:
Guys I need help

When I reached part 9, I had some error

stop

mount -o rw,remount /dev/block/mmcblk0p9 /system

rm /system/app/*.odex

rm /system/framework/*.odex

cp /sdcard/KDD/deodex/app/* /system/app/

cp /sdcard/KDD/deodex/framework/* /system/framework/

cp /sdcard/KDD/arabic/*.so /system/lib/

cp /sdcard/KDD/arabic/*.jar /system/framework/

chmod 644 /system/framework/*

chmod 644 /system/app/*

chmod 644 /system/lib/libandroid_runtime.so

chmod 644 /system/lib/libicuuc-arabic.so

chmod 644 /system/lib/libwebcore.so

Then restarted the phone and stock at the boot screen with yallow triangle. I have tried to do something from the recovery screen but it did not respond. Please help me
[Galaxy S II Themes and Apps] madmack:
Update

I've released a new version of the arabic patch: http://www.multiupload.com/OF1AC5ZAG3

It includes a new libwebcore.so with optimizations for our Exynos processor (fixed crashes in browser so far on my device) and it includes two new fonts that you need to copy to /system/fonts

This fixes the problem of "ال" appearing as "لا" in some cases.

Enjoy it guys ! our SGS2 is arabized perfectly now. I've also updated the OP to reflect these new changes for those of us who are arabizing the phone from scratch again.

make sure you had no errors when you press enter after each step. You most likely didn't copy the files and ignored one of the errors. You cannot have any errors in these steps, so make sure you follow them to the letter. (following caps and noncaps as well)
[Galaxy S II Themes and Apps] MoFsaD:
^^

good news :)

and my phone just arrived :p
[Galaxy S II Themes and Apps] ali_hasiri:
Thanks bro.

Worked like a charm. Great job
[Galaxy S II Themes and Apps] MoFsaD:
madmack i can't thank you enough

after this last update in some arabic websites browser become unresponsive then went back to main screen i have to close it via task manager to be able to use it again as browser took like 44% of processing 'red'

no FC

in websites like adslgate . c o m and ce4arab

if i scroll the page down n up it lags and shut down :)

i had to download anther browser

i don't know how to get the logcat :confused: for you
[Galaxy S II Themes and Apps] madmack:
I've seen that clearing cache and rebooting fixes it.

go to the browser settings, and clear cache, history and cookies.

also, you'll need the new fonts for the browser not to crash. without them it seems to crash still.

its working here, albeit not perfectly.. but satisfactory for the moment at least for me. I tried hard to crash it on aljazeera's website and it didn't. *fingers crossed*
[Galaxy S II Themes and Apps] madmack:
Want battery %, CRT and colored status bar ?

these are the two files you need:

http://www.multiupload.com/VYXDM9CAIG (Note, won't work with KE1. Only KDD's ROM. If you followed my guide you should find)

unpack the file, place framework-res.apk in /system/framework and SystemUI.apk in /system/app with the correct permissions. (You can use Root Explorer for that)

I got these files from Rawat's thread, deodexed SystemUI and placed it here for you guys. So thanks to him.
[Galaxy S II Themes and Apps] salamt:
Great. It works great :) with no more hangs

only if the reshaping get fixed. The problem with reshaping I get only with arabic+numbers+symbols in one line. I remember this was happening in the older CM7 releases but it got fixed in the CM7 Stable. So, do you think you can get the reshaping from there?

This is not a big deal as it is rarely happening but want to see if fixing this will be an easy job for you

EDIT: Correct Values in first one are:

250, 44.27, 205.735, 1432/06/05, 23:24:35

Second one:

250, 51.19, 198.809, 1432/06/07, 03:08:24
[Galaxy S II Themes and Apps] sim_jim:
thanks madmack ... everything is working fine except the browser still crashes some time i cleared the cache and rebooted the phone .. but still it crash when i scroll in adslgate.com for example .. some times not all the time ..

one more question .. as u said u can change the browser fonts ... how can i change them ?
[Galaxy S II Themes and Apps] fataldeath44:
Re-upload please

thanks alot madmack for you hard work but please can you re-upload the rtl/arabic, deodexed and the original kdd files as i cannot download it.

if anybody can do it please, either to 4 shared or any other server. thankyou
[Galaxy S II Themes and Apps] madmack:
interesting problem. the arabic patch here uses the latest cm7 rtl patches, so i guess its a problem that exists over there as well in the latest nightlies. you think you can verify that yourself ? i'm interested to know but a little too lazy to flash cm just to check that thing out.

adslgate works perfectly fine over here.

i've actually made a small modification to the libwebcore again yesterday afternoonish :o. It is a bit more stable, but more importantly, you'll need the two fonts i'm including and to clear browser cache and history. reboot, then try again. (i've quietly reuploaded the arabic patch on the OP)

the browser is very picky about fonts being used. I think the original samsung bundle of fonts are missing some chars, thats why we get a browser crash at some point. i'm still investigating it though, coming up with some interesting results.

for now, don't play around with the fonts.. just add/replace the ones i'm including and your browser will work fine.
[Galaxy S II Themes and Apps] salamt:
It works OK with CM7 Final cm_bravo_41 in my HD2 :confused:

Don't bother as this is not a big deal :)

We are enjoying Arabic in our SGS2 and it can be said complete by the last patch
[Galaxy S II Themes and Apps] abuleen:
Dear MadMack

Thank you very much for your work

but still there is a problem

stock+unrooted = device works very good (no heat no hanging browser)(BUT NO ARABIC)

rooted(and deodexed)+arabic = heat problems + browser problems

rooted(and deodexed)+ no arabic = yet to test (2moro maybe)

rooted + no arabic = yet to test (later maybe)

does any body agree? or it is only my device?

P.S. when you use the stock browser in (rooted+arabic) mode and move away from it you will note that the browser still eating CPU percentage, while this is not the case with (stock+unrooted) mode the CPU useage is ZERO!

Best Regards
[Galaxy S II Themes and Apps] madmack:
i don't have the heating issue and my browser is indeed at 0% when moving away from it. you'll need to follow the instructions from scratch again. something is messed up somewhere, either your browser cache, the libwebcore used, or the fonts. my patch has gone through 3 iterations, the last one is solid.
[Galaxy S II Themes and Apps] sim_jim:
i did what u said exactly i changed the 2 fonts .. and cleared the cache .. adslgate is working fine but .. forum.xda-devlopers.com it stucks everytime when i scroll !!

how come?
[Galaxy S II Themes and Apps] abuleen:
this give me hope

because my device without MOD is great and i dont mind unrooted device but I need arabic

I'll do it again from scratch

and let you know
[Galaxy S II Themes and Apps] madmack:
just checked out http://xdaforums.com (yes, with the huge list of phones and subforum titles) and that didn't crash my browser either.

strange :confused: I can't fix it if I can't replicate it.

make sure you're using the latest libwebcore.so from the OP. I've updated that link twice yesterday.
[Galaxy S II Themes and Apps] madmack:
redownload the arabic patch as well ! don't use anything from before.
[Galaxy S II Themes and Apps] sim_jim:
Can u plz give me the link of thw latest ones because i downloaded the one u posted in the 7th page i guess.. thank you very much
[Galaxy S II Themes and Apps] madmack:
http://www.multiupload.com/3ZYVBSN3YZ (same thing as the OP)
[Galaxy S II Themes and Apps] sim_jim:
thank you very much for ur fast support :)

i checked the files they are the same ... some times it hangs some time it works fine its not 100% stable ... anyway thank you very much waiting for a new 100% stable browser this is only the problem ... :)
[Galaxy S II Themes and Apps] nechmadi:
i also get freezes on browser (happens also with skyfire and dolphin browser, in firefox no).
[Galaxy S II Themes and Apps] madmack:
yea, firefox uses their own webkit core. dolphin and skyfire uses the standard android libwebcore.so which is having some intermittent problems.
[Galaxy S II Themes and Apps] kasust:
PLEASE HELP!!!

How do I restore the original KDD???
[Galaxy S II Themes and Apps] madmack:
There is a troubleshooting section on the OP for you.
[Galaxy S II Themes and Apps] em4all:
i just flashed my device for the 10 time trying to get it right -font wise-

i just used the updated files you posted and the freezing in the web browser now is unbelievable... also after you changed the fonts for me Firefox now doesn't do Arabic very well :)

thought you should know

keep up the good work man

thanks
[Galaxy S II Themes and Apps] madmack:
so the freezing became even worse ?

its weird, its like I've set up a certain combo on my device of fonts/libwebcore that rarely halts or freezes. maybe its also related to the fact that I close all background apps constantly so its a ram issue ?

I think I'm missing some parameters to get the right libwebcore done :(
[Galaxy S II Themes and Apps] madmack:
New webcore:

http://www.multiupload.com/3HSMXR5VYW

guys, please try this file and report back if it still crashes. I couldn't crash it myself (but then again, it rarely crashed earlier on me).

I've made some floating point optimizations with some compiler flags.. file size is a bit bigger but hopefully will be on par with stock performance wise.
[Galaxy S II Themes and Apps] hussamb:
Hi guys.

Thanks for this...

Any one has the original fonts and libwebcore.so files.

Thanks in advance.
[Galaxy S II Themes and Apps] ahmadalani:
Can you please explain how is that done?:o
[Galaxy S II Themes and Apps] MoFsaD:
i replaced the file in system/lib ,cleared the cashes and reboot

and tried all website that had been crashed on me even the al jazerah. n e t

BUT NO CRASHES :D

scrolled up and down and do everything no crash until now

madmack u r awesome :cool:
[Galaxy S II Themes and Apps] abuleen:
:(:(:(

same problem

and the new font will dameg the arabization of firefox also

but we cant thank you enough madmack for all your hard work

I think i'll stick with the stock libwebcore.so and install the rest

and use firefox or opera for browsing

best regards,
[Galaxy S II Themes and Apps] MoFsaD:
try this thread from step 2

http://www.ce4arab.com/vb7/showthread.php?t=316581

it explain it perfectly
[Galaxy S II Themes and Apps] MoFsaD:
there r no fonts just the libwebcore.so file replace it in system/lib , clear cash of the browser and reboot

it worked for me
[Galaxy S II Themes and Apps] abuleen:
I think I found my poblem

it was the adobe flash update:confused::confused:

I removed it and now the browser works great, with no hangs with the stock fonts

can any body confirms?

i removed Flash Player 10.2 update

does any one have this update and also have no problems with the arabic libwebcore.so?

best regards
[Galaxy S II Themes and Apps] MoFsaD:
no I still have flash 10.2
[Galaxy S II Themes and Apps] abuleen:
dear MoFsaD

what text encoding you have in the browser?
[Galaxy S II Themes and Apps] sim_jim:
downloaded the new libwebcore.so

replaced it cleared the cache and everything rebooted the phone ...

checked adslgate.com scrolled down and still it crashes everytime :(

thanks madmack for ur hardwork but still it crashes
[Galaxy S II Themes and Apps] nechmadi:
i still got crashes, thanks for the good work.
[Galaxy S II Themes and Apps] MAJED.y:
Is there a chance of Arabic patch for the new Firmware "KE1" ?
[Galaxy S II Themes and Apps] madmack:
i'm spending whatever time i have optimizing libwebcore, but you guys are welcome to deodex KE1 and share your findings :)

I'll worry about upgrading our ROM once we know it works perfectly.
[Galaxy S II Themes and Apps] madmack:
what do you guys do to crash the browser ? lol

can you give me some sites that are guaranteed to crash it ? I'm trying to find one that is consistent but the browser seems to be working fine on most of them and seems random on my device.

adslgate, aljazeera, kooora and sometimes engadget's main page used to crash it here but not anymore with the latest one i posted yesterday.
[Galaxy S II Themes and Apps] sim_jim:
for me adslgate.com

some times when i scroll .. and sometimes lets say .. im on whatsapp the browser is opened in adslgate.com i go back to the browser it will crash .. forum.xda also im using the latest webcore ..

now i updated my device to the new firmware it will not work right ?
[Galaxy S II Themes and Apps] MAJED.y:
Your progress is great Madmac.

There's a rare moments where like "got an email notice from touchdown client, just open the email in html mode and trying to move the page where suddenly jumb back to home screen!"

But it does work good.
[Galaxy S II Themes and Apps] madmack:
attached libwebcore.so is compatible across all gingerbread 2.3.3 releases :) so no problem. i'm testing the latest version of webkit (posted yesterday, not in OP yet) on KDF.. works like a charm.
[Galaxy S II Themes and Apps] sim_jim:
i mean Deodexed files they will work in the latest firmware ?
[Galaxy S II Themes and Apps] MoFsaD:
http://www.multiupload.com/3HSMXR5VYW
[Galaxy S II Themes and Apps] hasan_abeer:
plz how could i update this one ,i already make root +arabizing but my browser sometimes force close??

thanks in advance
[Galaxy S II Themes and Apps] madmack:
better deodex the rom from scratch, and then patch the rom with my arabic patch 0.802. this is the guaranteed way for it to work. I don't know if my KDD or KE1 deodex files (on OP) will work. let alone whether the arabic files are gonna work also on these roms. everything in the steps in the OP are made for KDD at the moment.
[Galaxy S II Themes and Apps] madmack:
no solution yet. i'm working on that (although without much success so far).

get the latest file i posted yesterday and try that file. its the most stable libwebcore file that we have.
[Galaxy S II Themes and Apps] MAJED.y:
Madmack I was browsering this site for my friend http://www.othaimmarkets.com/ then

Hang and jumb to Home 3 times . "In main page and inside".

Hope this help.
[Galaxy S II Themes and Apps] madmack:
hey thanks for the site.

it's weird buyit actually works here :confused:
[Galaxy S II Themes and Apps] Azdian:
sometimes it does crash and back to the homescreen

few minutes ago i browsed aljazeera and adslgate with no problems

وهالشيء مزعج ما تعرف المشكلة من وين بالضبط لأنها مرة تطلع ومرة لا .. على الكيف :D
[Galaxy S II Themes and Apps] madmack:
yea i know.. it seems its an instruction or a precision problem.

anyways, here is another new webcore

http://www.multiupload.com/YC0X9K40HP

I've basically kept the ARM tree vector optimizations and removed the unsafe floating point precision optimizations. perhaps its these precisions that were making it crash.

it did crash on me.. but a lot less (only once, and i browsed a lot).

try it out, and as always.. clear browser cache after reboot.
[Galaxy S II Themes and Apps] em4all:
ok so if you want to crash the browser just open 3+ pages in a new window after allowing background opening and zoom in and out quickly on one of them try that on Riyadh newspaper ,,, for me this is a garanteed crash and / or freeze :)

brb trying the new stuff

thanks madmack
[Galaxy S II Themes and Apps] em4all:
Ok, just minutes ago adobe released flash 10.3 i updated and cleared the cash... smooth sailing for now

i will keep you posted
[Galaxy S II Themes and Apps] em4all:
i pushed the new webcore and ... it crashed without a stress test :) i think there is a little midget inside my device laughing and rubbing his hands right now
[Galaxy S II Themes and Apps] madmack:
did you clear cache ?
[Galaxy S II Themes and Apps] em4all:
oh yes ... i cleared the hell out of it

the midget is the problem ;0
[Galaxy S II Themes and Apps] em4all:
the best webcore crashing wise tell now is the first one ... the one you uploaded with the old font if you remember ... in fact that one dose not crash if you dont open an arabic website any ideas ?
[Galaxy S II Themes and Apps] madmack:
ROFL, mr midget could indeed be the problem :)

I've released like a gazillion libwebcores by now. lol. i don't know which one you're referring to.

if you know how to use the shell command (through "adb shell"), then do a "md5sum /system/lib/libwebcore.so" and give me what it spits out. I can tell which one by looking at that number.
[Galaxy S II Themes and Apps] em4all:
plz find the attachment
[Galaxy S II Themes and Apps] em4all:
P.S.

i know i said it never crashes with english websites but there is one exeption

chrome book web site is a pain ... it contains some heavy html5 stuff so probably even on stock rom the device would chock on it
[Galaxy S II Themes and Apps] madmack:
that's indeed the very first libwebcore.so that i've released before i had the device on my hand :) its built based on the Nexus S configurations to compile.

you've actually nailed what i've been thinking lately. I think the browser crashes on CSS or heavy HTML5 sites. Anything with heavy javascripting. I don't think its really related to flash per se, it seems it crashes on sites that use Ajax specifically.

Samsung interestingly enough commented out two features of the webkit sources they released. two things i'm not really sure what they stand for but they are XSLT and XPATH. I've tried re-enabling these features but the compilation fails (missing files from samsung.. closed source perhaps?). Googling around it seems they're features directly related to xml and some scripting optimizations.. :rolleyes:

these are the two files they chose to comment out:

#ENABLE_XPATH := true
#ENABLE_XSLT := true

it could be that they used that to debug the core before releasing it on the device because my compiled libwebcore.so matches the size of the stock one so i'm not entirely sure we're missing any "features" really.
[Galaxy S II Themes and Apps] em4all:
Interesting...

So IMO the best move right now is to keep an eye on samsungfirmwear releases hoping to catch the Arabic one since the device is scheduledto be released in June

Till then it will be a time consuming to fix the existing libwebcore

For me I will focus on the fonts and try to fix them separating the bold English from the bold Arabic so they will be user replaceable in the future

But if you keep trying now and you get it right I will kiss you and I will have your babies :)
[Galaxy S II Themes and Apps] madmack:
lol, ok.. deal !

if you say the first libwebcore.so never (or almost never) crashed on english sites... then the problem could be very well be the fonts. lemme know about your findings.
[Galaxy S II Themes and Apps] medo159:
hey Madmack, is there any chance deodexing the new Firmware (PDA: I9100XWKE1, PHONE: I9100XXKDJ, CSC: I900XEUKD1)

It just appeared in Kies!

It's the Arabization which makes me keep the KDD Firmware, I'm quite interested about the new FW, some users reported it has resolved the low volume issue on Headphones.
[Galaxy S II Themes and Apps] tamarian:
Madmack,

I'm getting a wide white arrow on some of the settings menus, and the only changes I've done to framwork is Arabization. Not a serious thing, but annoying. Here's a screenshot attached.
[Galaxy S II Themes and Apps] madmack:
and now KE2 is released. I say we wait a bit before we give new arabization files. You can always do it the "advanced" way obviously.

wow ! that looks funny and scary because i can't explain it. :eek:
[Galaxy S II Themes and Apps] em4all:
i dont know why you see what you see but i have a philosophical explanation :)

i think you deleted and/or altered a file that should be left a lone as a result the device used a different -backup- version of it which is some what is a little bit old -coding wise-

in short

flash the kdd kernel again and see if it still there flash a complete rom try "arabizing" again
[Galaxy S II Themes and Apps] madmack:
wish that was the case.

tried my webcore on a stock KDD that is odexed and not arabized (stock kernel as well after rooting) and still the same problem.
[Galaxy S II Themes and Apps] MAJED.y:
quick Q.

Does "RTL and Arabic shaping" patch files work with KE1/KE2 ?

or at least your Patch tool in your site will work ?
[Galaxy S II Themes and Apps] madmack:
well yea, its universal.
[Galaxy S II Themes and Apps] MAJED.y:
Madmack

would you help me in this.

I'm trying to Deodex KE2 just like KDD i'm facing a little problem in System/App files!.

here's a snapshot for the problem! framework is Ok accept App!

Can you delight me to what to do?

I'm using xUltiamte Script v2.2.3
[Galaxy S II Themes and Apps] madmack:
i don't use xUltimate so I can't help you there. I use a set of my own tweaked command prompt stuff.

Sorry, not a deodex expert by any means.
[Galaxy S II Themes and Apps] MAJED.y:
I see, Thank you any way :)
[Galaxy S II Themes and Apps] tamarian:
Talking about the white arrow? I actually flashed the new KE1 firmware, then applied arabization files, and it reappeared. It only shows up on 2 settings pages, so I'll ignore it for now, until a new firmware.
[Galaxy S II Themes and Apps] abuleen:
dear madmack,

if you have the time:o

could you deodex KE2 and upload it for us just like you did with KE1

it is very nice to have arabic in the latest update from samsung(i'm sure they didn't do this update that fast for nothing) it is only 3 days between the two

Best Regards,
[Galaxy S II Themes and Apps] bassamz:
Hi Madmack,

i would like to thank you for your great work on the KDD firmware and i would like to share my FIRST attempt to deodex the KE2 firmware .. i know that i'm not an expert but i gave it a shot.

This the link: h t t p : / / w w w . multiupload .c o m /06CGP6TORA (NOT TESTED)

I didn't have the time to test if it's working or not ... so to all of you how want to try it ... please BACKUP first.

Best Regards,
[Galaxy S II Themes and Apps] abuleen:
dear bassam

did you face any errors deodxing ke2?
[Galaxy S II Themes and Apps] madmack:
thanks !

as soon as someone confirms that it works I'll up it to the OP along with the rest.
[Galaxy S II Themes and Apps] bassamz:
actually i did have a problem with email, phone and mobileprovider. but i replaced them with the ones from the deodexed KDD by madmack. The deodexing was done by the xUltimate v2.2.3
[Galaxy S II Themes and Apps] bassamz:
i was gonna test it my self but i don't have that much time coz i have an exam on Sunday and i have to study. I will report back as soon as possible.
[Galaxy S II Themes and Apps] MAJED.y:
Exactly...these file can't be deodexed with xUltimate!.

Hope the replacement will work without any problem.
[Galaxy S II Themes and Apps] madmack:
i sent an email to samsung today about the compilation flags they used :D

lets hope they have mercy and give me a decent reply with all the information that we need.. (one can dream right?)
[Galaxy S II Themes and Apps] madmack:
I've just uploaded KE2 deodexed + zipaligned.

download link in the advanced section on the OP.
[Galaxy S II Themes and Apps] em4all:
my device is with a friend right now so could any body try the freezing here ?
[Galaxy S II Themes and Apps] MAJED.y:
Something not right with KE2!

can't copy the files to system/app?

the same step i did with KDD!