I have made a patch that should work on deodexed Android 2.2 and 2.2.1 devices to support shaping arabic in framework.jar
Please use the links to the right for more details on how to apply them.
Most available patches are either not open sourced or are device specific. I attempt to make a global solution to our problem by providing a patching tool that should apply to any ROM by replacing the specific patched files. This should hopefully not break device specific implementations such as TouchWiz from Samsung, Sense UI from HTC or Motoblur from Motorola.
I have been following work for Y6b and dudyk over at github. Unfortunately both of their work was made for Cyanogenmod and not for AOSP. They also do change code in the JNI implementation which further makes this harder to port to several devices. I changed their code slightly to not require these modified JNI implementations and to have an independent framework.jar that will be easy to port.
Most of my code on github is composed of y6b’s and dudyk’s (see source code page for details). Namely I used y6b’s implementation for the shaping by importing the ICU4J library, and dudyk’s RTL alignments.
Again, all details should be on the two pages linked on the right panel.