yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] madmack:
thats great. it seems you the patcher working now.

another note, samsung has decided to mess with DroidSansArabic.ttf in /system/fonts so if you are going to release this in VillainTweaks as a multi-file patch, then please make sure you use this font instead:

http://www.multiupload.com/01H00OD5KQ

I know its a mess, but its really not my fault as my patch has worked on so many other devices. Samsung decided to change the UNICODE chars in their international S2 which is giving me all of sort of trouble with my patch. Anyways, you should be good with that font I posted above. It was handcrafted by me for this phone. :)

If you got any other questions, I'll be more than happy to help.

I'd rather keep the ROM stuff your side given your expertise. This will allow me to focus on my patch and on the wekit problem !

thanks again

edit: website ? umm.. no, but if your phone boots with these files then arabic is rendered correctly in menus/text messages. the webkit is still undergoing some development here so the web browser will remain intact with the patch you've attached.
[Galaxy S II Android Development] pulser_g2:
OK. I'll look at this later on as I'm fixing VRTweaks to try and tell people what they've installed. Samsung are a right nuisance... They seem to break a lot of stuff.
[Galaxy S II Android Development] madmack:
couldn't have said it better.. i know this the hard way :rolleyes:
[Galaxy S II Android Development] EricB68:
I will restart the whole story with factory defaults and flash again to doublecheck what happened to the battery-drain

Eric
[Galaxy S II Android Development] madmack:
i'm suspecting my deodexed files. you're not the only one complaining about battery drain in 1.4
[Galaxy S II Android Development] pulser_g2:
Had a couple of people with battery drain on VR1.1

but equally, "Why is battery so good on your ROM? 10hrs, 4% drain... It was 1% per 4hrs when it was idling last night"

So it seems very strange... I had really horrendous drain for a few days, but I stopped SetCPU (on a stock kernel, I accidentally didn't uninstall it), and didn't use night mode via CF3D, and it was a little better...

FastDormancy off here. I'm still trying to get the bottom of it - might need to do a full wipe at some point, but seems a lot better here now.
[Galaxy S II Android Development] madmack:
that's good to know..

i've had these good battery feedbacks on another forum. Myself, i'm not entirely satisfied with the way battery is with 1.4. I'm not really sure why the drainage is high. I've uninstalled most of sammy's apks and haven't really fiddled with FastDormancy or SetCPU... but I still get this horrible battery drain..

it is especially evident when I'm browsing the web, i keep seeing the percentages drop like a mad man in the status bar :eek:

Hope you find a solution to it. No one complained about 1.3 which was based on your KE2 rom.
[Galaxy S II Android Development] pulser_g2:
OK. I'll take a look. I'm now running juiceplotter, to see what I can work out...
[Galaxy S II Android Development] oozrafa:
I've used the arabic mod on your ROM on my GS2... here are the files for you :)
[Galaxy S II Android Development] EricB68:
I did not had SetCPU installed anymore, BUT I still have SuperPower running with enabled CPU Scaling. I will try to switch it off, maybe it might help :)

Eric
[Galaxy S II Android Development] pulser_g2:
Got it booted. Pushing a four-part tweak on VRTweaks, for users of VR1.1.
[Galaxy S II Android Development] bu2askoor:
pulser & madmack @ all of those chefs working together to bring a solid rom for us.

i am sure i speak on behalf of many users : THANK YOU :)
[Galaxy S II Android Development] pulser_g2:
More than welcome :)

P
[Galaxy S II Android Development] shaolin79:
Try to remove AP mobile samsung application via root explorer ... it helps for me ...
[Galaxy S II Android Development] EricB68:
Did you made a list of which apks you removed?
[Galaxy S II Android Development] ahmadalani:
I am lost, for the second time. I want to know if pulser_g2 helped improve madmack's work or just packaged it to be included in his rom.

Please clearify
[Galaxy S II Android Development] pulser_g2:
Nah, I just used what madmack had made, but for VR1.1. You can find the discussion a few pages back.

Madmack prefers to work on his arabic tweak. He's not really wanting to try and maintain a rom too, so we figured it would be a good idea to reduce duplication (he was thinking about trying to rebase the arabic mod rom against VR1.1). By adding a version for Vr1.1, it means he doesn't need to mess around making and uploading another rom ;)

Tl;dr: madmack's files, working on VR1.1
[Galaxy S II Android Development] ahmadalani:
Can't thank you enough pulser_g2 for helping our hero madmack in this.
[Galaxy S II Android Development] AlRokayan:
I'm receiving an error message when I try to install any of the Madmack's Arabic Support Parts ..

The error message says: "Download verification failed" .. A screen shot is attached.

NOTE: I've successfully installed almost all the other tweaks.
[Galaxy S II Android Development] xenastro:
Just flashed 1.4 and everything seems to be working fine, I will be monitoring battery consumption and I will let you know if there is heavy drainage.

Thank you Madmack for the Arabic support, and thank you pulser for trying the files on your ROM, hope you can include these files in your future ROMs too :)
[Galaxy S II Android Development] pulser_g2:
Just checking it out right this sec :)
[Galaxy S II Android Development] pulser_g2:
Can you try it again now?
[Galaxy S II Android Development] AlRokayan:
Still I've the same problem :confused:

My device information is attached, maybe because of the kernel?
[Galaxy S II Android Development] pulser_g2:
Hmmm strange. Mine shows as installed fine here. I'll remove it and try again :)
[Galaxy S II Android Development] AlRokayan:
No good, I tried to re-install it and restart the device, but still facing the same problem! :confused:

pulser_g2, any advice? I would appreciate any?

Can I install them manually? if yes, can I have the file download links?

I have so far:

1- DroidSansArabic.ttf from http://www.multiupload.com/01H00OD5KQ

I need:

1- framework.jar

2- libandroid_runtime.so

3- libicuuc-arabic.so

4- libwebcore.so << Do I need it?

Or if you can just tell me how to extract them from "KE7-madmack1.4.tar.md5".
[Galaxy S II Android Development] bu2askoor:
i am also having the same issue. I will wait for a fix.

If you want to do it manually refer to: http://xdaforums.com/showthread.php?t=1063205

Good luck
[Galaxy S II Android Development] AlRokayan:
I've just re-flashed my GS2, then immediately installed the "SGS2-v1.3.0.apk" from http://www.villainrom.co.uk/SGS2/VRTweaks/SGS2-v1.3.0.apk .. but still no luck, I have the same problem >.> :confused:
[Galaxy S II Android Development] xenastro:
Had some problems with Gmail freezing, decided to install Villain 1.1 and try install the arabic 1-4 tweaks from VillainTweaks but getting the same error as AlRokayan, it says "Download verification failed".
[Galaxy S II Android Development] pulser_g2:
The files themselves:

www.villainrom.co.uk/SGS2/VRTweaks/arabicmod_libandroid_runtime.so

www.villainrom.co.uk/SGS2/VRTweaks/arabicmod_libicuuc-arabic.so

www.villainrom.co.uk/SGS2/VRTweaks/arabicmod_DroidSansArabic.ttf

www.villainrom.co.uk/SGS2/VRTweaks/arabicmod_framework.jar

You should rename to remove the "arabicmod_" from each filename. Should be obvious where they belong.

The .so files to /system/lib, and the ttf to /system/fonts. The jar to /system/frameworks/
[Galaxy S II Android Development] xenastro:
Installed the arabic support files as instructed in this post on top of Villain 1.1 ROM.

Everything seems to be working fine, I will post if I find any problems :)

Thanks again guys.
[Galaxy S II Android Development] madmack:
pulser, if I'm going to completely abandon this rom, you might want to also add an "arabic browser" option in your tweaks app. Please put a disclaimer on it though because its unstable at the moment (samsung's crappy missing source code is the culprit), so user discretion should be advised.

Once you got that sorted out + the stable framework.jar patch (with the font and .so files that you've posted earlier).. I can forget about madmack's ROM and start using yours instead.

You can get the latest libwebcore.so file from my [mod] thread.

thanks again !
[Galaxy S II Android Development] pulser_g2:
OK. I'm updating the VRTweaks app again tonight to properly support these files, and I'll add the optional browser for you, with suitable warning :)
[Galaxy S II Android Development] madmack:
Awesome. Thank you sir :)
[Galaxy S II Android Development] Busterwolf:
This sounds good you guys. Good luck.

Anyway to make the CRT effect work on madmack's? That'd be much appreciated.
[Galaxy S II Android Development] madmack:
you can always make crt/green bars/battery mods work on any rom. just make sure you get the correct deodexed SystemUI.apk files (or the framework-res.apk, which are identical in all ke7 releases).
[Galaxy S II Android Development] madmack:
pulser,

another thing. why don't you include the CSC files in your tar file ?

If its anything like what they used to be on the SGS1, then I think they include some regional settings and modem switches that you need to have in. This should also rule out the cause of the battery drain being a faulty modem configuration. You can use one of multi-csc files out there that cover multiple regions, but just to be on the safe side, flash all the files in the stock tar files except boot and Sbl. we don't need to reflash the bootloader for now.

type *#*#1234#*#* in your dialer and you'll see your rom giving Unknown for CSC due to missing files.

edit: you're also missing the modem file.
[Galaxy S II Android Development] pulser_g2:
Yep. I never put modems into ROMs. I'll be re-writing the instructions for install to reflect this radio now it's stable :)

Regarding the CSC, which files do I need? I don't want to bloat down the ROM with numerous CSCs for regions people don't use, but perhaps that's not worth it?

Am I correct in that a user can flash their own CSC over the top of a ROM, or should I use this "multi CSC"? If so, is that just the T9DB and whatnot I can add, or do I have to add the cache and hidden partitions to the tar?
[Galaxy S II Android Development] Busterwolf:
It worked! Many thanks guys.
[Galaxy S II Android Development] madmack:
I can only speak from my experience with the SGS. Yes, we are able to flash CSC files separately on top of existing ROMs.

I'm not entirely sure what hidden.img has. I haven't really looked into it and its new to me. the CSC file should be in cache.img and params is relatively small, so I guess it wouldn't harm to include that as well.

I don't really know what each file does exactly, but from experience, I used to lose certain radio frequencies if I flash a NAM(north american) modem with a european CSC. I had to put in a NAM CSC file to get the frequencies in check so I guess these CSC are more than just regional languages in swype.

In the end, the CSC file adds these stupid T9* folders in /system. I'm not sure if settings are read from these folders statically or if they're installed when the CSC file gets installed via recovery (like it currently does with stock roms after flashing via Odin).

I understand where you're coming from and that you want to keep things down to a minimum .. but seeing Unknown in my CSC: field makes me go eek :eek: so I'll just repackage your files for the time being for my personal use. You might need to spend some more time figuring out hidden.img and params.lfs
[Galaxy S II Android Development] pulser_g2:
OK. I know about param.lfs, not a place you want to go messing about with :p

I'm looking at CSCs just now... Got some big "multi csc" thing to look at :)
[Galaxy S II Android Development] shimi4:
Hi,

I flashed madmack's KE7 ROM today, and since then the market keeps crashing when starting to download.

Logcat shows some security exception talking about "is_public_api" equals to null... anyone encountered this?

I prefer avoiding factory reset, so if anyone can think of a way to fix it I would appreciate it :)
[Galaxy S II Android Development] ams84:
Why i cannot use headset??

Sent from my GT-I9100
[Galaxy S II Android Development] x10i_droid:
I factory reseted by phone but still market and web browser crashes. let us just wait for madmack to fix the issue. give the guy some time !! ;)
[Galaxy S II Android Development] shimi4:
Of course Madmach deserve many thanks for all of his efforts!

I was just asking to see if I'm the only one, or this is actually a ROM issue.
[Galaxy S II Android Development] madmack:
guys you might want to try version 1.3. it has less bugs due to proper deodexing.

Otherwise, I'm abandoning development on this rom for the time being in favor of working on more pressing things. You're very welcome to try out villain rom which should support arabic shaping as of late.

:)
[Galaxy S II Android Development] ams84:
did villain rom support arabic??
[Galaxy S II Android Development] madmack:
if not already, then in the process of.

it should be in the VillainTweaks app.
[Galaxy S II Android Development] pulser_g2:
It now has the 4 files plus optional webcore ;)
[Galaxy S II Android Development] RADLOUNI:
no luck

tried your ROM yesterday

after the rom installs, i install the tweaks apk and install the 4 tweaks in sequence without booting. When i get to the 4th tweak the phone hangs up and the TW4 crashes and then restarts

i check arabic to see if it works after that but the letters are disconnected :(

upon checking the 4 tweaks it shows that they are installed, but arabic is not working, strange................................

however, thanks a lot for your efforts to include arabic in your ROM, and i hope that you can implement the ARABIC mod correctly

just one more question: since i installed villain ROM, i am getting a message during boot after any ROM installation that the phone cannot access the system partition, how can i resolve this ???

Thanks
[Galaxy S II Android Development] pulser_g2:
Eh? If it cannoy access the system partition, how is the system booting and letting you know?

You need to install the optional tweak at the bottom of the list to get Arabic in Browser and Gmail. Until you do that, letters will not join up. Other apps will be fine. Give it a shot, but it's not 100% perfect (that's what madmack is working on iirc)
[Galaxy S II Android Development] taiseer999:
I confirm that it works fine installing all 5 files:)
[Galaxy S II Android Development] RADLOUNI:
correction

sorry i was wrong, it is not that the phone cannot access the system partition. The exact message is:

Installing multi-csc....

can't access to '/system/csc/xeu/system/'.

successfully applied multi-csc

apparently there is something wrong with the csc data, help please
[Galaxy S II Android Development] madmack:
from which rom are you coming from ? ke2 ?
[Galaxy S II Android Development] RADLOUNI:
ROM

from KE7

this problem happened when i flashed villain rom 1.1 then tried to flash back KE7
[Galaxy S II Android Development] pulser_g2:
doesn't sound like a showstopper tbh... If you flash a csc via odin it should fix it
[Galaxy S II Android Development] RADLOUNI:
XEU

do you have a XEU CSC that you can supply a link for

i do not have a XEU CSC
[Galaxy S II Android Development] RADLOUNI:
ideas

any ideas guys ?
[Galaxy S II Android Development] madmack:
nope.

10char
[Galaxy S II Android Development] soyef:
http://xdaforums.com/showthread.php?t=1075278

In the first post there is a link to the XEU CSC
[Galaxy S II Android Development] RADLOUNI:
tried it

Thanks pal

i flashed this CSC but problem still persists :-(

sorry to ask a noob question, but shouldn't everything be wiped out when you flash KE7 for example, why are there residual files still in the phone even after i flash new firmwares

isn't there a way to do a full format. I had previously a desire HD, and through clockwork you could format everything and start from scratch

Edit 1

I browsed the system folder using root explorer and there is no system/csc/xeu/system, there is only system/csc

Edit 2

i manually created /xeu/system folder under system/csc and the error message disappeared.....................strange, there is a reference for this location somewhere in the ROM but this location is not being used. I check xeu/system subfolder after reboot and no files have been written to it, it is still empty........................strnage again
[Galaxy S II Android Development] bu2askoor:
madmack,

i am sorry i haven't been following your posts lately. I Understand that you are abandoning developing the rom, but are u still working to improve the arabic support? I hope so :)

Thanks
[Galaxy S II Android Development] madmack:
correct :)
[Galaxy S II Android Development] soyef:
No odin wont wipe unless you set it up to wipe, if you do want to wipe juat boot into recover and wipe

Volume up+home+power for recovery
[Galaxy S II Android Development] madmack:
Update:

I always suspected either a) my build flags and configurations or b) the source code itself to be the culprit.

It seems to me now that neither of these are the real issues with the modified libwebcore.so file.

Here is a little experiment I did earlier today:

1. patched framework.jar to use all WebKit classes from AOSP. (that way, we remove the JNI dependencies from Samsung's libwebcore).

2. Used a GB AOSP libwebcore.so.

To my surprise, the system actually booted ! The Samsung browser had multiple crashes but that was expected due to their hard linking of JNI calls which no longer exist.

I fire up Dolphin HD which does use the libwebcore.so to render pages.. and after a few minutes.. BOOM.. crash ! wait, what happened ? why ?

Looking at the logcat, we see that libc.so libskia.so, libnativehelper.so, and libdvm.so are being responsible. The GB AOSP file crashes these (closed source, mind you) libraries.

What does that mean ? well, we have a buggy, wait, veery buggy libc et al.

The crashes happen mostly after you load up a couple of intensive pages, hence filling up the heap stack. libwebcore.so in Android uses Android's malloc and free commands, and these aren't been served correctly as far as I can tell.

Why does sammy's webcore work ? that's a good question. I've seen a couple of posts actually complaining that their webcore does crash even on stock samsung roms. The libwebcore file does include some sources from other libraries such as skia. I don't have the sources to these files by samsung so we're using AOSP functions. In theory, these should do the job since they allocate/deallocate memory independently or map to the shared library libskia.so without the need to see its source (dynamic linking). But I believe they've changed the dynamic table entries in libskia.so and so the couple of files that I'm including in libwebcore.so refer to invalid pointers in their custom libskia.so file.

I've compiled about a dozen libwebcores for different platforms/architectures and android builds. I've never seen such deep customizations (they're creating their own platform, really) that would break these custom webcores as Samsung have done in the SGS2.

I'm not that good with dynamic linking and relocating the calls to different pointers given by their custom libskia. I ran a quick check on their libskia.so file and it indeed requires 3 additional .so files that the AOSP build doesn't. That's fine if they keep the backward compatibility with older calls, but i guess not.. samsung has found a way to break that.

The other approach would be to hex edit the damn thing to include the shaping methods. I don't want to even begin thinking about that :rolleyes:

That's my little update and bad news.
[Galaxy S II Android Development] renegade:
A good analysis of the problem. I guess we might have to survive on what we have until Samsung releases our phone in the ME with proper Arabic support!
[Galaxy S II Android Development] geistteufel:
Hi, I'm geist, I will have a gs2 soon, I want to help

I have made a mirror for your roms :

http://qa.celogeek.com/android/mirrors/galaxys2

Enjoy (and don't forget to say thanks as indicate on the site)
[Galaxy S II Android Development] sul7:
I am experiencing bad battery performance. Battery meter drops even with minimal usage. I am using no brightness, disable all autosync, remove all widgets. but again that's not an option. The beauty of this phone is that you should enjoy all the features rather than disable them to save battery!

Also the battery never survive one day, regardless of how I use the phone. I have to charge everyday.

Any one experiencing the same problem and how they solve it.

Kind regards,

Sul
[Galaxy S II Android Development] AlRokayan:
I faced the same problem, I used JuiceDefender Ultimate with advanced option. Options are:

Note the Controls & CPU settings
[Galaxy S II Android Development] AlRokayan:
As what you can see from this pic I lost only 60% from 12 noon untill 2 after midnight :)
[Galaxy S II Android Development] AlRokayan:
Sorry I lost 40% not 60% :p
[Galaxy S II Android Development] SLtAR:
an official update has been released :P KE8
[Galaxy S II Android Development] geistteufel:
And where is it ?
[Galaxy S II Android Development] amjad_2020:
Thank you so so much :D
[Galaxy S II Android Development] bmw-boy:
I flashed ur rom but I notice most of the browser applications its freezing when I browse

Any ideas to solve this issue
[Galaxy S II Android Development] bu2askoor:
It is a known problem. U can use alternative browser like opera.
[Galaxy S II Android Development] abumhmmd1:
SGS2 & battery --- let's think quietly

There are many users who complain about the exchange's rapid battery of SGS2 , and there are those who feel the contrary, just like any,

the first day at work, communications , surf the internet in Wi-Fi and bluetooth headset connected always .. after approximately 5 hours of

battery 91% .. .. .. ie 2%/hr

And go to bed and the device by 60% .. .. .. Thanks GOD

But why should others suffer???

Reason - the service provider device FastDormancy . The aim is to ease the pressure on mobile networks and ease the pressure on the phone (battery), but the networks that support that feature are few worldwide , therefore the device remains in search mode for the service - high temperature and battery drain !!

Solution:

Use the phone and call

* # * # 9900 # * # *

Disable fast dormancy

TO

reboat . .. ...

I use this , it workes FiNE for me :)

THANKs to Taiseer999 - ce4arab

ENJOy
[Galaxy S II Android Development] TAEL:
Is disabling 'Fast Dormancy' permanent or we should try to disable it after any upgrade/flash?

Also, does it have any effect on our signal reception and anything related to that?
[Galaxy S II Android Development] Libbard:
My display take from 33 to 36% from battery using!!

How can I make it less then that

I don't use brightness and every thing in battery sitting is default.