[MOD] Arabic shaping for any deodexed rom
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
Steps to apply the patch:
- 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.
Moved to official blog. Please check the steps there
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
Taken from the great work of brightidea
scroll all the way to the bottom
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.
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://forum.xda-developers.com/show....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