yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] mbrad_26:
Thx for this. God bless men with knoledge:-)

Cheers
[XPERIA X10 Android Development] mootmaina:
I have the same question. If I dont notice anything and it drains the battery then im avoiding this.
[XPERIA X10 Android Development] mbrad_26:
First install Jit and go to time-mediascape to see how fast your device has became. Also run Linpack and Quadrant before and after. Second: Jit Compiler was created to do more with less, meaning more speed with less resources (RAM+CPU+BATERRY JUICE). JIT is one of the reason that everybody wants Froyo.

Cheers
[XPERIA X10 Android Development] th4r:
NP mate :-)
[XPERIA X10 Android Development] nagrockz:
quadrant score is 717..

but im observing heavy battery drain..

looks like i gonna reflsh again..
[XPERIA X10 Android Development] winnerzero:
@curious_yellow_eyes was using aniPet Koi and also tried all the other aniPet wps...goldfish, aquarium...none of them worked with JIT...thanks for the 2010 koi one, but after this i think i'll just keep away from live wallpapers cos it seems they drain the battery pretty damn fast...

has anyone else experienced the app drawer opening real slow sometimes? Also, just noticed that after running JIT v2, I lost about 40% of my photos that were stored on my SD card...also lost some photos that were taken using the phone...this was weird cos it seemed to randomly delete some photos...
[XPERIA X10 Android Development] mbrad_26:
Can you explain that more en detail pls.
[XPERIA X10 Android Development] elacu:
With Optimiser V002​

Without Optimiser V001​

Stock 2.1​

Sunspider = 3994 ms​

Sunspider = 11 348 ms​

Sunspider = 22 756 ms​

Linpack = 17,578 MFLOPS​

Linpack = 9.73 MFLOPS​

Linpack = 7 MFLOPS​

Neocore = 28,8 FPS​

Neocore = 28,8 FPS​

Neocore = 27,7 FPS​

NenaMark1 = 21,9 FPS​

NenaMark1 = 21,8 FPS​

NenaMark1 = 17 FPS​

BenchmarkPi = 1117 ms​

BenchmarkPi = 3533 ms​

BenchmarkPi = 2727 ms​

Quadrant = 770​

Quadrant = 705​

Quadrant = 555​
[XPERIA X10 Android Development] nagrockz:
sure bro

what i observed after optimising was the phone was very responsive and too good at speed..

but the drawback

previously it used to drain at a rate of 1 or 2 percent per hour for moderate usage but now battery drains 6 percent per every hour even on mod usage!
[XPERIA X10 Android Development] saltorio:
Great comparison. Jerpelea should post that to the OP as an example of the performance differences achievable.
[XPERIA X10 Android Development] nagrockz:
could me please tell me the benefits we get with an increase in benchmark neocore and all those things?
[XPERIA X10 Android Development] Pawnty:
So I ran the JIT enabler from v002 and now Busybox won't install. I've uninstalled Busybox installer and reinstalled it via the market and when I run it it says:

Your phone is rooted

BusyBox was not found!

The application failed, either because your device is not nand unlocked or we were unable to remount. Please use logcat at this time, get it from the market, to send a log to StericDroid@gmail.com

How do I fix it so Busybox will install? I swear I remember reading something somewhere in this thread about manually deleting busybox files but I can't seem to find it anymore. Any help would be appreciated :)

~Pawnty
[XPERIA X10 Android Development] ttxdragon:
run the normal superoneclickroot again.

Nothing else will fix it.
[XPERIA X10 Android Development] nagrockz:
well you should consider consider yourself lucky then..

dont understand what went wrong for me..

battery sucks a lot after jit
[XPERIA X10 Android Development] rvictorg:
th4r's toggle method anyone?

Hasn't anyone tried th4r's toggle script yet?? It seems to be a lot simpler and you don't lose root access or anything.

I'm still a little skeptical to try this after all the reports of poor battery life and crashing after enabling JiT, but it's awfully tempting and th4r's method appears to be easily reversable.

**EDIT 1: couldn't wait any longer before attempting this...

Quadrant scores:

Initial ~532 ave.

Final ~540 ave.

Disappointing result to say the least, and yes I've run it about 5 times and rebooted my phone a couple just to be sure. I used the Terminal Emulator app and ran all the commands directly on my phone, everything worked fine and I didn't lose root or anything like that. So many thanks to th4r and Jerpelea! :D you guys rock

It may be a placebo effect, but everything seems to be a bit smoother and faster despite the marginal improvement on my Quadrant score.

**EDIT 2: So after being disappointed with my results last night I tried running th4r's script again in addition to updating Busybox and viola! Problem solved, just scored 757 on Quadrant and 17.454 on Linpack! Phone is definitely running quicker now, noticeable in most applications as well as ADW. Will report back if I experience any of the battery life issues others have been complaining about.
[XPERIA X10 Android Development] Pawnty:
that didn't work for me... I'm just going to live without root until Rogers gets the proper X10a rom out and I'll reflash to that and give it another go later.
[XPERIA X10 Android Development] BULL3TPR00F:
i got a quadrant score of 756 on the 2nd run through, that was the best i got. running v2
[XPERIA X10 Android Development] Chillaxed:
im suprised you guys all use task managers, i use minfree manager. it uses android's default task killing service, except i raise the last 3 values to 150,200,and 250 and the phone hardly ever dips below less than 100mb of free ram, if i run a game or something for a long time it will kill everything in the background for me (android's doing it, minfree just uses root access to change android's default values alot higher)
[XPERIA X10 Android Development] wiedz:
I haven't got any crash after jit v002.

About the battery drain, use setcpu to set the CPU max speed to lower when idle.

With all social network and exchange sync, it's
[XPERIA X10 Android Development] curious_yellow_eyes:
Does this work? I used seePU (when we were on donut) with and without setCPU and couldn't discern any difference. The CPU appeared to slow itself regardless.
[XPERIA X10 Android Development] Sahandroid:
Can anybody confirm that the phone is noticably faster with this optimization?
[XPERIA X10 Android Development] mbrad_26:
You dont know how to read???? Man...you're one laise M***** F*****:mad:

Cheers
[XPERIA X10 Android Development] Galaxea:
JIT not worth the battery issues

----

Already using setCPU and still no difference. I am going to use Th4r's script to undo the JIT until someone can fix or explain the battery problem.

I lost 22% battery last night in Airplane mode..... instead of usual 1% (seems to be average during the day so maybe only a problem with Airplane mode?????)

There is no huge discernable difference to the phone (small noticeable speed increase but not enough to justify the battery problem) so I would prefer to have my amazing battery life back.

Looking forward to being able to run the script as a one-click app on the phone to enable/disable JIT, instead of having to type into the terminal.... Someone please work on this.

PS: I have noticed a few apps that don't seem to be working as planned since JIT but I may be wrong, and no-one else has complained yet so take this with a pinch of salt...
[XPERIA X10 Android Development] yeahyeahyeah1981:
Hey quick question and it might seem lame.... Im about to ppop a new memory card in my x10. Will this mess with the JIT enabling? Ive already enabled it and am enjoying it immensely so i don't want to have to hassle with redoing it all.
[XPERIA X10 Android Development] Astral07:
that's a good question, i'm about to do the same thing but i guess i'll just copy the files to the new card before i put it in, shouldn't be a problem afaik
[XPERIA X10 Android Development] _Hiko_:
Hello, I already applied Jit V1 so I run some parts of script V2 like this (line by line):

@echo ********************************

@echo * Start scrpit by login *

@echo ********************************

@pause

ADB shell

su

mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system

@echo ********************************

@echo * Backup file	*

@echo ********************************

@pause

#cp /system/bin/dalvikvm /sdcard/dalbk/

cp /system/bin/dexopt /sdcard/dalbk/v2/

cp /system/bin/logcat /sdcard/dalbk/v2/

#cp -f /system/lib/libdvm.so /sdcard/dalbk/

#cp -f /system/lib/libnativehelper.so /sdcard/dalbk/

cp -f /system/lib/libcutils.so /sdcard/dalbk/v2/

cp -f /system/lib/libdl.so /sdcard/dalbk/v2/

cp -f /system/lib/liblog.so /sdcard/dalbk/v2/

cp -f /system/lib/libm.so /sdcard/dalbk/v2/

cp -f /system/lib/libz.so /sdcard/dalbk/v2/

@echo ********************************

@echo * Run COPY file	*

@echo ********************************

@pause

cp -f /sdcard/jitv2/dalvikvm /system/bin/

cp -f /sdcard/jitv2/dexopt /system/bin/

cp -f /sdcard/jitv2/logcat /system/bin/

chmod 755 /system/bin/dalvikvm

chmod 755 /system/bin/dexopt

chmod 755 /system/bin/logcat

cp -f /sdcard/jitv2/libdvm.so /system/lib/

cp -f /sdcard/jitv2/libnativehelper.so /system/lib/

cp -f /sdcard/jitv2/libcutils.so /system/lib/

cp -f /sdcard/jitv2/libdl.so /system/lib/

cp -f /sdcard/jitv2/liblog.so /system/lib/

cp -f /sdcard/jitv2/libm.so /system/lib/

cp -f /sdcard/jitv2/libz.so /system/lib/

#cp -f /data/tmp/build.prop /system/build.prop

chmod 644 /system/lib/libdvm.so

chmod 644 /system/lib/libnativehelper.so

chmod 644 /system/lib/libcutils.so

chmod 644 /system/lib/libdl.so

chmod 644 /system/lib/liblog.so

chmod 644 /system/lib/libm.so

chmod 644 /system/lib/libz.so

chmod 666 /system/build.prop

sync

rm -r /data/dalvik-cache/*

reboot

I have also frozen applications with titanium backup and I wondered what means : "deletes All IME and replaces them with Motorola IME" ?

what is IME ? a keyboard ?

what is this motorola-q-ime.apk ?
[XPERIA X10 Android Development] nagrockz:
wats thr4s script?
[XPERIA X10 Android Development] -JFK-:
Hello,

I have follow all step and it work but I have lost the keyboard...

Did someone can send me the French keyboard apk (standard one) ?

Thank you in advance
[XPERIA X10 Android Development] oversim:
#debug.sf.hw=1

As far as I know this option controls the way the OS renders the UI

hw=0 Uses the CPU to render the UI and hw=1 Uses the GPU to render the UI

Leave it to 1 !

So, no debug are disable :)

#kernel.log=default

Commenting this line the kernel.log is setted up to default log level.

And it's the log level this set try to set ;)

So, It's no necessary.

Try yourself with a dmesg command...

Thus, I really do not kown how stopping android linux kernel al all!

I'm investigating about it... :(

Conclusion: vm heap size really help, JIT, too! But theese two settings....
[XPERIA X10 Android Development] RaDi:
HI ,

i have some qus. can any one help me :

if i do this , when sony put new software , can I update ?

i see in the 1st post that we will got motorula IME what about our IME ? did we lost them ??

if i update my phone with SEUS i will lost this opitimis ??

and how to use this on my phone !!!!!????

thanx
[XPERIA X10 Android Development] th4r:
Here is my script ;)

http://xdaforums.com/showpost.php?p=9098421&postcount=434

Regards.
[XPERIA X10 Android Development] tuxStyle:
Because a lot of people have problems with rerooting or applying the optimization decided to make it easier.

Well, the second reason i did it is: i don't have a usb cable so, can't use ADB.

What is included:

- EGL drivers

- JIT

- heapsize 32/kernel logging disabling

EGL driver and JIT come from jerpelea.

The HowTo :)

To make it easier, you have two options for each step.

Feel free to use the one which is easier for you.

First of all, I'm not responsible if something happens to your phone!

You need

- Rooted phone with su working

- GScript or terminal from market.

Install Optimizer.

Two ways to do it:

- unzip Optimizer.zip on your computer, mount the SDcard and copy the Optimizer folder to SDcard (should be in root of the sdcard)

- put the file on phone via dropbox, awesomedrop, etc. and use a file manager to extract it in the root of SDcard.

Now, make sure your SDcard is not mounted (if you used the first option)

Use the Optimizer.

As usual, the two ways to do it:

- use GScript from the market. What you have to do first is:

1) copy the scripts from /sdcard/Optmizer/scripts to /sdcard/gscript using a file manager.

2) load all the scripts (all of them need root so, make sure su is checked). To load a script use "menu" key -> Add Script.

3) click a script to run it.

- use a terminal. Open terminal and type:

su
cd /sdcard/Optmizer/scripts
sh <scriptname.sh>

Now, you have multiple options :)

1. opt_enable.sh/opt_disable.sh

Enable/disable optimizations (heapsize and disable kernel logging)

2. jit_enable.sh/jit_disable.sh

Enable/disable JIT

3. egl_enable.sh/egl_disable.sh

Enable/disable egl drivers

To verify what script is applied you can use the check.sh script.

After enablig or disabling something, you have to reboot your phone (reboot.sh script is provided)

You won't loose root and it works for any version of X10 (the build.prop file is modified on the fly)

In /sdcard/Optimizer/backup you will have the original files.

Don't delete them, they will be used to disable the features.
[XPERIA X10 Android Development] -JFK-:
Hi,

Did someone can send me the French keyboard apk (standard one), I have not read all and so I have lost all keyboards...

Thank you.
[XPERIA X10 Android Development] oversim:
Great job!!!!

Thus, my questions still remain..
[XPERIA X10 Android Development] MarylandCookie:
Nice tool tuxStyle! Just dont like the auto closing window in GScript as i like to see everything :)
[XPERIA X10 Android Development] tuxStyle:
Well, if you click on the window it should cancel the autoclosing.

Basically the shell scripts create directories and make backups (if not already made), copy files and use grep to check if features are already added and sed to edit build.prop on the fly.
[XPERIA X10 Android Development] tuxStyle:
I just reimplemented the steps from jerpelea's adb script.

Didn't study what the options are doing as my laptop is dead and now i'm at work.

I'll try to stay here after work and see what can i do.

Anyway, i commented the code or debug.sf.hw=1 in my scripts for now.

I'm not sure how important it is but i found this post: http://forum.pocketables.net/showpost.php?p=56882&postcount=4

EDIT: and this one http://android.modaco.com/index.php?s=&showtopic=319063&view=findpost&p=1423141

So, this might be the reason some people have battery drains after using this optimization

EDIT2: and i hate the damn sh from busybox...

i can't use arrays so, i have to use strings for the lists ...

this is why i didn't upload my cleanup script.

will be too hard for average Joe to manage the app list.

EDIT3: the thing is, i don't know if is possible to disable kernel logging entirely but setting it to error or fatal will at leas make it log less.

No idea how this will improve the speed but i'll give it a try in my lunch break :)
[XPERIA X10 Android Development] oversim:
tuxStyle , don't worry to much about this :)

I think theese settings depend to driver in the kernel layer...

We can try to set them otherwise, but if "under" aren't supported..

Thus, debug.sf.hw=1 I think it's the best setting, but I have to test it deeply.

edit: yes, I read the post ;)
[XPERIA X10 Android Development] mattiL:
@th4r

Thank's for the scripts, I removed the mod of build.prop to keep kernel logging, I kind of like kernel logs..

In fact, I removed build.prop completely from being copied, and changed it manualy on the phone from 24m>32m.

1st Quadrant result: 714

Brilliant !!!
[XPERIA X10 Android Development] Bialynia:
What version of jerpelea's JIT does this toggle, the first or the second?
[XPERIA X10 Android Development] Bialynia:
This is brilliant! My phone would always become unresponsive once my RAM dropped to below 30, it sits at around 50 no matter what I throw at it now, always responsive. You should start a thread about this app, it helps more than JIT.
[XPERIA X10 Android Development] HunteronX:
Thanks, tuxstyle!
[XPERIA X10 Android Development] th4r:
The second one
[XPERIA X10 Android Development] Titanium87:
+1 :d
[XPERIA X10 Android Development] Bialynia:
Works great, thanks bud!
[XPERIA X10 Android Development] tuxStyle:
Looking at benchmarks, with Froyo, X10 will kick the crap out of Galaxy S in terms of raw performance :eek:

Still, doesn't have hardware divx, MT or 16mil colors but if with 2.1 && JIT we get those scores (i get between 680 and 720) with 2.2 will be super.
[XPERIA X10 Android Development] akila87:
I uncommented it and check the benchmark there is a little (or no) difference, but angry bird so slow when this is enabled (uncommented).
[XPERIA X10 Android Development] MarylandCookie:
I know what they do lol... i had a peek at the scripts, just wanted to watch the terminal in action :)
[XPERIA X10 Android Development] mattiL:
@jerpelea, sorry, I forgot to thank you..

Thanks !

:):):)
[XPERIA X10 Android Development] xeviro:
Please remember that if you changed the way Android terminated apps and service on low memory request, services that you use may not be restarted (Android have a capability to restart services that ends unexpectedly). So such as your instant messaging app will be killed when the app is in background, or your email pulling service. And some service may depend on other service will also be killed then will not be restarted as well.

But its true it will give your more extra memory most of the time.

The slowness you feel is actually Android doing garbage cleaning, which is normal in JVM and DalvikVM, and its the same like if you open a very large file like photo or video for editing, then your Windows starts to move your memory content to virtual swap file.

But anyway, please do and try experimenting with you phone anyway :D i just pointing what happens inside Android if you changes the settings.

Increasing heap size also doesn't mean it will give you surplus memory without side effect. As your increase the heap size, the longer it takes to do garbage cleaning as well. Increasing heap size too much will make your app starts slower, but run faster, and in certain time you can feel the garbage cleaning take its time working.
[XPERIA X10 Android Development] mbrad_26:
Advise me pls:

Now i have V2 instaled by Jerpelea metod and i want to run this script.

Is it safe to run this script over v2 allready installed in my phone??

Cheers
[XPERIA X10 Android Development] Titanium87:
Yes it is :)
[XPERIA X10 Android Development] mbrad_26:
Thx man:D

Cheers
[XPERIA X10 Android Development] wenscan:
Hey

Ok at first i want to say i dont want to read now 49 sites to get maybe this answer what i need for a german Forum.

Please forgive my bad english but i try my best

Ok i have some questions about this nice thing here.

I have a mini Pro is it imposible to use it with the minis?

Because what i saw frow this programm works on x10 the big one and i want to know is this file system Path the same like x10 mini or x10 mini pro .

Some of the entrys in this or clean.bat are a little confius like the entry about motorola and this build.prop ok this build.prop its not really a problem i can change this with a mini or mini pro build.prop and this codes for the spezific country.

But more important is this file system.
[XPERIA X10 Android Development] qwer23:
Jerpelea, could you perhaps add the scripts from tuxStyle and th4r to the first post? It makes the process probably a lot easier for people who are new to adb and you don't lose root when you use it.

Btw thanks to all of you who make our phones better every day!

Cheers

Qwer23
[XPERIA X10 Android Development] Reeonimus:
Thanks Jerpelea and Th4r. Getting a steady 750-770 in quadrant. Phone seems stable and smooth. You guys are great.
[XPERIA X10 Android Development] garbly:
whats the benefit of running the libEGL* stuff`?
[XPERIA X10 Android Development] mezo9090:
I am really Lost here..

Please Guys, Count me as a Gorella with a phone if you want, but how can i get JIT working without losing root ??? i've tried it two times and ended reflashing, the last one i couldn't reroot it, i got this

please make a straight guide, i read the thread already twice and can't get the info together.. :(

EDIT: Trying http://xdaforums.com/showthread.php?t=833324 now.
[XPERIA X10 Android Development] nagrockz:
even im going to to use Th4r's script to undo the JIT until someone can fix or explain the battery problem
[XPERIA X10 Android Development] tuxStyle:
Read a couple if pages back.

Is one of the lines from optimization.

Sent from my X10i
[XPERIA X10 Android Development] nagrockz:
yo bro

even im going to follow him

experienced a heavy battery drain

couldnt help

so disabled!
[XPERIA X10 Android Development] tot31:
I got no problem so far with JIT ver2, really smooth and no lag at all..Angry Birds sometimes too fast :D

Here are my scores...
[XPERIA X10 Android Development] twister082179:
I have X10a and flashed to generic global 2.1, and two days ago to brazil custom 2.1. Have rooted, shell rooted and just enabled JIT!! had a benchmark score of 712!!! I just noticed though that in my service panel my model is X10i....WTF!!!!!! and my customer region is now set to 1232-9897!!!!! back to global generic!!!! What do I do? so far no problems!!!
[XPERIA X10 Android Development] xeviro:
no need to speak with the WTF part :(

it because you copied jerpelea build.prop to your phone, you can edit your build.prop and set it manually.
[XPERIA X10 Android Development] leobg:
Jerpeleas script replaces build.prop I guess this is how you went back to "Global Generic X10i" :)
[XPERIA X10 Android Development] twister082179:
sorry for the fowl language!!!!! ;)

So that means I still have X10a firmware just need to change the build.prop in root explorer?
[XPERIA X10 Android Development] goRt:
That's correct
[XPERIA X10 Android Development] jerpelea:
v003 on the way
[XPERIA X10 Android Development] TheMathMan:
Having battery problems here too. Not sure why? Even have Watchdog running but can't figure it out!
[XPERIA X10 Android Development] mbrad_26:
Cool!!! Lets see what goodies Santa brings this time:D
[XPERIA X10 Android Development] npk21:
I am planning to install v002, is it necessary to install v001 too for v002 to run?:confused:
[XPERIA X10 Android Development] mbrad_26:
No. Just run v2. But if you can wait a litle v3 is on its way:D
[XPERIA X10 Android Development] npk21:
.........................

hmmm...i guess v3 will bring nexus drivers with it :) :) :)
[XPERIA X10 Android Development] mbrad_26:
@jerpelea

Can you pls tell us if v3 will be with us today?:D...and some specs....:D:D:D

Cheers
[XPERIA X10 Android Development] TimPonken:
How about giving us some changelogs and fix reports? :)
[XPERIA X10 Android Development] nagrockz:
@jerpelea

you are doing a wonderful job

hope you fix the battery drain problem in v0003
[XPERIA X10 Android Development] Galaxea:
I checked this out and my setting was already correct (debug.sf.hw=1), so it doesn't seem to be the problem. Those that are having battery problems, please explain what version you have (Nordic/Generic) and when you have the problem (Airplane mode only or all the time) and perhaps what kind of other "optimisations" you run (task killers/AutoStarts, etc.).

I can't believe that so few people are getting the battery drain - do you all leave your phones on at night, or switch them off completely?
[XPERIA X10 Android Development] mbrad_26:
What are u tolking about...there is no battery isue..at list for me...and i'm sure i'm not the only one.

Cheers