yashsingh1/xdaforums huggingface dataset:
[Android] ClassicalDude:
Dear Dudy, I really need your help.

Back in the old days (a month ago), before your wonderful work, the best fix we had was Omri Baumer's StaticLayout fix. I was able to use the baksmali and the smali utilities to extract the smali file from framework.jar of CM, and graft it into ANY phone. Another user on the iAndroid forums created a script that automated everything.

I wanted to do the same with your fix. So I compiled a vanilla 2.1 and then applied only your patches, manually, and recompiled. I used baksmali to disassemble all the framework files, and discovered that the changed files were:

android/graphics/Canvas.smali

android/graphics/Canvas$EdgeType.smali

android/graphics/Canvas$VertexMode.smali

android/text/Layout.smali

android/text/SpannableStringBuilder.smali

android/text/Styled.smali

android/widget/TextView$CharWrapper.smali

The two additional Canvas files were tagged as changed, but no textual difference is evident. So altogether we are talking about 5 files that ideally would be easily grafted into ANY device running 2.1, without recompilation.

The problem was that the new Canvas.smali file caused boot loops on my HTC Desire. Logcat caught this:

D/AndroidRuntime( 103): --- registering native functions ---
W/dalvikvm( 103): Unable to register: not native: Landroid/graphics/Canvas;.drawText (Ljava/lang/String;FFLandroid/graphics/Paint;)V
E/JNIHelp ( 103): RegisterNatives failed for 'android/graphics/Canvas'
E/AndroidRuntime( 103): Unable to register all android natives

This did NOT happen when I tried the vanilla Canvas.smali. So it must be something in your patches. If you can help me figure out how to fix this, your fix will be easily implemented into any un-odexed 2.1 device. The script is all reworked and ready... Just this problem needs ironing out.

Thanks so much - for your wonderful work, and for taking the time to read this.

Ron
[Android] dudyk:
My changes add a native method (a C++ one) to the sources, from what I know, it is in the dex file, but maybe smali's files do not extract it, or extract it differently.

I never tried to disassemble files in android and reassemble them, so I have no idea how to help you besides describing the changes to you.

P.S.

Do you think that HebVillian is using my fix this way? I believe that I'm the first to fix this for ROMs above 2.0 (BTW, it's in the froyo branch of CM as well).
[Android] ClassicalDude:
I don't know about HebVillain. The maker of the rom was made aware of the way I patched StaticLayout, so it may well be. Perhaps he also read your thread and applied the actual patches...

I noticed that in one of your commits:

http://github.com/dudyk/android_fra...0aca31c3e03a5a323276cd15a8df4203a1792c#diff-5

You added "native" to drawText. It is exactly the function in that line that is throwing the error on boot - about not being native. I tried recompiling with that particular change reversed, but it did not make a difference. Can you investigate the matter? Perhaps the way the Nexus 1 boots is different than that of other devices, and the checks are not as strict. If this is indeed a code problem, perhaps it needs to be addressed for the patch to be viable for other devices.

Take everything I say with a grain of salt - I am no programmer. Just following what I read and understand.
[Android] ClassicalDude:
I have no idea if this helps, but googling the words

android registernatives

results in quite a few technical posts complaining about similar problems...
[Android] ClassicalDude:
I am sorry for being a nag. But I hope I am getting closer to the source of the problem.

The Android emulator was able to boot up just fine with the patches applied. The logcat stated at the beginning of the runtime:

D/AndroidRuntime( 29): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 29): CheckJNI is ON
I/ ( 30): ServiceManager: 0xad08
D/AudioHardwareInterface( 30): setMode(NORMAL)
I/CameraService( 30): CameraService started: pid=30

The very same smali files, when applied to the HTC Desire's framework, generated the native error I quoted before. But logcat shows that the beginning of its runtime is indeed different:

D/AndroidRuntime( 197): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 197): CheckJNI is OFF
D/dalvikvm( 197): Precise GC configured ON
D/dalvikvm( 197): creating instr width table
I/dalvikvm( 197): mlock: /data/dalvik-cache/system@framework@core.jar@classes.dex, fd=7

So - how do we make the Desire, or any other device, turn on CheckJNI and turn off precise GC?

EDIT: In one of CM's change logs it was written that Precise GC was turned off because of its memory consumption. I am just assuming that this is indeed the cause for my problems. How can we check it?
[Android] ClassicalDude:
CheckJNI and Precise GC don't matter.

Repatched and recompiled 2.2 source. The emulator runs beautifully with or without JNI checks. My HTC desire, with a 2.2 rom, still complains about the same function not being native.

The port dudyk did to Omri Baumer's patch works partially - the numbers are not reversed, but the whole line is aligned to the left (with hebrew text appearing to the left of the number, instead of the right).

I have no idea what else to do or to check.
[Android] PapaDocta:
i tried the latest cm6 nightly build and still it won't align Arabic RTL correctly.. it aligns it as LTR and there no reshaping as well....
[Android] slimfady:
Is it actually supposed to reshape Arabic?

I think it's just for alignment
[Android] PapaDocta:
You are correct it won't reshape Arabic and it won't align rtl for Arabic... it works fine for Hebrew tho
[Android] dudyk:
It does not reshape Arabic, but it should fix it for things like gmail.
[Android] PapaDocta:
and won't align Arabic RTL... on SMS all are aligned left..
[Android] ClassicalDude:
Despite my best efforts, I was not able to port this fix to the HTC Desire.

I concentrated my efforts on a different approach, which combined fixes from various sources. Hebrew speakers can now have the Desire work very well with almost all of the Hebrew issues resolved.

Follow instructions here:

http://iandroid.co.il/phpBB3/topic5375.html

I will still be delighted if dudyk's fix can be ported. Nothing beats open source.
[Android] dudyk:
It isn't made for alignment changes, they are something I'm still working on.

It fixes reverse character order in Gmail, Calendar, facebook photo cations and some other programs that use drawText instead of static layout.

The alignment will take longer, since they changed it a lot since 2.1 and I'm still figuring it out...
[Android] PapaDocta:
keep up the good work :)
[Android] Aziz Huss:
For Arabic reshaping, I have already developed an Arabic reshaper that I'm using in my applications in Android market (Mirsal, etc...).

If there is something I can help with please let me know especially if it is going to be used in CM.
[Android] PapaDocta:
nice to see you here you Aziz :)
[Android] dudyk:
If you can give me the reshaping code in a license that is compatible with AOSP (I want this in stock android, not just in CM) I believe I'll be able to integrate it.
[Android] Aziz Huss:
Thanks, good to see you here too

I don't know what you mean by "compatible with AOSP". I can provide you the code and I can customize it for this use
[Android] dudyk:
I meant using the Apache license, I'd like to submit my patches so they'll be in the next Android version, and you used the apache license, so I'll work on integrating your changes today.

PapaDocta,

I think I fixed the alignment, it should work for both Hebrew and Arabic, it's in my github: http://github.com/dudyk/android_frameworks_base/commit/a62e1e89b0397f670b25ecb982978530e2e073c8
[Android] PapaDocta:
@dudyk thank you so much for the hard work.. and i hope you can integrate the Arabic reshaping from Aziz's code... and if you want me to test anything just let me now :)

keep it up guys :)
[Android] DMzda:
Does this mean I can decompile CM6's framework, and copy over the .smali files to another ROM, and Arabic support will be fixed? (i.e. joined up) Or do I have to use CM5?
[Android] dudyk:
I haven't seen anyone that did that successfully,

I'm moving some code around to support reshaping, should be done in a few days. Do you know how to build CM6 from source?
[Android] PapaDocta:
no I haven't but as long as it's done under Linux, that won't be a problem I can do it
[Android] PapaDocta:
should i start downloading source off your git?
[Android] dudyk:
Cool, so you'll be able to be on of the first testers for the reshaping...

Right now it does not work properly since it was made to work when the text is from left to right, and not after it was made as right to left.

Aziz is supposed to give me a new version soon.
[Android] ClassicalDude:
Dear Dudy,

I was able to apply a fix to any 2.1-based Rom through the reworking of your code by erasmux at the iAndroid forums.

I am also able to do the same for 2.2, with your fixes to StaticLayout (including the recent one for the Froyo regression regarding the alignment).

One small problem remains: when you have a combination of numbers and punctuation marks, the punctuation marks appear to the left of the numbers, instead of their right. For instance:

טלפון: 03-123456​

appears as

: טלפון03-123456​

Notice the location of the space. I tried comparing different codes to see what made it work in 2.1, but really - I am clueless. Any chance you can look at the problem?
[Android] ClassicalDude:
In the meanwhile I compiled the 2.2 framework with the 2.1 StaticLayout.java (with Omri Baumer's patch), and together with erasmux's adaptation of dudyk's drawText patch - the Hebrew is perfect.
[Android] slimfady:
So has the Arabic reshaping already been integrated into AOSP or CM?
[Android] PapaDocta:
nope.. not yet :(
[Android] slimfady:
@dudy

Remember the numbers bug I reported earlier where the numbers would be reversed if they had a dot in the middle?

It does not appear to happen at all in the native messaging app (been using handcent).

Where you able to integrate reshaping into libwebcore? This seems to be the last remaining step to have full reshaping support in CM
[Android] TheAgent1982:
Hebrew Support

Where can i get it to test it, please?

As, apk file to run...
[Android] ClassicalDude:
Since you are Israeli, just go here:

http://iandroid.co.il/phpBB3/topic5657.html
[Android] fduraibi:
Thank you dudyk, aziz and everybody who works on this.

Dudyk, does that mean there is no arabic support until now in the current CM releases? I have the Samsung Galaxy S Vibrant, and CM development for that device is in progress and I was hoping that it has the reshaping already!

Could anyone clarify please?

Since will all the existing codes around it seems that we just need it to be integrated.

Finally, i will be glade to help in anyway or test on my device. I am not a java programmer but i some C programming and use linux systems a lot so compiling should not be an issue.
[Android] dudyk:
Basic reshaping is available in CM6.

Now my priorities have changed since I got a captivate, and I want to support it before the shaping changes.

Send from my Samsung Captivate
[Android] malik_8993:
can yo help me for the bidi RL support for arabic
[Android] M_A_S:
كس أم أسرائيل
[Android] M_A_S:
ياقحبه فرحان حاط علم بلادك ؟ كس أم أمك ياقليل الأدب يا أبن الكلب تفوو عليك وعلى أهلك ياحرامي يامخنث منيوك
[Android] fduraibi:
لوسمحت اخي انا مقدر غيرتك لكن يجب ان ترتقي وتترفع عن التلفظ بمثل تلك الكلمات

وليكن الرسول محمد صلى الله عليه وسلم قدوة لك في حسن الخلق و اسلوب التعامل مع عامة الناس

اصلحك الله
[Droid Incredible Android Development] opcode1300:
Get them at http://hydrakernel.net
[Droid Incredible Android Development] DigitalDementia:
Has anyone tried this yet?
[Droid Incredible Android Development] DigitalDementia:
doesn't work SETcpu can't read it.
[Droid Incredible Android Development] ihtfp69:
Does it break anything? ;) This should allow us to do adb remount too, right?
[Droid Incredible Android Development] opcode1300:
It 'should'..

I did get into adb/recovery and loaded the new recovery. it looks like it flashed. but on reboot...

ro.secure=1

so I am guessing my update script failed.
[Droid Incredible Android Development] opcode1300:
script

assert(file_getprop("/system/build.prop", "ro.build.fingerprint") == "verizon/inc/inc/inc:2.1-update1/ERE27/161493:user/release-keys" ||
file_getprop("/system/build.prop", "ro.build.fingerprint") == "verizon/inc/inc/inc:2.1-update1/ERE27/161494:user/release-keys");
assert(getprop("ro.product.device") == "inc" ||
getprop("ro.build.product") == "inc");
set_progress(1.000000);
ui_print("Writing boot image...");
write_firmware_image("PACKAGE:boot.img", "boot");
set_progress(1.000000);

*edit*

looks like the update script is the issue. (p.s I miss fastboot ;) )

// write_firmware_image(file, partition)
//
// partition is "radio" or "hboot"
// file is not used until after updater exits
//
[Droid Incredible Android Development] ihtfp69:
Try this in recovery:

adb push ./boot.img /sdcard

Then, open a shell to your phone via 'adb shell', get root, and do the following two commands to flash your new boot image:

# cat /dev/zero > /dev/mtd/mtd2
write: No space left on device [this is ok, you can ignore]
# flash_image boot /sdcard/boot.img
[Droid Incredible Android Development] opcode1300:
Backup..

cat /dev/mtd/mtd2 > /sdcard/mtd2.img

do we have flash_image?
[Droid Incredible Android Development] ihtfp69:
Yes, sorry. I took that for granted. Here is the revised instructions. I attached flash_image.

Try this in recovery:

adb push ./boot.img /sdcard
adb push ./flash_image /sdcard

Then, open a shell to your phone via 'adb shell', get root, and do the following two commands to flash your new boot image:

adb shell
$ su
# /system/bin/cat /sdcard/flash_image > /system/bin/flash_image
# /system/bin/chmod 755 /system/bin/flash_image
# /system/bin/cat /dev/mtd/mtd2 > /sdcard/mtd2.img
# /system/bin/cat /dev/zero > /dev/mtd/mtd2
write: No space left on device [this is ok, you can ignore]
# /system/bin/flash_image boot /sdcard/boot.img
[Droid Incredible Android Development] opcode1300:
that didnt work.. resetting...... try again tomorrow

the kernels good. just getting it installed...
[Droid Incredible Android Development] ihtfp69:
Tried this. Any ideas?

android-sdk-windows\tools>fastboot flash zimage boot.img
sending 'zimage' (2272 KB)... OKAY [ 0.344s]
writing 'zimage'... INFOsignature checking...
FAILED (remote: signature verify fail)
finished. total time: 0.766s
[Droid Incredible Android Development] coolbho3000:
Fastboot does not do anything if you are not on an engineering SPL.
[Droid Incredible Android Development] DigitalDementia:
So I know this doesn't have much to do with this kernel buuuut for some reason last night in SetCPU the only thing I could adjust was idle speeds updated SetCPU and have access too the full bit? Max says 998400 min 24500... hmmm? Any ideas?
[Droid Incredible Android Development] adrynalyne:
How do you know if the kernel is good if you cannot flash it? I compiled a kernel as well and got it installed but it stuck my phone at the HTC logo...
[Droid Incredible Android Development] opcode1300:
I used the same build setup i've used for the mytouch. and got no errors building it
[Droid Incredible Android Development] B-dub25:
shouldnt you make the script ro-secure=o not 1? so it would unlock the nand?
[Droid Incredible Android Development] opcode1300:
I did. but on reboot it still shows as =1. so i assume the flash failed
[Droid Incredible Android Development] ihtfp69:
I have never done this before but is it possible to just copy the kernel on our phone, unpack it, edit the default.prop and repack it? I don't have Linux or I would try it myself. Check out this wiki. It explains how to do it. It seems easy enough for someone who knows how to compile a kernel.

http://android-dls.com/wiki/index.p...s#Flashing_your_new_image_back_onto_the_phone
[Droid Incredible Android Development] opcode1300:
this is the process i used to unpack the ramdisk and edit the default.prop and repack the ramdisk and the new kernel
[Droid Incredible Android Development] B-dub25:
i`ll give it a shot my friend is really good at kernels so i`ll have him look at it to
[Droid Eris Themes and Apps] droidkevlar:
You can thank stephen730 for me removing all my work. Tired of jackass's
[Droid Eris Themes and Apps] abn75:
Thanks man, gonna put the signal icons on mine now :)
[Droid Eris Themes and Apps] JrzDroid:
Kevlar, it looks awesome
[Droid Eris Themes and Apps] jonathanphx1:
Kevlar,

Looks great installed on v12 Does this only work on Aloysious roms. I tried to put it over sense able said not enough memory funny thing is I have less internal memory on v12 and it installed fine.
[Droid Eris Themes and Apps] droidkevlar:
Re: [MetaMorph] Kevlar Mash (Aloysius v9-v12)

I think only works for sprint based ports cuz of file names. It doesn't replace whole file, just a few inside.
[Droid Eris Themes and Apps] ljbaumer:
locksreen looks tight
[Droid Eris Themes and Apps] droidkevlar:
Found an error with it. It didnt update signal bars. Updated and reuploaded. Its same file name. Next release I am working on is new Rosie and if possible, time removed from status bar. I am learning, so bare with me.
[Droid Eris Themes and Apps] droidkevlar:
So please bare with me on this. This is all new to me. v02 fixed the issue where not everything in the taskbar was updated as well when you hold down the power button. There are a few new icons there as well.
[Droid Eris Themes and Apps] droidkevlar:
added thm version for those using the old version of MM. From now on, I will upload both versions.
[Droid Eris Themes and Apps] reinert012:
i PMed ya Kevlar
[Droid Eris Themes and Apps] SoCalSpecialist:
good **** bro!

congrats on ur first release
[Droid Eris Themes and Apps] droidkevlar:
Updated. Will be making a special version just for Aloyius snow in the next few hours.
[Droid Eris Themes and Apps] droidkevlar:
OK. Added sn0w version as well for those of you on Aloysius Snow. I should be done with this for a while. Hope yuo guys enjoy!
[Droid Eris Themes and Apps] raphifix:
Can you post a link to the .xml version of Version .02? Thanks ;)
[Droid Eris Themes and Apps] droidkevlar:
Sorry bout that. Dont know why it didnt carry over. First post now has a working link. You could use v03 as well and just not apply the .jar part of it so that it leaves the clock in the task bar.
[Droid Eris Themes and Apps] raphifix:
Great thanks! Good work! :D
[Droid Eris Themes and Apps] Ev3rM0r3:
Your packages won't install, ssays there not certified when trying to install them. This is from the boot loader on my phone not from adb. Or is adb required. Either way when i get home i can just download the apk's from my phone redo the files and resend them which is the long way to do this but I can't be the only one who is having trouble.
[Droid Eris Themes and Apps] droidkevlar:
This is not a flash update, hence the title, MetaMorph. You must use that app to install this theme and any other theme for Metamorph. There is a free version on the market. FYI, there are not apks in here. That is not how MM works.
[Droid Eris Themes and Apps] Ev3rM0r3:
Well the files are the same, and im assuming it replaces them just as i would on the computer. I would just do it through adb if i was home.
[Droid Eris Themes and Apps] Ev3rM0r3:
And there doesn't seem to be a free version on the market any longer only the paid app.
[HD2 Windows Mobile 6.5 Themes and Apps] niteowl360:
Since I am from South Africa, here is a World Cup Analog Clock.

Thanks to Franwella (initial interest), Ovi (used his awesome Hero clock as a base), Kangmas (cfg_gui tuition to make this possible).

Thanks to Rat_2665 for assistance with Creating Cab file.

Instructions for World Cup Clock

1. Install Original CHT Analogue Clock

2. Replace 20F62884_manila with the manila file attached (back up first)

3. Soft Reset

Instructions for Mini Cooper Clock

1. Install MiniCooper_Analogue Clock.cab

Restart Sense

3. Enable second hand in CHTE options if desired.

NB CHT Retractable Slider Mini Cooper images included in cab file.

Tested on CHT 1.8.5

PS The cup will be added when we win it on the 11th July :)

With digits 5, 6 and 7

Without digits 5, 6 and 7

Uploaded with ImageShack.us

Better alignment to exact time now in new manila file in zip folders.

Android on the HD2 ...

Uploaded with ImageShack.us

The analogue clock is designed to go with the wallpaper.

Position and size the clock to fit the background.

The zip file contains manila files for clock and CHT retractable slider.

See post #11 for android manila clock files and wallpaper.

Android on HD2 thread

http://xdaforums.com/showthread.php?t=719646
[HD2 Windows Mobile 6.5 Themes and Apps] Franwella:
Great job! Looks fantastic!

I have also put a link to your thread here. :D
[HD2 Windows Mobile 6.5 Themes and Apps] niteowl360:
Thank you Franwella. It was your helpful initial post that led me to giving this a bash.

Much appreciated.
[HD2 Windows Mobile 6.5 Themes and Apps] Franwella:
Ooops, I messed up the link in my previous post. Sorry about that.

The link is there now :)
[HD2 Windows Mobile 6.5 Themes and Apps] Shum97:
Nice1, thank you :)
[HD2 Windows Mobile 6.5 Themes and Apps] niteowl360:
Thanks for your comment

Sure thing Shum97, pleased you like it.

From your avatar, are you also from SA.

If so, here's holding thumbs for 4pm today.

Tall order though!

Cheers
[HD2 Windows Mobile 6.5 Themes and Apps] niteowl360:
Mini Cooper Clock

Uploaded with ImageShack.us

With digits 5, 6 and 7

Without digits 5, 6 and 7

Uploaded with ImageShack.us

Manila files in post #1.

Alignment now fixed to give exact time.
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
Congrats, this is creative and fun! My wife is a Mini driver, she´ll love this!
[HD2 Windows Mobile 6.5 Themes and Apps] dobknobby:
Great Work!

Love them both!
[HD2 Windows Mobile 6.5 Themes and Apps] niteowl360:
Thanks tictac. I had one of the first Pepper White Mini's till my wife made me get rid of it, as everywhere we went as a family, we had to use her car. :)

It was great fun while it lasted :D

I have posted the Wallpaper without Sense items.

If you really like the 'reflections' to the quicklinks in the mirror, PM me and if you send me your default quicklinks I can add your own ones for you.

Cheers
[HD2 Windows Mobile 6.5 Themes and Apps] niteowl360:
Thanks Dobby. Pleased you like them. I had to do another one, since SA left the World Cup fairly early :(
[HD2 Windows Mobile 6.5 Themes and Apps] niteowl360:
Android soon on HD2

With this finally looking to be a reality (refer link below), here is my today screen and clock in anticipation ...

Uploaded with ImageShack.us

The analogue clock is designed to go with the wallpaper.

Position and size the clock to fit the background using CHTE.

The zip file contains manila files for clock and CHT retractable slider.

Android on HD2 thread

http://xdaforums.com/showthread.php?t=719646
[Touch 3G General] test004:
there is one number from yesterday that keep calling me and when im answering he/she close it..

i have called him back but he still close it

what i have to do :/

call my phone provider and ask info about the number? will they give me?

or is better to ban him from my phone?

if there is one option like this how can i do it?
[Touch 3G General] Wolves4Ever:
how about ignore it
[Touch 3G General] azahidi:
Yeah.. you can just press the red button whenever that number pops up.

Or you can request incoming call barring from the network provider, usually available.
[HD2 Windows Mobile 6.5 Themes and Apps] venomhtchd2:
Hi Guys I am a newbie here, Im just wondering if anyone can make an ambigram generator for WinMo6.5 (HTC HD2) please. I heard its available

in iphone/ipod. Thank You So Much in advance.. :D
[Desire General] zerocul:
did anyone notice that android does not support pinch to zoom and move the object simultaneously? the only way is to finish pinching and then move.
[HD2 Windows Mobile 6.5 Themes and Apps] vikramdhani:
I was wondering if there is a way to add more channels to the applications ?