4th May 2011, 03:08 PM
(Last edited by madmack; 29th August 2011 at 01:46 PM .)
Senior Member -
OP
Thanks Meter
2722
Posts: 2,850
Join Date: Dec 2008
Location: Boston, MA
DONATE TO ME
[MOD] Arabic + RTL reading/writing for the SGS2
RTL - Right to left support.
I have recompiled the webkit files for our SGS2 to support arabic shaping. This thread will serve to help you folks arabize (shaping arabic texts) any deodexed rom out there (well, except MIUI based ones).
Framework.jar (and libwebcore.so):
patching framework.jar will give you arabic shaping + RTL support everywhere except the browser and gmail, while patching libwebcore.so will give you RTL + arabic shaping support in the Browser + Gmail apps.
Please go to my website for instructions and detailed howto: (Scroll down for English)
http://blog.devasque.com/?page_id=11
note1: V0.810 will attempt to give you RTL + Arabic shaping in the Browser as well. Please follow the new guidelines at the blog. (using
brightidea's work )
note2: On our Samsung Galaxy S2 device, arabic letters might come garbled at some locations. For that, you need to replace a font which is listed below.
libwebcore.so
Note: if you used v0.810 for my universal patcher, replacing libwebcore.so from this section manually may be unnecessary as the universal patcher attempts to arabize this file as well. (make sure you follow the new guidelines in the blog)
This file is responsible for shaping arabic texts in the Browser and Gmail apps. Just replace the file in /system/lib with this one and you should get arabic shaping out of the box. You'll need root to change this file.
Gingerbread
2.3.3 (CWM Flashable):
http://www.multiupload.com/E2URI45F1I
Gingerbread
2.3.4 (CWM Flashable): Files created by
brightidea . Thank you
This does NOT work on KG1 ROMs
http://www.multiupload.com/FEMKZ90OYS
I highly recommend trying the solution by
brightidea in
this sister thread for all other devices and ROM versions.
Font
This file is required for our phone. Not using it will give you spacing issues when displaying arabic text.
Note that you can't use any arabic font on the galaxy s2. This will most definitely crash your browser+gmail app. Use only stock samsung fonts or this one (my own
):
Place the file in /system/fonts/ and reboot.
http://www.multiupload.com/3XRONTS8BM
update: some screenies
The Following 69 Users Say Thank You to madmack For This Useful Post: [ Click to Expand ]
Остап (8th September 2011),
AbdullahSZ (1st October 2012),
abo.saud (6th August 2011),
Abou3ali (2nd June 2011),
AbuS3ood (21st March 2012),
adoool92 (2nd August 2011),
agdroubi (11th June 2011),
al7usaini90 (4th May 2011),
alawadhi3000 (6th May 2011),
alfaysal (13th May 2011),
Alioda (1st January 2013),
ali_hasiri (10th May 2011),
arahmank (5th May 2011),
aram59 (8th August 2011),
Azdian (8th August 2011),
baderfgt (23rd October 2011),
BA_Tech (9th August 2011),
brightidea (11th August 2011),
BSAKSOUK (17th June 2011),
cturbos (22nd May 2011),
drreality (18th August 2011),
H-KaN (7th September 2011),
harari (26th May 2011),
hardy6boy (6th May 2012),
Hassan.ha (5th May 2011),
hearts king101 (16th August 2011),
hskeik (8th May 2011),
hussam1988 (28th September 2011),
isn350 (6th May 2011),
J34 (9th October 2011),
jarrarist (19th February 2012),
kareeem (5th February 2012),
mabmed (20th August 2011),
magawa (6th May 2011),
magic wand (13th August 2011),
MAJED.y (11th May 2011),
malmushiri (20th June 2011),
mariotme (3rd August 2011),
max hd (18th February 2012),
medo159 (4th May 2011),
medoiii (21st February 2012),
MGOoO (7th May 2011),
Microsoft (7th May 2011),
MoFsaD (12th May 2011),
mohammadsp (6th October 2011),
mohcivil (11th January 2012),
Mr.wssn (27th August 2011),
myakove (14th June 2011),
oozrafa (14th May 2011),
o_afifi (8th August 2011),
PE4ce (5th May 2011),
ragiut1 (5th May 2011),
Rawat (9th May 2011),
sadlove (5th May 2011),
salamt (4th May 2011),
Salsation (18th August 2011),
sevoflurane (15th June 2011),
SirM2X (4th July 2011),
SLtAR (5th May 2011),
Smithsonian (4th October 2011),
sorr932 (14th May 2011),
soyef (4th May 2011),
taha_e (5th May 2011),
tamarian (14th May 2011),
TAMIM2007 (5th August 2011),
tghandour (13th March 2012),
volant (18th June 2012),
w000w (5th May 2011),
xman323 (12th February 2012)
4th May 2011, 03:45 PM
Senior Member
Thanks Meter
27
Posts: 114
Join Date: Dec 2006
Location: Manchester
downloading and testing, will post back the result
Thanks a lot mate, that was quick
4th May 2011, 03:48 PM
Senior Member -
OP
Thanks Meter
2722
Posts: 2,850
Join Date: Dec 2008
Location: Boston, MA
DONATE TO ME
Quote:
Originally Posted by
medo159
downloading and testing, will post back the result
Thanks a lot mate, that was quick
sure thing. lemme know how it goes.
if you're getting camera FCs with my deodexed files, can you post a logcat here ?
The Following 3 Users Say Thank You to madmack For This Useful Post: [ Click to Expand ]
4th May 2011, 04:02 PM
Senior Member
Thanks Meter
27
Posts: 114
Join Date: Dec 2006
Location: Manchester
well, I tried to replace the file but I couldn't (using Astro and Rootexplorer) they all says "the phone is not rooted".
How am I supposed to replace that "System File" !?
4th May 2011, 04:05 PM
Senior Member -
OP
Thanks Meter
2722
Posts: 2,850
Join Date: Dec 2008
Location: Boston, MA
DONATE TO ME
Quote:
Originally Posted by
medo159
well, I tried to replace the file but I couldn't (using Astro and Rootexplorer) they all says "the phone is not rooted".
How am I supposed to replace that "System File" !?
root is most definitely required to do any of that stuff. (i also mentioned it in the first post
)
there is a thread by ChainFire that tells you how to root your SGS2
The Following User Says Thank You to madmack For This Useful Post: [ Click to Expand ]
4th May 2011, 04:32 PM
Senior Member
Thanks Meter
52
Posts: 243
Join Date: Apr 2010
Location: Home
DONATE TO ME
will Android 2.4 support arabic!??
4th May 2011, 04:36 PM
Senior Member -
OP
Thanks Meter
2722
Posts: 2,850
Join Date: Dec 2008
Location: Boston, MA
DONATE TO ME
Quote:
Originally Posted by
ams84
will Android 2.4 support arabic!??
i don't know
The Following User Says Thank You to madmack For This Useful Post: [ Click to Expand ]
4th May 2011, 04:45 PM
Senior Member
Thanks Meter
44
Posts: 204
Join Date: Nov 2009
thnx for ur work
much appreciated
4th May 2011, 05:08 PM
(Last edited by medo159; 4th May 2011 at 05:22 PM .)
Senior Member
Thanks Meter
27
Posts: 114
Join Date: Dec 2006
Location: Manchester
Ok I feel a bit nooby right now :$
Just rooted my phone, Do I need to change the file's permissions?
UPDATE: YES!! I Confirm this method works for me with no problems, the stock browser reads Arabic very well,
It's very important to change the permissions like this
Thanks man, I'm working on that deodex thingy, pls provide any helpful links cause I don't have a clue about it :$
The Following 2 Users Say Thank You to medo159 For This Useful Post: [ Click to Expand ]
4th May 2011, 05:58 PM
Senior Member -
OP
Thanks Meter
2722
Posts: 2,850
Join Date: Dec 2008
Location: Boston, MA
DONATE TO ME
Quote:
Originally Posted by
medo159
Ok I feel a bit nooby right now :$
Just rooted my phone, Do I need to change the file's permissions?
UPDATE: YES!! I Confirm this method works for me with no problems, the stock browser reads Arabic very well,
It's very important to change the permissions like this
Thanks man, I'm working on that deodex thingy, pls provide any helpful links cause I don't have a clue about it :$
This is awesome !! screenshots ?
I'm glad I got it going without the phone being here with me
For deodexing (its a bit of an advanced topic now, and it seems Camera.apk is force closing, so do it at your own risk).
this is the link :
http://forum.xda-developers.com/showthread.php?t=990238
You already have the deodexed files. just follow the last section in green.
The Following User Says Thank You to madmack For This Useful Post: [ Click to Expand ]
Thread Tools
Search this Thread
Display Modes
Linear Mode
Most Thanked In This Thread
4 (quote)
yea, this is a
problem with … 4 Browser files fixed for good Update: …3 2.3.4 Browser A little update:
Emad …3 Fixed ? Fixed ?
Ok, I'm a
little too …3 Here is a rom that i've
built and …