yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] madmack:
that actually could be very likely.

i expect gingerbread sense UI to give us an error in one file. I just want to make sure first before I give you some steps to perform to get it to work. Once I get a confirmation from you, I'll roll out the final Gingerbread Sense UI patch.
[Galaxy S I9000 Android Development] D69K:
wow sounds promising :)

i'll be waiting for this "final Gingerbread Sense UI patch" :D

i just included the log in my previous post ..
[Galaxy S I9000 Android Development] madmack:
that logcat doesn't make any sense :confused:

the errors are not related to framework at all. are you sure the framework file got patched successfully ? (size is bigger by ~ 1MB) ?

do a factory reset, and then run logcat again when it boots up.

the errors seem to related to permissions or something. but nothing clear as to framework classes.

I would like to see the error that I expect first before I go ahead and give you the steps to fix it. That way we can isolate the problem and make sure it works.
[Galaxy S I9000 Android Development] D69K:
Strange, as it was working just fine before i replaced framework.jar with the one inside the *.zip.

i too believe that it's a permission thing.

and Yes the framework patch process went successfully and the size of the file is bigger by about 1.5 MB.

anyway i'll start the whole thing over and i'll let you know.

gimme 15 min.
[Galaxy S I9000 Android Development] madmack:
one more thing, can you up your framework.jar file ? I need to look at something
[Galaxy S I9000 Android Development] D69K:
same thing :( bootloop

BTW: I did the whole thing again. only this time i tried to modify permissions after i replaced the file via root explorer to 644 which is rw-r--r-- same as the original.

i included the original framework, the new (generated) framework and the log file.

HERE

i hope that helps.
[Galaxy S I9000 Android Development] madmack:
awesome. now your logcat speaks what i wanted to hear :)

I'm making a framework for you. it should work, i'll update this post in a few mins.
[Galaxy S I9000 Android Development] D69K:
thank god :)

i was starting to lose hope :D

waiting ..:eek::eek::eek:
[Galaxy S I9000 Android Development] aehlayel:
Madmack, GREAT job, looks quite promising.

I'm running a deodex'd ROM built off XXJL1 for the Armani Captivate GT-I9010 - a ROM called Andromeda if you've heard of it before.

So I think that by following the rules you've posted in the OP, I should be able to generate the framework.jar file.

It's the libwebcore.so that I'm not so sure how to get.

Could you please help me with that?

Thanks,

-aehlayel
[Galaxy S I9000 Android Development] madmack:
here it is:

http://www.multiupload.com/QW6FQ2RTG0

give me the logcat if it still bootloops (it really shouldn't now)

libwebcore.so is a tough one. we'll need to recompile this file for each version. we're working on a global solution but I'm afraid you'll have to do without it for now.
[Galaxy S I9000 Android Development] haithamnayel:
I am looking for a solution for the arabic font on T-Mobile G2, letters are there but thry are disconnected.

I have virtuous 1.0.1 rom with advanced kernel ... Android 2.2.1 version 1.85

Anyone have an idea?
[Galaxy S I9000 Android Development] aehlayel:
so this means that i'll get my menus, contacts and everything related to the android framework, in arabic.. but not the browser, email and 3rd party apps? (say skype/msntalk/yahoo... etc??)

edit:

what are the odds of this libwebcore.so working from a different version, without breaking anything else?
[Galaxy S I9000 Android Development] madmack:
3rd party apps should work fine as well.

its the web browser and gmail (which relies on it) that aren't gonna play nice.
[Galaxy S I9000 Android Development] D69K:
GREAT JOB YOU GENIUS :eek::eek:

IT WORKED :) :)

Finally i've been waiting for it for so long ..

i guess you'll be updating your program to 0.787 now ??

now the only thing left is libwebcore.so.

anyway i'm so happy with this :)

gonna spread the news :)
[Galaxy S I9000 Android Development] madmack:
:D:D

Ladies and gents. we got all Android >= 2.1 arabized successfully !!

I'm all ready for the Galaxy S2 now, bring it on Samsung. lol.

This will take a bit of time before I can publish a usable patch. (it requires some scripting to edit the layout.smali by hand, instead of a ready made patch).

but it'll be done nevertheless !

I'm glad we got it sorted out, given how hard it is to debug a unit that I don't personally physically poses. Thanks to you for your patience and feedback.

enjoy.

Edit:

I'm too lazy to do it the proper way. Lets hope HTC doesn't change that any further.

I'm upping 0.787 which does Sense UI Gingerbread as well.
[Galaxy S I9000 Android Development] D69K:
Great news about 0.787 can't wait to try it :)

BTW i took the framwork you gave me and made it into a flashable CWM .zip file and added Almuhannad font :)

can i share it with the folks over at ce4arab ??

credits made to you of course :)
[Galaxy S I9000 Android Development] madmack:
absolutely :) I'm glad I could help
[Galaxy S I9000 Android Development] D69K:
Thank you very much :)

check it out

Here
[Galaxy S I9000 Android Development] qaliza:
This is some great work

Keep it up...:)
[Galaxy S I9000 Android Development] bder007:
thanks alot my friend

many arab users need this

thanks alot again
[Galaxy S I9000 Android Development] RADLOUNI:
thanks

Hi Madmack

i applied your patch today to desire HD with 2.3.2 revolution HD beta 4

all arabic writing on widgets shows properly, but once you click on the widget to go to its application, the application opens up but arabic letters are disconnected.

this happens for example with the news widget where arabic text is displayed on the desktop properly, but when you click the widget to read the full article, the news app opens and the arabic text shows with disconnected letters !!

This does not happen with the "friend stream widget" where arabic is consistent on the desktop widget or from within the application.

Is it possible to release a patch to correct this so all widgets would display correctly

Thanks for all your efforts
[Galaxy S I9000 Android Development] madmack:
the widget is probably redirecting you to the browser or an app that uses the browser engine (libwebcore.so). Without arabizing libwebcore, this framework patch won't be able to display these connected properly.
[Galaxy S I9000 Android Development] RADLOUNI:
anything coming up

Thanks for the explanation, is there any plan to patch the libwebcore.so, or is there a version already there that i can use ?

Thanks
[Galaxy S I9000 Android Development] madmack:
we're working on a global solution to patch all variants of libwebcore.so, it looks hard to achieve though.

you'll get the arabic version once HTC released the WebKit source code for Gingerbread Sense UI. I think it'll be around the time they make it official, my guess is June.
[Galaxy S I9000 Android Development] m.shafik:
Arabic Swype/Smasung Keyboards?

Hey guys, I have a question, I am on stock ROM on my Samsung Galaxy S, and about to install Darky's 9.4 ROM, so I'm sure Arabic fonts will work, but what about the Swype and Samsung Arabic keyboards? I searched for a while but can't find anything.

However, I'm confident they can be extracted because they were in Darky's 9.2 ROM, I sent him a question but he is busy.

P.S. I am also sending madmack the Arabic font from the Xperia X10 to test it, it looks better than the stock Samsung and Al Jazeera fonts.
[Galaxy S I9000 Android Development] P Y T H O N:
really appreciate your work ,why you don't join cyanogen team to fix Arabic in their roms ?

we need someone like you to care about Arabic language there
[Galaxy S I9000 Android Development] jaikat:
hello again..madmack

i'v been at the htc developer site looking for the webkit source for the HTC Hero, and unfortunately i couldn't find one.. but.. i noticed that HTC released the webkit source for the HTC Droid Eris, which is a CDMA copycat of the Hero, check this link...

anyway, i was wondering if you could do me a big favor by downloading the 25mb webkit source and patching libwebcore.so if its not too much to ask...

i totally understand if you don't have the time, don't feel like it, or even if you don't care :o but i really hope you can pull this off so we(I) can try it...

here's the link to the source
[Galaxy S I9000 Android Development] madmack:
for many reasons really. Primarily because none of this code is my own. I simply researched this existing code and "ported" it with some tweaks to make framework arabization not rely on any library changes (.so files).

As for Cyanogenmod. Well, this code is anything but optimized due to the huge library that I use just to shape text when we really need only a small shaping file to take care of it. (just scroll through any arabic list to see how 'slow' this shaping process is) It also breaks support for Hebrew RTL I believe. So basically i think it needs a lot of optimization and fixing before we can feel comfortable integrating it with CM builds.

you do realize that this code is for Eclair right ? I don't know what ROMs are available for this device or if newer Gingerbread/Froyo Sense ports are out there because if so, this patch won't work with them. Only on Eclair based ROMs.
[Galaxy S I9000 Android Development] madmack:
Taking requests for webcore shaping:

http://blog.devasque.com/?p=93
[Galaxy S I9000 Android Development] kia1349:
hi madmack

thanks in advance for your greate works

does it work on desire hd?

thanks again
[Galaxy S I9000 Android Development] jaikat:
Yes of course i do realize its for EClair, sorry, i should've mentioned it in my post.

The fact is, the HTC Hero didn't get past EClair, and it probably never will :(

Should i make another request at your blog, or will this one do :rolleyes:
[Galaxy S I9000 Android Development] madmack:
it'll do. i'm compiling now, lets see if it'll work for you.

edit: try this file, see if it works:

http://www.multiupload.com/UCAWFH9HJ2

I'm building assuming its a low-range device because it has similar specs to the G1 (dream). hopefully its using the JS libraries instead of the V8.

Let me know nevertheless.
[Galaxy S I9000 Android Development] quadratic:
Would this work on CM7 for the Vibrant? If so, do I also need to patch framework.jar?

edit: Oops, missed this.

Would this work for me?
[Galaxy S I9000 Android Development] madmack:
It should, unless the latest nightly changed the framework.

If you want to do it the guaranteed-to-work safe way, just patch the framework.jar manually using my patcher.

libwebcore.so should work by just replacing it with the one in the OP, so that's safe to do.
[Galaxy S I9000 Android Development] zorbakun:
can you help me add arabic support(Framework & libwebcore.so) for this rom please, i tried framework.jar patched but it gives me a boot loop!!

HTC Legend Froyo 2.2

[Espresso 2.2] YogenTouch 1.5

http://xdaforums.com/showthread.php?t=932337
[Galaxy S I9000 Android Development] quadratic:
I opted to manually patch my framework which caused it to boot up fully, but never draw anything on the screen. It would just keep replaying the opening animation, but the screen-off animation worked and it would play notification sounds :p

Next I tried the framework.jar from the CWM archive in the OP, but that didn't even get as far as the animation.

I'm on a ~3-week old CM7 build, so I suppose I should probably update to something more recent before giving this another go...
[Galaxy S I9000 Android Development] slimfady:
I had the same problem. I was trying to patch the framework.jar from Kang-o-Rama, which uses nightly 29 as a base
[Galaxy S I9000 Android Development] goodwill4u1:
Hi Madmack

i tried to apply manually the framework and the libwebcore for Darky 9.4, and it didn;t work, means my phone never pass the Samsung intro. But for Darky 9.3 i had it working, and now i'm back to 9.3 and working.

knowing that both roms ar 2.2.1 but one is based JS5 and the newer in JS8

thx
[Galaxy S I9000 Android Development] m.shafik:
Xperia X10 Fonts

I have an Xperia X10 as well as a Galaxy S, and the Arabic font on the Xperia is the best I've seen anywhere, so I extracted the font and uploaded it here to your benefit. I was using Al Jazeera font attached to the first post, you only need to place the couple of fonts I am attaching inside the system/fonts folder and override the existing ones.

Download Link!
[Galaxy S I9000 Android Development] madmack:
for those of you with problems, simply stating that the phone doesn't boot does nothing for me. I can't download and test every ROM out there and the patch is not so small so that I can speculate about the errors.

You'll need to attach a logcat as you boot the device and it hangs. Without that, there is nothing I can do.

CM7 patch should definitely work without issue. I'm using it myself on my device so I know that for a fact.
[Galaxy S I9000 Android Development] jaikat:
another logcat i'm afraid..

i tried the file on the same rom i had tried the framework patch with, and although the framework.jar had worked, this version of libwebcore doesn't unfortunately...

the errors in the logcat refer to libmedia_jni.so and libwebcore.so... i upped a copy.. maybe you can take a look at it...

my Hero "is old school" alright, and i don't know if the V8 javascript engine would make any difference, or if it will even work, but i'm willing to give it a try, if of course you think its worth a try and are willing to compile another libwebcore.so based on V8...

ta33abtak ma3i, so sorry..
[Galaxy S I9000 Android Development] madmack:
need logcat :D
[Galaxy S I9000 Android Development] jaikat:
oops, my bad, i thought i attached one... but ut turned out to be bigger than the allowed size limit...

here it is.. sorry
[Galaxy S I9000 Android Development] madmack:
ERROR: Unable to find decl for native Landroid/webkit/WebViewCore;.nativeSetSize (IIIFIIZ)V

but it is there ... i just double checked and that is indeed declared in WebKit. hmmm. I'm thinking they might be dynamically linking webcore.so to some other file. our problem is not in the V8 vs JS implementation here, the library is not getting loaded to begin with.

you got permissions set up correctly ?

try to add this file as well to /system/lib (overriding whatever you have). Just make sure you back the file in case you need to revert back using recovery.

http://www.multiupload.com/WTNSK9Q60G

i don't think it'll work, but I just want to see if it'll change the error code at all.
[Galaxy S I9000 Android Development] jaikat:
i'll be right on it...
[Galaxy S I9000 Android Development] jaikat:
here it is..
[Galaxy S I9000 Android Development] madmack:
ok, forget this approach. please revert back to the original libandroid_runtime.so

are you sure you got my libwebcore.so file in there ? it really looks like you got an AOSP build, and not the one with HTC's code. please double check.

if you can, in command prompt, type

md5sum /system/lib/libwebcore.so

and post results here.
[Galaxy S I9000 Android Development] jaikat:
here's the md5sum

3cd39dcbac7c5e319610bae254c62ea6 /system/lib/libwebcore.so

i downloaded the file again, just to make sure, and i'm about to reboot... i'll be back shortly..
[Galaxy S I9000 Android Development] madmack:
you definitely have the right file.

i don't know why the system is complaining about a missing JNI function when its clearly declared in my build.

i'll try to rebuild it with v8. but i highly doubt that this is the issue here
[Galaxy S I9000 Android Development] jaikat:
same error i'm afraid..
[Galaxy S I9000 Android Development] madmack:
put the working libwebcore.so back, boot it up. lets see how a "normal" logcat looks like coz yours looks to be complaining about .so files on multiple fronts.

in the meantime, my box is compiling a v8 version for you.
[Galaxy S I9000 Android Development] jaikat:
i'll be back shortly, i want to go pray maghrib... please excuse me :o
[Galaxy S I9000 Android Development] jaikat:
alright, here's the working libwebcore.so log...
[Galaxy S I9000 Android Development] madmack:
i'm trying to compile a new version for you. it'll take sometime.

from your logcat, seems missing media_jni.so functions are normal.
[Galaxy S I9000 Android Development] jaikat:
well at least we have that for good news.. i guess :p

i'll be waiting for that V8 version...
[Galaxy S I9000 Android Development] madmack:
nope, no luck. HTC files are definitely made to build with JS and not V8.

without your device here, i'm afraid we're out of luck.

which rom are you trying this on btw ? is it stock 2.1 Sense UI from HTC ?
[Galaxy S I9000 Android Development] mariotme:
Madmack any news on supporting 2.3.3 JVK?

:-)
[Galaxy S I9000 Android Development] madmack:
my framework patch should work with it. you'll just need to deodex the ROM before you apply the patch.

libwebcore.so (browser and gmail) will have to wait until Samsung gives us the source to JVK's webkit. if JVK is official, it shouldn't be too long.
[Galaxy S I9000 Android Development] mariotme:
Great news man!

Thanks a bunch :) will check it out soon
[Galaxy S I9000 Android Development] jaikat:
Here's a link to the rom im using..

http://www.google.com/m/url?ei=z3mP...MQFjAA&usg=AFQjCNFFrDUOe4hjM4V87MGO9w2XBKq-Zw

Yes its 2.1 Sense from HTC. Its based on a stock hero rom for europe..

So i take it the lib isn't compiling using v8?
[Galaxy S I9000 Android Development] madmack:
no its not, because HTC is hardlinking with JS libraries.

I've just recompiled webcore with JS, and traced the compilation process. The JNI function is definitely getting compiled into the library. Have you tried to factory reset ? other than that, I'm out of ideas really.
[Galaxy S I9000 Android Development] jaikat:
I honestly haven't, but i'll try it now...

Don't worry about it, what you did is more than enough..

I'll also try the lib on other sense roms..ther are a few.. i'll let you know if any good news come up..

Thanks alot, for everything
[Galaxy S I9000 Android Development] quadratic:
Sorry, I wasn't going to bother trying to debug it before updating my CM7 install. I didn't think it would be worth wasting your time trying to fix it on an older build.

That said, I pushed the libwebcore.so alone and it appears to be working perfectly for me. Both gmail and the browser seem to display everything properly.

Thanks again!

edit: Just to clarify, I realize this doesn't fix the menus and other framework components, but it's enough to get me by until I finally get motivated to install a newer CM7 build ;)
[Galaxy S I9000 Android Development] goodwill4u1:
well, i just patched framework.jar and it does not work on 2.3.3

getting unimited reboot, phone dpesn't start:eek::(
[Galaxy S I9000 Android Development] madmack:
I tried my patch personally on JVK and it worked. Just make sure your framework is deodexed and that you select Gingerbread from the selection menu.

I've noticed a problem myself with CM7's patch, I upped a new version yesterday night that fixes it. I'm running CM7 now and its working fine.
[Galaxy S I9000 Android Development] mariotme:
Madmack I replaced my framework with a edted one that incudes battery percentage and crt lockscreen animation on JVK. Is there anyway to keep both and include your arabic shaping mod?

Please excuse me if its a noob question.

Thanks
[Galaxy S I9000 Android Development] madmack:
sure, take the edited one with the lockscreen and all the fancy stuff and patch that one instead.
[Galaxy S I9000 Android Development] mariotme:
Will that keep the arabic shaping from your framework? :o
[Galaxy S I9000 Android Development] madmack:
the patch works on any framework.

if you take whatever modded framework and apply my patch, that way, you keep all mods and add arabic shaping to it.
[Galaxy S I9000 Android Development] mariotme:
Thats just amazing thank you so much for your feedback!
[Galaxy S I9000 Android Development] moha123456:
just wanna say thanks .
[HTC Inspire 4G] thinkhope:
Those of you who use gtalk a lot and use the group chat feature......are you getting a force close any time you enter a group chat?
[HTC Inspire 4G] mcca555:
that's a problem wit gtalk not the phone
[HTC Inspire 4G] thinkhope:
The reason I thought it was my phone was that it worked flawlessly on my aria. Thanks for your input. Hopefully its fixed soon.
[HTC Inspire 4G] mcca555:
yeah my buddy has this problem with the inspire but i have no problem with group chat what so ever (also on inspire)

so we google searched

http://www.google.com/support/forum/p/Google+Mobile/thread?tid=1df385f43dc9af66&hl=en

some ppl have had success with logging out from gtalk on the phone. log in to gmail on desktop, enter a group chat, close group chat, and clear chats.
[Vibrant Q&A, Help & Troubleshooting] Androidwhiz:
Need help remapping power key. Someone made awesome app called screen off & lock that does crt shutdown. It would be epic if we could remap power key to launch app.
[Vibrant Q&A, Help & Troubleshooting] ravigodhwani:
whoa awesome i just downloaded it. the power button remapping would be awesome, but the long press search button isn't half bad. that's what i'm doing now.
[Vibrant Q&A, Help & Troubleshooting] Androidwhiz:
I use voice search all the time. I would think the coding couldn't be to hard but I don't know where to look. It would be awesome if anybody could get this to work.
[Vibrant Q&A, Help & Troubleshooting] ravigodhwani:
yeah i'm sure a lot of people use the search button, for some reason i never really need it.

with the camera hack that allows photos to be taken with the power button, and while watching videos, the power button locks the screen while keeping it on, so i know there's gotta be a way to get it to launch this activity. i just don't have any experience with this kind of stuff.

edit -

saw an app called galaxy tuner that apparently remaps buttons, but i am unable to mess with my phone while at work. give it a shot maybe?
[Droid 2 General] joeld82:
I know most of us have overclocked or undervolted CPUs but can the GPU be overclocked to get higher frame rates?
[Droid 2 General] kanek06:
Nice question, I want to know that too ...
[Desire Q&A, Help & Troubleshooting] LINKSLOVESANDROID:
so i just flashed cyanogenmod7 rc2 and everything is working mint except browser. once i try and open it, my data connection poops out and starts connecting and disconnecting until i close browser. market works, twitter facebook etc. any ideas? i flashed the latest radio to no avail. i even tried a new ril but that made things worse. i then reverted to a stock nandroid. really want to go back to rc2 but cant go without browser, thats just too important of a feature in a phone. gonna try and reflash to see if it fixs any issues. if any1 has a fix, plz lemmie know thx in advance
[Desire Q&A, Help & Troubleshooting] appox:
Did you do a full wipe, + gapps install?
[Desire Q&A, Help & Troubleshooting] Meaple:
Reflash with no wipe?
[Desire Q&A, Help & Troubleshooting] davelangmaid:
I have same problem noticed seems to do it on certain pages wifi not work neither. Did full wipe and gapps.
[Vibrant Q&A, Help & Troubleshooting] beastfromtheeast:
flash a different rom on it or do I have to do anything to the current settings. I'm a total noob, its my first android phone.

In settings>about phone>

firmware version = 2.2

kernal version = 2.6.32.9

build number = nero v4.1 twiz edition by Team whiskey

(does build number indicate the current rom?)

I read around this forum and it said that you should ask if you're not compeletely sure about something (or else it could brick!?). So do I just follow the rom flash guide and everything should be ok or do I have to change any settings or permissions of the current rom to make it work?

Also does flashing a rom delete all the apps and their associated cache/settings/etc? Anything I can use to back this stuff up so if I plan to go to a different rom, everything can come with me without any problems? (I guess it would take pretty long to download/install everything and synchronize the settings every time I flash a new rom).

Thanks in advance.