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
- 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
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