[MOD] Android Browser Arabic Shaping Patch and Hebrew RTL Fix v3.93B (14, May 2013)

Search This thread

Tricky103

Inactive Recognized Developer
Aug 4, 2010
3,409
709
Exeter, UK
www.appliancecare.tv
hi brightidea,
I've done your way, but there produce libwebcore.so.bak instead of libwebcore.so
can i use this and just delete .bak?

Thank you.

Did you go to command prompt and run the program? On windows 7 it asks for permission. Please say what rom your using then maybe someone can upload the files for you


Sent from my GT-I9100 using Tapatalk
 

bobster0001

Senior Member
Oct 22, 2007
130
4
I have arabic in browser and and in email, but I lost in documents to go. I had arabic for it before. You guys know the reason?

Sent from my PG41200 using Tapatalk
 

brightidea

Senior Member
May 8, 2011
226
224
43
Heart of Arabian Peninsula
Still don't work with Twitter (the app)
GSII DarkyRom2 KG6 Base3.2

attachment.php

To enable arabic in the Twitter APP you need to apply madmack's patch to framework.jar check http://xdaforums.com/showthread.php?t=1063205

My patch only enables arabic shaping in the browser - try twitter in the browser

- Brightidea
 

brightidea

Senior Member
May 8, 2011
226
224
43
Heart of Arabian Peninsula
Yes, the browser is Full Arabic, Opera too
I try the other patch, before applying your patch, then I apply your patch => Twitter app still not arabic
I have reinstall the DarkyRom2 KG6
Then I have apply you patch at first the the other, but twitter still don't write arabic :mad:

Twitter APP is not affected by my patch - check Madmack's patch. I assure you I have DarkyROM KG6 and twitter displays arabic perfectly.

- Brightidea.
 

bobster0001

Senior Member
Oct 22, 2007
130
4
My patch should not affect anything but the browser - If you believe it caused issues with Documents To Go then revert to the original libwebcore.so to make sure

- Brightidea.

Yeah you are right. It is actually the framework. Do you know what the problem is? Before the patch, documents to go had arabic for some reason and everything else didn't. But after the framework patch, document to go lost its arabic and everything else have arabic

Sent from my GT-I9100 using Tapatalk
 
Last edited:

brightidea

Senior Member
May 8, 2011
226
224
43
Heart of Arabian Peninsula
Yeah you are right. It is actually the framework. Do you know what the problem is? Before the patch, documents to go had arabic for some reason and everything else didn't. But after the framework patch, document to go lost its arabic and everything else have arabic

Sent from my GT-I9100 using Tapatalk

Maybe the problem is in the font? can you try to return back the original font? or use this one instead. http://www.multiupload.com/SC0DGDOW65
just place the font file in /system/fonts and reboot your device

- Brightidea.
 

brightidea

Senior Member
May 8, 2011
226
224
43
Heart of Arabian Peninsula

brightidea

Senior Member
May 8, 2011
226
224
43
Heart of Arabian Peninsula

jaikat

Senior Member
Nov 26, 2009
428
32
this is just great, great work brightidea, i hope someone tests this patch on a htc sense rom..
 

chiekh

Senior Member
Apr 19, 2005
304
3
Tested on MIUI1.8.12 HTC Bravo works but the text is left align in browser in ar.wikipedia.org is't normal? thanks
 

ess2k

Senior Member
Apr 5, 2010
109
5
Salaam Sidi Brightidea

Is there any way you could help displaying/rendering urdu letters correctly please???

many of the do but certain letters dont.

thanks
 

Top Liked Posts

  • There are no posts matching your filters.
  • 76
    Announcing my 3.93Beta release of the Android Browser Arabic Shaping Patch and Hebrew RTL Fix


    *News flash:* I have published this patch in the android market it can be downloaded by searching for: pname:com.brightidea.android.arabic_browser_patch or clicking here http://market.android.com/details?id=com.brightidea.android.arabic_browser_patch
    QR
    q12b1


    More devices are supported! - if your device couldn't be patched previously you're encouraged to try out the new version now - it may just work!

    Background:
    libwebcore.so is the program responsible for rendering webpages in stock browser and gmail application. This patch will enable arabic language support (shaping) in libwebcore.so.
    It will also correct issues related to rendering Hebrew language (RTL Fix); It employs a patch developed by Erasmux, Mena and Classicaldude from www.iandroid.co.il for that. A link to their thread http://iandroid.co.il/forum/topic5657.html

    I would very much appreciate it if you guys send any comments or feedback about this tool here. I would like to know about your experiences and any suggestions.

    *this work is still under development but it seems most users are happy with the results so far*
    I think we're closing on a final release as I am no longer receiving requests to patch new devices or complaints of instability about the the current version (3.93B)

    So far tested with:
    LG L3
    Samsung Galaxy S II (STOCK 2.3.4), VillianROM 2.4.2, MIUI1.8.12b51
    Nexus S (STOCK 2.3.4)
    Samsung Galaxy S I (STOCK 2.3.4)
    HTC EVO View 4G (STOCK 2.3.4)
    HTC EVO 3D (STOCK 2.3.3) & 2.3.4
    HTC Droid Incredible (STOCK 2.3.4)
    HTC Salsa
    Samsung Mini & Samsung Ace
    Desire HD
    Notion Ink Adam Tab
    LG Optimus 2X (MIUI)
    Archos & HTC Vision G2
    HTC Sensation
    Flytouch Superpad2
    HTC Wildfire JokerDroid
    huawei u8800 Ideos X5 Froyo
    HTC Flyer
    Samsung Galaxy 3
    epic touch 4g
    msm7227_ffa
    Motorola Sholes Milestone
    *and many other devices*

    In case it works on your device please report device model and ROM version so that I add it in the list for everyone else to know

    If you want to request support for your files just post your libwebcore.so here for me to have a look at it

    Changelog:
    3.93B LG L3 support added
    3.92B Minor bug fix (affected Galaxy Y and similar devices) - only windows version updated
    3.4-3.91B added support for more devices, optimized the code and fixed bugs
    3.3B fixed bug in pre-froyo patch
    3.2B extended support for older devices (pre froyo 1.0-2.1)
    2.4B - 3.1B support for even more devices, bug fixes, and space optimization
    2.3B UI update: mails files that failed the patch to me for review.
    2.2B fixed bugs in the returned code the libandroid_runtime.so patching algorithm, now it should handle non-optimized files properly.
    2.1B returned code is now structured in three bits (binary) bit0 is set if arabic patch failed, bit1 set if hebrew patch failed, bit2 is set if libandroid_runtime.so failed.
    2.0B fixed bug in returned code to OS indicating always that process failed, now it indicates process succeeded only in case the arabic patch has been applied successfully.
    1.9B small bug fixes
    1.8B merged some code from libpatcher, compressed resources, built a better function to patch libandroid_runtime.so
    1.7B bug fixes in UI
    1.6B A few bug fixes in the UI
    1.5B Added support for more devices Samsung Galaxy 3 + experimental inclusion of busybox in the UI
    1.4B Cosmetic Fixes in UI
    1.3B Cosmetic Fixes in UI
    1.2B Cosmetic Fixes (enhanced UI Responsiveness) + Cleaned Code
    1.1B fixed JokerROM patch
    1.0B some fixes in JokerROM patch
    0.9B fixed bug in superpad2 patch and published the app in the google market.
    0.8B New Device Flytouch Superpad2
    0.7B Code for Archos was not complete (libicuuc.so was missing export), this version generates libicuuc-arabic.so in case it is needed
    0.6B even more devices (Archos)
    0.5B added support for more devices (notion ink adam tab + ARMv6 Based - changed NOP instruction specifier) - fixed bugs (patch alignment in thumb mode)
    0.4B added support for more devices/variants + premature support for ARMv6 devices *complete rework - code runs in ARM 32Bit mode now for compatibility with older devices* + Bug fixes
    0.3B fixed minor bug: the output file was not placed in same path as original source
    0.2B fixed bug in the library name patch (the .dynamic section parser)
    0.1B Initial release

    The Download Link:

    Windows Binary *UPDATED* http://www.mediafire.com/?1iaqccy99il7htm
    ARM/Thumb Binary http://www.mediafire.com/?ntmori3ud22olj4
    32bit x86 linux binary (old - not updated) http://www.mediafire.com/?nd2g08msztp4l0p
    As I am a strong believer in knowledge sharing, here's my source code: http://www.mediafire.com/?5rjj3318jargxsq
    APK for Automatic Application *NEW!* http://www.mediafire.com/?hhczkjc5e98ty3y

    How to apply:
    1. download the program to a folder on your desktop
    2. download *the original - which came with the ROM* libwebcore.so from /system/lib in your device (which must be rooted, ofcourse) and place it in the folder you created
    3. open command line prompt (CMD), goto that folder on your desktop (cd \documents and settings\user\desktop\temp_folder) then run the program by typing "webkit_arabic_patch libwebcore.so"
    4. this will produce two files: 1. libwebcore.so and 2. lib__bcore.so - copy these files back in your device under /system/lib - You could use root explorer or similar tool
    5. check file system permission for the files /system/lib/libwebcore.so and /system/lib/lib__bcore.so and make sure they're correct
    6. reboot your device

    Thanks to all BETA testers

    For those interested in a universal arabic patch for everything else but the browser&gmail check out sister thread by Madmack here http://xdaforums.com/showthread.php?t=1063205
    For MIUI patch check http://forums.miuiandroid.com/showthread.php?723-Arabic-RTL-Fix-Now-with-T9-dialer-and-BROWSER!!!!

    - Brightidea
    6

    Nope - That's totally different.
    My patch alters the behavior of libwebcore.so (which enables Arabic in the browser + gmail) - it's also Universal, which means one will apply the patch against any stock rom and it should work (the other one is for MIUI)

    - Brightidea.
    3
    Could this be added as a choice in rom kitchen?

    Sent from my GT-I9100 using Tapatalk

    I can't see a reason why not. The program is fed in 1 file (libwebcore.so) and produces two files (libwebcore.so & lib__bcore.so)

    I need to add more (sanity checks & verbosity) for this to be ready for use by anyone though.

    - Brightidea
    3
    Hi
    this file not found



    i am try this files because file size same in galaxy mini

    and when run browser it is close auto after 5 to 10 second

    i am attached logcat file

    COOL! Now I know how it crashes - it seems your processor doesn't consume the "nop" instruction I am using. I found another variation.

    in logcat it reports: ILL_ILLOPC @ a83e9f3e (that's where I used 00 bf for NOP)

    Can you test with this:
    http://www.multiupload.com/WHJJQBYNJ2

    I am hoping it'll work this time!

    - Brightidea.
    3
    Will it work with Odex roms like the one in my sig?
    Good job either way. Thanks.

    This one should work with any ROM (odexed/deodexed) - it alters the shared objects in /system/lib those programs are not affected by the system state

    - Brightidea