yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Azdian:
madmack u r the man .. Heil madmack :D
[Galaxy S II Themes and Apps] xenastro:
Yaaaay! finally, I just copied the files and the font from OP and everything works perfectly.

Thank you very much :)

Could you please ask Pulser_g2 to add the fixes (including the font) to his VillainTweaks app, cheers :)
[Galaxy S II Themes and Apps] pulser_g2:
Yeah I'll add it in the next few mins for VillainROM 1.2 :)
[Galaxy S II Themes and Apps] Azdian:
waiting .. soo exiting :D
[Galaxy S II Themes and Apps] pulser_g2:
It's up now, see if it works ;)
[Galaxy S II Themes and Apps] xenastro:
Many thanks!

Can't test it right now because I already installed manually, but I will do so next time I wipe, might wipe soon to try fix battery drains like suggested in your ROM's post.
[Galaxy S II Themes and Apps] soyef:
Works perfectly

Thanks
[Galaxy S II Themes and Apps] ams84:
.zip via CWM pls!!
[Galaxy S II Themes and Apps] ameer97:
Many thanks to you bro Madmack,

We really appreciate your work.

i did as you pointed out, copied the 2 files to system/lib and the browser's now super without force close. but there is one weird thing happen. in arabic sites, there are grey vertical lines that come always right after the letter (ألف) only. do you have the same thing? and what is the solution for it, if there is one?

thanks in advance
[Galaxy S II Themes and Apps] BuHaneenHHHH:
thanks for your hard work madmack

because of you i bought the galaxy s2 without any hesitation

and now i am enjoying it

by the way:

i am using you your arabic mod on Cognition rom and it works perfectly and thanks to the new files the web browser does not force close as i tried with the kooora.com website and it was closing before i installed the new files

thanks again
[Galaxy S II Themes and Apps] ameer97:
repeated post
[Galaxy S II Themes and Apps] ams84:
work great, can you make a .zip via CWM??
[Galaxy S II Themes and Apps] madmack:
This is great news guys. Glad you're all reporting success with it ! :)

Pulser, I noticed your VillainTweaks app doesn't change the Font file correctly. Is it using the font file from my patcher ? Because that won't really work correctly (yea, I don't know what samsung did there) so you'll need to grab the one in the OP and use that instead. a couple of users came complaining about that spacing issue and that's caused by that font file.

I don't have that problem :confused: did you try changing the font as I'm suggesting above ^^.
[Galaxy S II Themes and Apps] kzakaria:
Confirmed Working 100%:):):):):):)
[Galaxy S II Themes and Apps] madmack:
Uploaded a CWM flashable file in the OP.

It'll flash the browser files and the nice looking font.
[Galaxy S II Themes and Apps] ahmedo2:
salam alukoum brother madmack thx alot i tried to do copy but i didn,t work can i just flash using cwm and is that 2files enough to use with any other western rom or we have to have ur arabic file

thx alot coz i just need arabic support R&W
[Galaxy S II Themes and Apps] ahmedo2:
thx brother madmack is this going to arabize any western rom there ?how can i flash using cwm thx in advance i mean is the file already up ploaded somewhere

best regard nice work
[Galaxy S II Themes and Apps] ameer97:
i'm on rom madmack 1.4.

the browser is perfect now

but still the spacing after (alef) letter is still there

though i changed the font as you posted
[Galaxy S II Themes and Apps] madmack:
its in the OP. just put it in your SDCARD somewhere and flash it in CWM.

It won't give you read/write access everywhere. These browser files are only there to shape letters in the Browser/Gmail and all apps that depend on the webkit library. If you want to get RTL and arabic support everywhere you'll need to patch the framework.jar file. Instructions are also in the OP. And yes, if you got these two things working, they will give you arabic support on any international ROM.

hmmmm.. any one else have this problem ?
[Galaxy S II Themes and Apps] AlWakRa:
I don't have any problem with (Alef). Although, I am using the original JPKF1 rom with Samsung fonts.

Can you mention the sites that you face the problem to check them from my device ??
[Galaxy S II Themes and Apps] bu2askoor:
OK,

I downloaded thru vrtweaks for villianrom 1.2. everything works fine. The only issue was spacing. So I had to add the font in the op and now works great.

Thanks to all.
[Galaxy S II Themes and Apps] ameer97:
Websites like aljazeera . Net

I guess its due to the font

I use the one that comes with madmack rom. I i love it

btw, what is it called?
[Galaxy S II Themes and Apps] madmack:
its a modified cyanogenmod7 font. I merged the Samsung font with it. :)
[Galaxy S II Themes and Apps] AlWakRa:
The photo is from aljazeera :) Maybe you can check browser setting and changing the encoding to Auto Detect will solve the problem :confused: Maybe.

& I think the font in madmack rom is called aljazeera also ;)

Madmack, I forgot to thank you here, My SGSII wouldn't survive without you rom. You deserve millions thanks. Actually, I bought it after I saw this thread :)
[Galaxy S II Themes and Apps] madmack:
You're very welcome :) Hey, I do this work for myself as well and eventually share it because I know how terrible the situation is in regards to Arabic shaping in Android ROMs.

The font I use is not really aljazeera. I don't like the way Aljazeera font shape the ه and ة when its at the end of the word. Its also flatter and wider. My choice is always the CM7 font. Size is really nice, not elongated too much and just over all really pleasant and quite standard.
[Galaxy S II Themes and Apps] golaner:
Thanks alot madmack, Thema browser and arabic in general is very good now after the last update, i haven't any fc since Update, i only get a weard message regarding bluetooth fc but not sure if it has anything to do with your files, i have deleted some samsung apps. Keep the good work
[Galaxy S II Themes and Apps] madmack:
Yea, everything seems stable now.

I'm thinking of updating the madmack rom as well. I'm not sure whether I should deodex KE8 and put that in (we have the full rom/kernel/modem combo) because I heard good stuff about its battery life, or whether I should use the leaked arabic KF1 Odexed rom (battery untested yet, arabic menu everywhere, no alignment to right, and we don't have the original kernel/modem).

we suddenly have a lot of choices .. what a dilemma.. lol
[Galaxy S II Themes and Apps] Dark_Lord0122:
thanks :P arabic is working perfectly to me XD thanks again :P
[Galaxy S II Themes and Apps] Azdian:
i think Arabized KE8 would be better .. as we know KF1 is still beta and there are complains about the overheating and wrong translation of some apps

or use Villain 1.2 already deodexed rom just add the arabic supporting files
[Galaxy S II Themes and Apps] madmack:
I'm noticing some quick drainage on this beta kf1 rom as well. might do a deodexed ke8 after all :)
[Galaxy S II Themes and Apps] soyef:
the issue with the line after الف
[Galaxy S II Themes and Apps] the guitarist:
i suggest using the KE8 Rom as a base and put the new arabic libraries extracted from the new leaked arabic KF1 Rom .. i think that way we'll have better performance and battery life due to the KE8 and a better browser due to the KF1 arabic libraries .. correct me if what i'm saying isn't possible :)

and Thanks a lot for your hard and great work madmack
[Galaxy S II Themes and Apps] madmack:
Thanks, I'll have a look at why is that. Samsung had to do their own implementation in regards to glyphs and arab fonts. !! i'll try to merge the font they provide in the arabic rom with my own.

Update:

Fixed !

Took me 2 hours to do it given my pro font editing skills in linux but the job is done. lol

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

I'll update the OP with this as well
[Galaxy S II Themes and Apps] madmack:
Thank you

Thanks to all of you who have donated to me. Your continuing support is much appreciated :o
[Galaxy S II Themes and Apps] the guitarist:
can't wait for your next ROM .. :)
[Galaxy S II Themes and Apps] madmack:
I'm still reluctant honestly because I'm using this odexed leaked arabic rom and I'm liking it.

battery drainage is at acceptable levels even though I'm using the European kf1 modem and kernel.

I don't know if a ke8 deodexed rom is worth it at this point.
[Galaxy S II Themes and Apps] pulser_g2:
Vr 1.2 is essentially that, using your tweak, if it helps. I believe I just need to update the font available with the one in your op, but it's still using your tweaks rather than a samsung arabic base.

Europe Kf1 + ke7 radio seems to work well...

or did I miss something?
[Galaxy S II Themes and Apps] madmack:
oops, I had a small typo in there. I meant a deodexed ke8 is not worth it.

I'm thinking of releasing an odexed arabic rom based on what has been officially leaked by Samsung Middle East. They get the speed advantage of an odexed rom plus official arabic support across the device everywhere including the menues.
[Galaxy S II Themes and Apps] pulser_g2:
Ahhh...makes sense :) was thinking you were about to go spend ages deodexing a rom that was already done... :)

The official one seems a good idea. I always find deodexed faster after first boot, if png optimised and zip aligned... But I guess it just depends on the rom. :)
[Galaxy S II Themes and Apps] madmack:
Yea, I felt that way too until my brother showed me his odexed rom's browser. lol.

We made a simple test: scroll up and down while flash is playing some video. In deodexed ROMs the flash rect bounces out of place while in odexed ROMs it stays put. I've been turned off about deodexed stuff ever since. Wish i never saw that, lol.
[Galaxy S II Themes and Apps] pulser_g2:
Were you using the old deodexed browser? Newer ones seem to have issues I'm trying to work out, relating to performance... :)
[Galaxy S II Themes and Apps] madmack:
Yea, the old one. Forget it with the new deodexed ones, the lag is horrendous. I had a look at the smali files as well and it seems they added new functions that "ignore3DLayerBlahBlah". Tried to make the branches avoid them but was still facing the same old lag problem. I just gave up on that one.
[Galaxy S II Themes and Apps] pulser_g2:
OK. I was planning to look at the new ones. At worst case, I can try and backport all the other fixes for languages etc... :D
[Galaxy S II Themes and Apps] madmack:
Good luck man ! Will be watching and anticipating any updates in that regard :)

In other news: madmack's 1.5 is out (or ok, 7 minutes til upload completion).

http://xdaforums.com/showthread.php?p=13875310

Check it out guys and lemme know. I tried to keep it simple and functional.
[Galaxy S II Themes and Apps] ams84:
madmack pls can u make CWM .zip for villian ROM 1.3??

becuze i have installed SGS2-RTL-Browser-CWM.zip on villian ROM 1.3 and arabic words still split
[Galaxy S II Themes and Apps] madmack:
This file fixes shaping in the browser only.

Ask pulser to make a new version of the patch that you can just install via VillainTweaks (I'm actually pretty sure that he'll work on that).
[Galaxy S II Themes and Apps] ams84:
browser seems laggy, any idea to solve??

villianROM 1.4
[Galaxy S II Themes and Apps] iznee:
I think browser laggy is an issue of VR 1.4 .. and there is a fix..plse read the villain rom thread
[Galaxy S II Themes and Apps] ams84:
thank you

i downloaded dolphin browser it seems better non lag and speedy:)
[Galaxy S II Themes and Apps] Dark_Lord0122:
i cant find the arabic mod in VR tweaks. any tips ?
[Galaxy S II Themes and Apps] madmack:
That's a VillainROM problem. Check it out with pulser or read his thread.

I don't know. I don't really write code for VillainROM or any other (except my own). I only provide tools for devs to use so you'll need to ask in his/her thread.
[Galaxy S II Themes and Apps] ransagy:
Any idea how are the changes compared to iAndroid.co.il's solution?

They made a patcher for the same files to fix Hebrew/RTL issues before.
[Galaxy S II Themes and Apps] madmack:
I know that iAndroid's solution didn't include any arabic reshaping. At least in the early 0.9 releases. But otherwise, some of the devs that worked on it are actually part of the CM7 RTL team which my project ports.

What I did was port the Arabic shaping JNI libraries as well and keep my patch up to date with CM7. I'm not really sure what the guys at iAndroid are doing so far. At the moment, my patcher only uses their framework to patch framework.jar and exchange the contents. Otherwise, the files that it exchanges are all compiled by me from scratch.

LibPatcher (patches libandroid_runtime.so) and the LayoutFix files are also imported from their great work :)

I guess if you're happy with their solution for Hebrew and you don't need any sort of shaping support, then stick with iAndroid's solution as I know that they also fix the browser files by hex editing them (something we unfortunately can't do to support arabic) which makes them compatible 100% without the need of recompilation.
[Galaxy S II Themes and Apps] ransagy:
Alright, I understand. Thanks for your hard work, Either way :)
[Galaxy S II Themes and Apps] BuHaneenHHHH:
hi madmack

i just want to ask you if you could share the tools that you used to make the arabic files and if you could share the tools that you used to make your rom

i want to start making my own rom because i live to learn

thanks in advance
[Galaxy S II Themes and Apps] madmack:
all the tools and all my methods are available. you just need to do a lot of research :)

my online blog has info on what code I write to make things happen. if you've programmed before, used github and know your way around, everything is there.
[Galaxy S II Themes and Apps] yousif666:
Now if i apply the arabic on the phone the browser will work and also the gmail and sms right???

now i still didn't do it on the new rom i installed its litening 1.5 and in firefox it read arabic ok, but if i apply the fix all will get fixed and firefox will get non shaped. so is there a solution for it??

Thank you.
[Galaxy S II Themes and Apps] madmack:
oh i c.. you really love firefox :D

After applying my patch, remove the file "DroidSansArabic.ttf" from the flashable zip file and the font won't be changed. You'll have to do that in both the browser cwm file and the patch generated file.
[Galaxy S II Themes and Apps] yousif666:
Yup firefox is the best :D

I will try and report back, Thanks alot.
[Galaxy S II Themes and Apps] yousif666:
Thanks alot it worked, but i see default browser is not fixed and that is because i deleted the font?

if there is a way also to fix it without harming firefox ok but if i have to choose between them then i prefer to stay with firefox.

because what i did is i extracted the generated zip file and deleted the font and then re-zipped it and flashed it with cwm.
[Galaxy S II Themes and Apps] madmack:
you'll need the libwebcore fix from the OP. remember to delete the font file as well and flash it in cwm.
[Galaxy S II Themes and Apps] yousif666:
Thanks alot.

Now everything is Ok :D

i have a Q, is it possible to add a arabic font to change for example the original arabic font??

or its not possible? for example you added aljazeera font so i thought that it is possible to bring other arabic font and install it will it be possible?
[Galaxy S II Themes and Apps] madmack:
usually with Android that's possible. On our SGS2 however, you can only use Samsung fonts. I've never encountered anything like that but that's what we have.

either use the font in the OP, search for Samsung fonts, or deal with weird garbled text when displaying arabic in menus, texts.. etc
[Galaxy S II Themes and Apps] BuHaneenHHHH:
i have a problem madmack

in a arabic message

if the numbers becomes at the begining of the next line they are mirrored

for example

if i receive 1234 it will appear as 4321

see the attached picture

do you have solution

i tried many fonts but it never worked

it became ok when a word becomes at th begining of the line only

hope to find a solution from you
[Galaxy S II Themes and Apps] madmack:
yes, its a known problem from the source of the port (cm7) which I use in the patch.

I think they already fixed this problem but I'm waiting for other pending updates to finalize before I release an updated patch with the latest from team cm7
[Galaxy S II Themes and Apps] cturbos:
mad

who are THEY already fixed this problem in your post above?

thanks
[Galaxy S II Themes and Apps] iznee:
Hi madmack,

I am using VR1.4 with your arabic fix on VR tweaks..and i also read in your arabic rom thread that there are some issues with the arabic fix causing the flash content to go all over the places..

My question is.. this issue with the flash is present in the arabic fix or its in the odex rom V 1.5?

I am still trying to get the best arabic support.. so still deciding between the fix or the complete rom..

I only need the arabic for websites as i hate to see it broken and reversed as well as for text messages that i recieve.

Thanks for your feedback
[Galaxy S II Themes and Apps] medo159:
Wow perfect the camera works great after that last update.

I have noticed 2 other apks force closing

Calculator.apk And samsung's keyboard

Will post the logcat later today
[Galaxy S II Themes and Apps] madmack:
no need. i know the problem.

i'm going to have to redeodex the whole thing. the SGS2 is not so happy about the compression levels i've chosen. anything with a sound file will force close.
[Galaxy S II Themes and Apps] medo159:
Not sure what u mean, I have no problems with sounds, I have been listening to Music and tried to send and receive Audio in Whatsapp, all works perfect!

Here's the logcat anyway :)
[Galaxy S II Themes and Apps] madmack:
nah, these are not the sounds that are having problems. the sounds that are prepacked in the deodexed files is having problems. like the camera click sounds .. etc.. that was causing the problem with the camera.apk file, and i'm sure related resources are causing the error in calculator and such.

music is not deodexed, no problem and so is your whatsapp app.

i don't really have much time to run the deodexer now, but i'll post it up once i get a chance.
[Galaxy S II Themes and Apps] hamatto:
medo159

did you have any problems with voice calls ?
[Galaxy S II Themes and Apps] soyef:
After deodexing?

I did but only realised not long ago, dont worry though, OP said hes gonna reupload all the deodexed files with less compression which should fix any issues
[Galaxy S II Themes and Apps] medo159:
No, not at all !
[Galaxy S II Themes and Apps] madmack:
i redeodexed them with no compression at all. files are generally bigger than the original by about 12 MBs, so if it doesn't fit into your /system partition, just delete some stuff that you don't use in /system/app

I'm really busy to do this thing properly, so I hope this will do for you guys in the meanwhile. at least things should work now.

http://www.multiupload.com/DIGIQD7VIH
[Galaxy S II Themes and Apps] abuleen:
Thank you madmack

it is working very good so far with the new files.

you need to remove *.odex files 1st to get some space before coping the new ones.

and afterward I removed swape.apk (32 MB) to get more space

thank you again, it is good to have full Arabic (writing and reading) from the start.

If i have any time I’ll do a combination of your compressed and uncompressed files to get some space.

best regards
[Galaxy S II Themes and Apps] madmack:
great ! thanks for testing.

there is a proper way to do this deodexing business (compressing only parts of the apk file, and not the entire file) but like i said i haven't invested enough time and research to get that done. there is probably a program out there somewhere that does that in a nice and neat way.

my SGS2 got delayed at US customs (inspection), so it seems i won't be getting the device until possibly late next week. I'm gonna step back from this whole SGS2 ordeal for a while until I get my device :)
[Galaxy S II Themes and Apps] abuleen:
I tried to do the deodexing my self, but I got some errors!

and I'm new to the whole deodexing thing.

1- you will love the device (but it has some problems spicially in the processor area, and I knew it when samsung changed the speed after production!) setcpu will set you free.

2- I think samsung will release an update very soon, so please when they do give us the deodexing treatment

best regards,
[Galaxy S II Themes and Apps] hamatto:
madmack

I LOVE you :D,,,

every thing now is work and OK .:):):)
[Galaxy S II Themes and Apps] madmack:
lol, glad these latest files are working for you guys. I've reworked the files of Deodexer_2.3 to make it do what i want: compress only classes, and not resources. This should give us reasonably smaller framework/app folders and still preserve the resources, so hopefully no more force closes. I've tested it on my SGS (yea i know, old school now huh ?) and it worked.

I'll upload a new deodexed KDD that has this new compressed-the-right-way files when i get a moment. its a bummer that my phone got delayed.. but what can one do :rolleyes: just be hopeful and wait.
[Galaxy S II Themes and Apps] Oweida:
thanx Madmack ,,

Just a silly question, if my rom is not deodexed, is o.k. just to copy the files you uploaded and put them in the related files and removing the odexed files ??!
[Galaxy S II Themes and Apps] xfox:
exciting news

keep it up
[Galaxy S II Themes and Apps] arahmank:
Hey madmack, thanks for your work on this. I still didn't try this out mainly because of an updated FW released recently, and today another one surfaced on samsungfirmware.com dating may 3rd. Can you deodex the latest FW so we can use the Arabic mod on the newest FW? Thx again
[Galaxy S II Themes and Apps] madmack:
theoretically it should work although I haven't tried it myself. I usually use cwm to do my work, but if cwm is not available I use shell prompts (through adb) to "stop" and then remove the directories and repopulate them with the deodexed files.

It could work though. I hope you don't get any reboots while you're in the process of deleting/adding.

@arahmank, which firmware ? are we talking about I9100XEKE1 ?
[Galaxy S II Themes and Apps] arahmank:
Yes, XEKE1
[Galaxy S II Themes and Apps] Oweida:
O.k. What about only replacing the framework.jar and there are two files with the same name ?!!
[Galaxy S II Themes and Apps] madmack:
that won't work. that's the difference between odexed and deodexed roms. odexed have *.odex files and deodexed have only *.apk and *.jar files. the arabic patch only works with deodexed ROMs.
[Galaxy S II Themes and Apps] madmack:
CyanogenMod 7 RTL team. You can see my blog for more info on that stuff if you're interested into the nitty gritty.

man, no one said arabic files mess with flash in the browser :rolleyes:

any deodexed ROMs puts the flash out of its context when scrolling. Villain's, Litening, and Cognition are deodexed. but its ok, not a big deal i mean.

my 1.5 rom is odexed so u shouldn't see that.. but like i said, its no biggie and it really has nothing to do with arabic files. my patch here will not change anything in the roms you apply them to. ! you only add arabic support without losing anything else. guaranteed ;)
[Galaxy S II Themes and Apps] iznee:
Thanks for the feedback...i guess i will keep VR 1.4 for the moment..cause i am having great battery life..tried to install some black theme from noonski but somehow it is not compatible with the arabic fix..but no biggie..arabic is more important to me at the moment...and one of the deciding factor that i got SGS2 instead of HTC sensation is your arabic fix.

Cheers and than you so much.
[Galaxy S II Themes and Apps] madmack:
Sure thing.

You can always enabling shaping and RTL on any theme as well by running my patcher manually.

Simply put the theme on your phone, then follow the steps on my blog to arabize the new framework.jar. This should keep your theme and give you arabic shaping support.
[Galaxy S II Themes and Apps] iznee:
Madmack,

You simply are a genius..

Will start reading your blog and try to get it done when i get home..

Thankss..