[MOD] Arabic shaping for any deodexed rom

Search This thread

goodwill4u1

Senior Member
Oct 5, 2010
561
22
Hi madmack
will this CMW works on a Ultibread V 1.4 Gingrbread custom rom?
thank you

or maybe patching it manually as described and not via CWM
 

wanam

Recognized Developer / Inactive RC
Jan 26, 2011
6,209
30,012
Toulouse
wanam.net
OnePlus 7T
Sony Xperia 5 III
I have i strange problem after i have patched Darky 9.3 with your files, when i press "recovery" menu to reboot and go to recovery mode, it stucks in that menu a few seconds, and reboot without going to recovery mode.

Have this issue any relation with the modded "framework.jar"?
 

goodwill4u1

Senior Member
Oct 5, 2010
561
22
I have i strange problem after i have patched Darky 9.3 with your files, when i press "recovery" menu to reboot and go to recovery mode, it stucks in that menu a few seconds, and reboot without going to recovery mode.

Have this issue any relation with the modded "framework.jar"?

+1
i have exactly the same issue, when i press power button then choosing Reboot or Recovery or Downloade mode, will vibrate phone 3 times and then freeze
 

madmack

Senior Member
+1
i have exactly the same issue, when i press power button then choosing Reboot or Recovery or Downloade mode, will vibrate phone 3 times and then freeze

I can't replicate this issue here. seems to be a problem on your device ? try to factory reset after patching your own framework.jar manually with my patch.

Hi madmack
will this CMW works on a Ultibread V 1.4 Gingrbread custom rom?
thank you

or maybe patching it manually as described and not via CWM

I would say patch it manually just to be on the safe side. ur free to try out js5 cement file too :)
 

goodwill4u1

Senior Member
Oct 5, 2010
561
22
I can't replicate this issue here. seems to be a problem on your device ? try to factory reset after patching your own framework.jar manually with my patch.

Thank madmack for your reply,
i was trying to patch it manually, i had the patched framework.jar, but i'm not able to replace it with the actual one, always saying when pasting the patched one that there are no free space avaiable.
i'm using Root explorer to replace it.
thank you for your help
 
Last edited:

madmack

Senior Member
Thank madmack for your reply,
i was trying to patch it manually, i had the patched framework.jar, but i'm not able to replace it with the actual one, always saying when pasting the patched one that there are no free space avaiable.
i'm using Root explorer to replace it.
thank you for your help

delete some stuff from /system/app that you don't use.
 

demon_da

Senior Member
Jun 4, 2009
62
3
hi, im using darky v9.3 with your arabic support patch, i wonder is it possible to change the font of arabic strings? it would be awesome for persian users with special letters.

tnx in advance
 

imemish

Member
Sep 11, 2010
23
1
Hi madmack,

Using the CWM flashable file (CM7-arabic-patch-20110309b.zip) on the latest CM7 nightly build (update-cm-7-03112011-NIGHTLY-GalaxyS-signed.zip) is giving repetitive force close on the status bar, and the status bar is not showing any more. Any idea why ? Thanks.
 

madmack

Senior Member
hi, im using darky v9.3 with your arabic support patch, i wonder is it possible to change the font of arabic strings? it would be awesome for persian users with special letters.

tnx in advance

I believe I included aljazeera fonts, just put them in your /system/fonts folder.

Hi madmack,

Using the CWM flashable file (CM7-arabic-patch-20110309b.zip) on the latest CM7 nightly build (update-cm-7-03112011-NIGHTLY-GalaxyS-signed.zip) is giving repetitive force close on the status bar, and the status bar is not showing any more. Any idea why ? Thanks.

factory reset !

I should probably just make the cwm file do a dalvik format to avoid that problem.
 

imemish

Member
Sep 11, 2010
23
1
I just tried the quick factory reset after installing the patch, but when i restart it's still the same error:

The application Status Bar (process com.android.systemui) has stopped unexpectedly ...
 

imemish

Member
Sep 11, 2010
23
1
Just a little update on the CM7 issue. It seems framework.jar is the one causing trouble. I just updated libwebcore.so which seems to provide everything i need : Arabic displayed correctly (reading and writing) in apps, gmail, browser, ....
 

trad2kx

Member
Nov 12, 2010
28
1
After i have flashed it and rebooted it gave me multiple FCs. Had to wipe everything and reflash..
 

jaikat

Senior Member
Nov 26, 2009
428
32
Problem

i'v tried the patch for several 2.2 roms for the HTC Hero, i don't know what the problem is, i keep getting this error while patching(had to do a print screen to know what the errer reads)

Zip Warning: Local entry CRC does not match CD: Classes.dex (140 bytes security)


i tried replacing the patched file(framework.jar) anyway and the phone wouldn't boot...

the roms i'v tried are all deodexed, and are also = > 2.2(froyo)

can you tell me whats wrong here?
 

goodwill4u1

Senior Member
Oct 5, 2010
561
22
Just a little update on the CM7 issue. It seems framework.jar is the one causing trouble. I just updated libwebcore.so which seems to provide everything i need : Arabic displayed correctly (reading and writing) in apps, gmail, browser, ....

Hi imemish,
i'm on Darky 9.3 and just updated libwebcore.so
wll, i can indeed read arabic in any browser, BUT in messages letters are notconnected, even in contacts.
Do you have the same issue with CM7?
thanks
 

z1majed

Member
Feb 13, 2009
14
0
Jubail
madmack I can't thank you enough for the well done work...highly appreciated man...Thanks to Darky too for his outstanding work and support to include Arabic lang in his roms.

you guys rock
 

imemish

Member
Sep 11, 2010
23
1
Can you give me a direct link to download your CM7 rom?
thx

do you have any problems or bugs with CM7?
on what stock rom is it based?
thank you
CM7 Directions in English:
http://forum.cyanogenmod.com/topic/...d-7-for-samsung-galaxy-s-phones-experimental/
http://xdaforums.com/showthread.php?t=940095

CM7 directions in Arabic:
http://www.ce4arab.com/vb7/showthread.php?t=291762

The rom still has bugs (which you can find in the links above), and i don't advice it to the normal user. That being said, I personally use it for my every day use and I'm very satisfied with it.

For best experience, you should base it on the JM2 rom, see here:
http://xdaforums.com/showpost.php?p=11806604&postcount=3080

Regards
 
  • Like
Reactions: goodwill4u1

goodwill4u1

Senior Member
Oct 5, 2010
561
22
CM7 Directions in English:
http://forum.cyanogenmod.com/topic/...d-7-for-samsung-galaxy-s-phones-experimental/
http://xdaforums.com/showthread.php?t=940095

CM7 directions in Arabic:
http://www.ce4arab.com/vb7/showthread.php?t=291762

The rom still has bugs (which you can find in the links above), and i don't advice it to the normal user. That being said, I personally use it for my every day use and I'm very satisfied with it.

For best experience, you should base it on the JM2 rom, see here:
http://xdaforums.com/showpost.php?p=11806604&postcount=3080

Regards

thank you for your help
cheers
 

Top Liked Posts

  • There are no posts matching your filters.
  • 61
    Note to all users: If you have a problem with this patch, this is the place to post and ask. I will not answer Private Messages related to this patch because the questions are replicated and should all be addressed here.

    To devs and ROM cooks. PLEASE do reference this thread and my work if you intend on providing the result CWM file in your thread.

    To get the correct arabic shaping letters in Android. We need to patch two files, namely framework.jar and libwebcore.so
    framework.jar takes care of rendering text in all android menus and input widgets. libwebcore.so takes care of shaping text correctly for the web browser and Gmail.

    I've made this patch a while ago but thought I'd post my work here for those of you who aren't aware of it.

    framework.jar & libwebcore.so


    Requirements:
    • Your device needs to be rooted.
    • Your Android version is >= 2.1
    • Your ROM needs to be deodexed. To find out if your installed ROM is deodexed, navigate to /system/framework on your phone. If you see a file called framework.odex then this patch will NOT work for you. So yes, this means that any of these new ROMs or Themes can get arabic text rendered correctly :) I'm currently using Darky's 9.3 with R64 Blue theme and everything works beautifully.
    • Java must be installed.

    Steps to apply the patch:

    Moved to official blog. Please check the steps there
    http://blog.devasque.com/?page_id=11

    Note: This will not shape the letters in Gmail and the Browser correctly. If you want this, you’ll need to get the appropriate libwebcore.so for your system. Each Android device and ROM will need a separate one. v0.810 of my patcher does browser and Gmail fix as well now :D Taken from the great work of brightidea


    Downloads
    http://blog.devasque.com/?page_id=11
    scroll all the way to the bottom


    libwebcore.so


    This should get arabic text rendered correctly for the browser, gmail and any app that uses this library. (You may not need to flash these manually if you are using my v0.810 universal patcher from above).

    My universal patcher has integrated brightidea's work so this section is obsolete.

    References:
    Y6b – http://github.com/y6b
    Dudyk – http://github.com/dudyk
    The patching tool – http://iandroid.co.il/forum/topic5657.html
    Brightidea's webkit patcher - http://xdaforums.com/showthread.php?t=1218960

    I've also put up a website with the latest changes and source code. So if you're interested, http://blog.devasque.com
    12
    Hey madmack,

    A lot of people need an Arabic Patch based on XWJS5.

    You can take my framework.jar and the needed libwebcore.so (if needed to update).

    If you want to do it, feel free to contact me and update this topic here - I think a lot of people will appreciate it.

    Best regards,
    Joël
    4
    Hey madmack,

    A lot of people need an Arabic Patch based on XWJS5.

    You can take my framework.jar and the needed libwebcore.so (if needed to update).

    If you want to do it, feel free to contact it and update this topic here - I think a lot of people will appreciate it.

    Best regards,
    Joël

    Good idea. I'll get a deodexed JS5 and patch it up. create a flashable CWM zip file.

    Now, lemme go and see how I can make my first update.zip file :D

    this also correct Hebrew shaping? (this language require RTL to be displayed correct)

    Hebrew has shaping ? this is news to me :rolleyes:
    I believe it should correct the alignment and RTL though. must give it a try for yourself :)
    If you look at my references though, the original patcher was for Hebrew. So I believe using the original patch would fit your case better :)
    4
    good i am happy for you ,enjoy::)
    now waiting for libwebcore.so from Mr madmack :D

    Mr madmack is waiting for Mr Samsung :D
    4
    well, brightidea fixed it for you guys :)

    http://www.multiupload.com/V3Z0E05IM0

    just put that file in /system/lib and reboot. (or better, replace libandroid_runtime.so in the flashable_cwm.zip with the one above) and then flash it in cwm.

    attachment.php


    you guys will need to wait for my universal patcher to work with JVT. I'm afraid you'll just need to keep replacing that one file everytime because LibPatcher.exe has a little bug. I'm keeping my fingers crossed that brightidea releases his new combined arabic/hebrew patcher for libwebcore.so and libandroid_runtime.so (given that Eran, the author of LibPatcher.exe has kindly shared his sources) which should hopefully fix this problem all together then you can start flashing using my universal patcher once again :)