yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] madmack:
You're very welcome :) I'm merely forwarding his work to you guys.

We're discussing the possibility of creating a generic patcher that can patch any libwebcore.so file without the need for any source code. That would be big and I'll let you guys know if it does indeed happen. Its still a bit early but exciting nevertheless.
[Galaxy S I9000 Android Development] aladin6:
Yes, that's big, but if it comes true, that will be PERFECT, AWESOME...

Thank you madmack and GOOD LUCK :p :).
[Galaxy S I9000 Android Development] jaikat:
if this comes true, it means it doesn't matter anymore which phone or rom any one is using, anything can be patched... am i right?!

and another Q, one of the libs provided for the 2.3.4 patch is libicuuc-arabic.so, isn't this file also provided when patching the framework.jar ?! will the two files conflict?
[Galaxy S I9000 Android Development] madmack:
yep, you are right :) any android rom will be able to get patched in browser + gmail if he succeeds.

libicuuc-arabic.so is required for his arabic browser fix for now but its the exact same file from my patch so overriding it is no problemo. just make sure it does exist ;)
[Galaxy S I9000 Android Development] jaikat:
Great. Will be keeping a lookout then, just as i always have ;)
[Galaxy S I9000 Android Development] Nokia7Vista:
Thanks Madmack & BrightIdea

btw the source codes are out :)
[Galaxy S I9000 Android Development] brightidea:
I have taken libicuuc-arabic.so off the list of required shared objects for my patch, my recent builds only requires libicuuc.so (which comes in every device anyway).

One thing to note about the most recent release of the GT-I9000 2.3.4 arabic shaping patcher, I noticed that sometimes the browser doesn't display the text RTL. I am currently on top of the issue in hopes I'll be able to release a fix very soon so stay tuned.
[Galaxy S I9000 Android Development] madmack:
Thanks for letting me know. I'm not going to attempt to recompile it for now given brightidea's progress. so lets wait and see what he comes up with :)

Thanks for the update and the heads up !

I'll upload your files to the OP as soon as I get the green light :)

Good to see you here in the dev section finally ;)
[Galaxy S I9000 Android Development] jaikat:
You're a true gent.

What you guys are doing for us is unbelievable, thank you.
[Galaxy S I9000 Android Development] brightidea:
Good news guys - I was able to find the right bytes to patch in SGS I lib__bcore.so (XXJVR)

attached the fixed one.

Please madmack update the package.

Thank you,

Brightidea.
[Galaxy S I9000 Android Development] madmack:
just to make sure, that last version doesn't require the custom libicuuc-arabic.so ?
[Galaxy S I9000 Android Development] brightidea:
Yep - not needed man. Attached the latest one for SGS I (just to make sure you got the correct version).

Regards,

Brightidea.
[Galaxy S I9000 Android Development] madmack:
OP + blog updated.

Thanks again.

For those of you who are trying the file, let us know your feedback as I don't own a SGS anymore :)
[Galaxy S I9000 Android Development] zenosteam:
finally work great thanks :D

browser ok g,mail ok, k9mail ok
[Galaxy S I9000 Android Development] mab71:
ﺷﻜﺮﺍ ﺟﺰﻳﻼ madmack!!! :-)
[Galaxy S I9000 Android Development] madmack:
you're very welcome. I'm only the messenger though. brightidea is the man. lol

hopefully he'll work with me to provide something global and great to the RTL android community :) I'll work on my framework patcher meanwhile
[Galaxy S I9000 Android Development] zenosteam:
brightidea +1
[Galaxy S I9000 Android Development] brightidea:
Your knowledge sharing on the blog and support with testing, packaging and distribution is very valuable; Reality is I couldn't have made it without you man.

Thank you,

Brightidea.
[Galaxy S I9000 Android Development] madmack:
I shared everything in the hopes of finding someone like you. I truly believe arabization should always remain open source and completely free as it is a necessity and should always remain collaborative. After all, its a service to all RTL speaking communities.

I just hope that whoever uses this work always references it :) From experience though, this might be a bit too optimistic. :rolleyes: I've already seen distribution of my flashable framework patcher given with credits to their own selves :confused:
[Galaxy S I9000 Android Development] jaikat:
Yeah you're right, i've seen it happen, but you shouldn't let that frustrate you, cause your threads are too big to miss for most people, and when its truth time no one is going to argue who's work it is..

Ps: you guys should be awarded the "android noble prize" for this :D
[Galaxy S I9000 Android Development] zenosteam:
but we know that madmack is the master chef of this thread and his work is too big we already need you help keep the quality work
[Galaxy S I9000 Android Development] madmack:
v0.804 is out

All right guys, the number reversing issue in some cases is taken care of and patch v.804 is out :)
[Galaxy S I9000 Android Development] jaikat:
Thanks madmack, more great news :)

Any news if a patching system for libwebcore.so will be availabe?
[Galaxy S I9000 Android Development] madmack:
nothing yet. i'm not working on it so i can't really chime in on it. let's hope he succeeds :) I'll definitely push a new framework patcher if he ever gets that job accomplished.
[Galaxy S I9000 Android Development] jaikat:
the waiting game, i like it already.. :D
[Galaxy S I9000 Android Development] ultra99:
any updates? any universal libwebcore.so that could work on nexus one? aosp 2.3.5?
[Galaxy S I9000 Android Development] brightidea:
Can u send me the original files that u have - I wanna have a look to see if it is possible to create a universal patcher?

- Brightidea
[Galaxy S I9000 Android Development] mab71:
will there be a patch for odexed rom's? or is it impossible?
[Galaxy S I9000 Android Development] madmack:
please upload your libwebcore file somewhere so brightidea can have a look at it :)

I wouldn't say its impossible but I'm certainly not planning on it.

No reason to odex now anyways given that the browser is fixed thanks to brightidea.
[Galaxy S I9000 Android Development] ultra99:
I have replaced the original libwebcore.so of an AOSP 2.3.5 with Gingerbread AOSP 2.3.3 for high-end devices (e.g. Nexus One) and surprisingly Arabic appears correct in browser and gmail.

So what I did was use the script to modify framework.jar and libandroid_runtime.so and replace libwebcore.so from the designated link.

I don't know if there's an easier way to do it, but that's how I did it. ;)
[Galaxy S I9000 Android Development] madmack:
glad to see that it worked. apparently google hasn't change anything significant between 2.3.3 and 2.3.5 in the libwebcore department.
[Galaxy S I9000 Android Development] bobster0001:
To brightidea and madmack,

Can you check this out? It's for the HTC EVO View 4G. I think it is running on Gingerbread 2.3.4 with HTC Sense 2.1. Thanks.
[Galaxy S I9000 Android Development] madmack:
thanks. this might help brightidea in his global fix solution :)
[Galaxy S I9000 Android Development] bobster0001:
And here's an attachment for the HTC Flyer 3G 32GB supposedly running on the Arabic version from Kuwait. I extracted it from the backup file someone made and post on ce4arab. I tried pushing it into my View, but didn't work. Any idea why?
[Galaxy S I9000 Android Development] madmack:
we don't really make arabic versions work on non arabic versions except rarely (when I have the device in hand for example). what we need is the English non arabized version.
[Galaxy S I9000 Android Development] johnyboo:
Hi Madmac, just bumped into this thread so sorry if the question was already asked:

Is there a solution for ODEXED ROMs as well? Maybe a procedure I can follow?

Even guidance can be good, if I get it right I can post some clean instructions here.
[Galaxy S I9000 Android Development] madmack:
other than deodexing, and reodexing i don't think there is a solution.

in this thread: http://xdaforums.com/showthread.php?t=1168338 there is some interesting material on how to go about it. beyond that I can't help you unfortunately coz I haven't done it myself.
[Galaxy S I9000 Android Development] brightidea:
Please try this one and let me know if it works.

better to take a backup from the original files (just in case)

- Brightidea.
[Galaxy S I9000 Android Development] bobster0001:
Its a recovery zip right like I install it through clockworkmod? It didnt let me install. It says installation aborted.
[Galaxy S I9000 Android Development] brightidea:
Yeah it should work with CWM - just disable checking signature

- Brightidea
[Galaxy S I9000 Android Development] bobster0001:
Nope didn't work. Tried both signature enabled and disabled. When it is disabled it says error status 7 and when it is enabled it say installation abort.
[Galaxy S I9000 Android Development] brightidea:
Okay I'll try to find out what the problem is - meanwhile, you could just copy the files libwebcore.so and lib__bcore.so over /system/lib

- Brightidea
[Galaxy S I9000 Android Development] bobster0001:
Yes! It works. Thanks a lot.
[Galaxy S I9000 Android Development] brightidea:
For those interested in the universal patch for libwebcore.so (browser & gmail) and by madmack's request I have opened a thread which deals specifically with that subject

http://xdaforums.com/showthread.php?t=1218960

- Brightidea
[Galaxy S I9000 Android Development] reco1:
dose it work on darkys 10.2 EE ?
[Galaxy S I9000 Android Development] migamax:
i am using ROM names AMESTRIS and arabic letters is linked in contacts and messages and even browser !! how he did it is it one file to flash it via CWM or multiple one sorry for the nooby question

my second question is there any way to fix the flipped a contact numbers when i recive a message ? if the correct order of the number is for example 01234 it will show up like 43210 :(
[Galaxy S I9000 Android Development] madmack:
Thanks a ton.

I highly recommend that you guys check his thread out and contribute to testing. This is big for us RTL and Arabic speaking communities. I'm linking your thread in the OP.

latest patch fixes this problem. get it from the blog.
[Galaxy S I9000 Android Development] bobster0001:
I have a weird problem. 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. Anyone knows why? This is for HTC EVO View 4G tablet.
[Galaxy S I9000 Android Development] D69K:
Hey brother, loving your new patch although I got to say I still have the Chinese character problem on the top of every broadcast :(

But Im thankful that we have Arabic support and that's it :)

A little tip for you, you should grab the new version of smali/baksmali.

Also you and brightidea make a great team, can't wait for your universal patcher ;)

Keep going brothers
[Galaxy S I9000 Android Development] madmack:
thanks.

I'll definitely push the new baksmali/smali tools and the libwebcore patch in my next version. I'm going to rearrange the folders as well so they become a bit more intuitive and centralized.
[Galaxy S I9000 Android Development] krazy_kh:
Thank you so much, works like a charm, I'v been asking around for days ...this worked perfectly on Ryyu's EDB v1.3 [JVQ] :)

keep up the good work sir
[Galaxy S I9000 Android Development] madmack:
v.810

all right boys and gals.. v0.810 is out.

change log and details is at the blog.
[Galaxy S I9000 Android Development] D69K:
Great job Im loving the new Folder Structure :) instead of the old complex way.

giving it a try right now will post feedback later.

Thanks to you both Madmack & brightidea.

EDIT:

been using this for a couple of hours and it seems to be working flawlessly :)

great job as always Madmack & brightidea :)
[Galaxy S I9000 Android Development] leoon:
I keep getting libandroid_runtime.so failed to patch... Can anyone tell me why?
[Galaxy S I9000 Android Development] madmack:
your sig says cm7, are you on that rom? if so, then this explains why as I don't provide any patch for CM7 given that its already supporting full RTL.
[Galaxy S I9000 Android Development] hospy94:
would this work on Miui 1.8.12?
[Galaxy S I9000 Android Development] madmack:
nope :(

10char
[Galaxy S I9000 Android Development] wanam:
Look at this thread.
[Galaxy S I9000 Android Development] Rahulrulez:
I've slightly modded framework.jar

I'll loose the mods if I replace with your Framwork.jar

Can you please tell me the changes you've done in framework.jar? so that I can manually make those changes? you cna PM me.

Thanks,

Rahul
[Galaxy S I9000 Android Development] madmack:
put your modded framework.jar in my patcher and you'll get RTL support without losing your changes/mods.
[Galaxy S I9000 Android Development] Oweida:
Assalmu Alikum Madmac

I know this will be off topic ( Again ) but I wanna ask you a question ?

I've got HTC flyer, can your patch help me to arabize it ?!

Thanx in Advance
[Galaxy S I9000 Android Development] madmack:
My patch can fix arabic and RTL text in any deodexed ROM. Just follow the steps and if you have any problem with any particular step, let me know. I or someone here will help you :)
[Galaxy S I9000 Android Development] Oweida:
I completed the steps and everything seem to run smoothly provided I chose AOSP instead of Sense UI ( as advised by your patch !!! ) although I have a sense UI based rom then I moved the generated files into the corresponding locations using Root explorer but upon restarting my flyer hangs on the HTC screen !!!

using the option HTC UI it gave me this Error :-

Couldn't copy 'classes\android\text\layout.smali' to '.\layout_old.smali

and other lines I will upload my files :)
[Galaxy S I9000 Android Development] Brotuck:
Hi there,

Wanted to see the steps on the blog, but it is not available ?

I want to integrate arabic shaping to my odex ROM (Tornado) . ;)
[Galaxy S I9000 Android Development] madmack:
You're getting bootloops because you haven't chosen Sense UI. Any particular reason why you chose AOSP ? You really should select Sense if you have Sense. AOSP won't work on Sense roms.

It works here. The server seems a bit slow at the moment but it loaded correctly nevertheless. Let me know if you still have problems after retrying..

(note to self, i really should move my hosting space to another server/location :rolleyes:)
[Galaxy S I9000 Android Development] Oweida:
Thanx Madmac but could plz refer again to my post I re-edited it :)

I really need this :)

If you make it in recovery flashable zip , you will be my Hero :)
[Galaxy S I9000 Android Development] Brotuck:
Thanx now it works. :)

Ill make the adjustments for XXJVS (2.3.5) and see if it works ok.

Ill report back on this ;)
[Galaxy S I9000 Android Development] Oweida:
Well !!

Putting your patcher folder directly in C directory made the patching process to run with no single error ( Flawlessly ).

Then

I tried every possible way ( Either transferring/replacing the files or flashing the resultant flashable zip ). All what I get is bootloops !!!!

I went through all the steps !! patching took a long time but it ran smoothly but I guess the patcher doesn't like my HTC flyer :)

I'm giving up and thanx madmac :)
[Galaxy S I9000 Android Development] madmack:
Try to get me the logcat of the bootloop so I can help you fix it.

While the phone is bootlooping, connect it via USB and issue "adb logcat > logcat.txt" then send me logcat.txt

you'll need to have the android SDK installed for adb
[Galaxy S I9000 Android Development] tush1114:
Can you prepare a patch for Indian languages?
[Galaxy S I9000 Android Development] madmack:
hmm.. I'm not sure I know how to do that given that I don't speak that language :o
[Galaxy S I9000 Android Development] eletreby:
hi madmack

did u made any complete arabic rom for ginger bread 2.3.5 for galaxy s1 as u did for galaxy s2??

if u did pls. send me link for it ....

many thanks for u
[Galaxy S I9000 Android Development] badboyilprimo:
can this patch work for galaxy ace by anychance if the rom is deodoxed
[Galaxy S I9000 Android Development] madmack:
I haven't. I don't own a sgs1 anymore.

It definitely should.
[Galaxy S I9000 Android Development] M_J_Nazari:
Hi Madmack, any news on JVT? the v813 doesnt work on 2.3.5 JVT
[Galaxy S I9000 Android Development] Chief_Death:
I second that. It doesn't work
[Galaxy S I9000 Android Development] darkmoon078:
It doesn't work for JVT here too, it make phone boot loop
[Galaxy S I9000 Android Development] madmack:
guys I'll need more than that.

I don't have the device so I can't really guess why it doesn't work. print (to a file) a logcat when the phone bootloops and send that to me. Also, are you patching libwebcore.so?
[Galaxy S I9000 Android Development] migamax:
i tried the patch procedure 3 times with different roms and still giving me Screen loops so you can't borrow a friend SGS1 to see it by yourself ?
[Galaxy S I9000 Android Development] Chief_Death:
I will try to get log when I get home. And I wasnt patching the libwebcore if that matters.
[Galaxy S I9000 Android Development] darkmoon078:
السلام عليكم

here is the logcat, and yes I patched libwebcore.so, hope that'll help us having arabic on JVT asap. tnx in advance :)
[Galaxy S I9000 Android Development] migamax:
the only arabic patch that works with JVT is the Jetpack v.6 ROM arabic patch for JVS i used it on JVT and it is working like a charm
[Galaxy S I9000 Android Development] darkmoon078:
It works like a charm, tnx man for mentioning that. and of course big tnx to madmack the original arabic patcher. :)
[Galaxy S I9000 Android Development] MostafaFCB:
firmware.jar in JVT completely is different with JVS ...

we are waiting for release a path for language (right to left side) ( like Persian / Urdu / Arabic) for JVT
[Galaxy S I9000 Android Development] madmack:
I just checked out his patch. he's using my patcher (wonder where he mentions the credits in his OP :confused::confused:) but anyways, if you do the same (i.e. take framework files from earlier ROM and patch it then put the cwm file in JVT) it'll work as well given that Jetpack is doing just that.

I'm having a look at it. seems the Canvas.smali file has been changed in JVT.

edit:

problem found

the method

public void drawText(String text, float x, float y, Paint paint)

is not being able to be registered in the dalvik cache. why? because libandroid_runtime.so is not being updated correctly by LibPatcher.exe given by the folks at iAndroid.

Easy fix? nope. I don't even have the sources for that little utility. you guys can try to replace libandroid_runtime.so with a file from a rom earlier than JVT to see if it'll work. (most likely it will). make sure the previous libandroid_runtime.so is actually patched by my universal patcher as well.
[Galaxy S I9000 Android Development] Chief_Death:
So basically getting JVT Framework + JVS libwebcore and patching them should solve it right?

thanks in advance
[Galaxy S I9000 Android Development] madmack:
from JVT: framework.jar and libwebcore.so

from JVS: libandroid_runtime.so

see if that works.

It'll be great if someone can confirm that. I'll at least know for sure what the problem is.
[Galaxy S I9000 Android Development] Chief_Death:
I'll do it in a minute

thanks

Edit not working bootloop will try to get the log ASAP

Edit2: it is taking long time to download the SDK files (new laptop) but still log is coming :))
[Galaxy S I9000 Android Development] migamax:
also i used the following patch

http://www.mediafire.com/?2iqqc96nwxok7oe

in Obssession ROM using vodoo kernel with lagfix on

http://xdaforums.com/showthread.php?t=1293302

and it works with no problems too but when using the same patch for the rest of JVT Roms got loops wheather in the boot or be4 screen appears

i hope my feedback will help you guys to fix it
[Galaxy S I9000 Android Development] madmack:
thanks for the feedback guys. these logs are really important for me to resolve the issues with JVT :)
[Galaxy S I9000 Android Development] Chief_Death:
Hope this helps..
[Galaxy S I9000 Android Development] madmack:
run the logcat command a little later. the log file you sent doesn't really reach the freeze or loop point yet.
[Galaxy S I9000 Android Development] Chief_Death:
okey will try again..

Edit: This logcat is as far as I can get If I wait anymore to issue the logcat command it doesn't do anything hope this one is alright...

Edit2: What I mean is that the device in loop and there is a time between each reboot when the device is not connected to the adb so I can't predict when to get the log.

Thanks for your help
[Galaxy S I9000 Android Development] MAQ7:
Hi Mr. madmack,

Any luck with JVT?

Regards
[Galaxy S I9000 Android Development] madmack:
i'm not really able to infer much from this:

D/dalvikvm( 92): DexOpt: incorrect opt magic number (0xff ff ff ff)

D/dalvikvm( 92): ODEX file is stale or bad; removing and retrying (/data/dalvik-cache/system@framework@framework.jar@classes.dex)

E/DataRouter( 91): [*] Connect_RILD() error 4 retrycount 1

D/dalvikvm( 92): DexOpt: --- BEGIN 'framework.jar' (bootstrap=1) ---

when the phone bootloops, does it show the initial samsung logo or does it only reload the boot animation?

the error code indicated here looks like its a baksmali/smali issue.

I might be able to get a hand on an i9000.. it'll make my life easier to debug once that happens. u guys will need to be a little patient here :)
[Galaxy S I9000 Android Development] almuhajir:
Hi, Madmak, مرحبا

it's bootloops on samsung logo
[Galaxy S I9000 Android Development] Chief_Death:
We're okey take your time and regarding your question it bootloop at the initial Samsung logo (white one) hope that help
[Galaxy S I9000 Android Development] madmack:
I've booted up my friend's I9000 and the problem is indeed with the LibPatcher.exe utility.

Fortunately, I think I can reach the author of this utility to see why it's failing. Brightidea (our libwebcore patcher hero) is also notified in case he can fix it.

Unfortunately I don't have great experience with editing binary files. I only write my code in Java/C/C++, compile, and then repack your framework files with my code. Some binaries (*.so files, like libandroid_runtime.so, libwebcore.so) need experience with hex editing; a very advance and sophisticated topic that I have little to no experience with it.

I gave them the libandroid_runtime.so file from JVT for them to analyze. We'll just have to wait and see what they say :)
[Galaxy S I9000 Android Development] Chief_Death:
Your and their help is appreciated thanks madmack!
[Galaxy S I9000 Android Development] madmack:
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.

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 :)
[Galaxy S I9000 Android Development] MAQ7:
Great job man :)
[Galaxy S I9000 Android Development] darkmoon078:
tnx madmack, it works like a charm. ;)
[Galaxy S I9000 Android Development] sir ahmed:
madmack you're rock
[Galaxy S I9000 Android Development] jaguaralani:
Madmack me mate, thanks alot for this hard work, though I am not able to make use of it, since I have a flyer with gingerbread Sense UI interface...

Any solution for that ?

Thanks...........
[Galaxy S I9000 Android Development] M_J_Nazari:
thank you madmack,

your job is great..

thanks to you and brightidea
[Galaxy S I9000 Android Development] Chief_Death:
Thanks madmack and brightidea.. working as intended :))
[Galaxy S I9000 Android Development] madmack:
did you try it? (my universal patcher)