yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] drunken_m:
Some notes...

Hi,

I just finished reading through all the pages and have some notes for newbies, people how don't really understand what JIT is, etc...

1. JIT: Just-In-Time, an approach to do tasks just before they are needed, read more here: http://en.wikipedia.org/wiki/Just-in-time_compilation For us it means better speeds, applications start faster and the phone is more responsive.

2. After you apply the JIT wait for the DalvikVM Cache to settle - can take up to 1 day depending how much you use your phone. In this time the phone will be still slow and an occasional reboot may occur. Just be patient! After about a few hours (or a day) thing should be normal, your phone should be faster & better than ever.

3. Some people mentioned HD recording broke after they applied JIT. I can confirm, that with the 2.0.A.0.504-NORDIC Firmware this does NOT happen. HD recording works fine with the NORDIC firmware.

4. Problems with Root: if you use jerpelea's .bat file, after applying JIT your root is broken. Even if Titanium Backup (TB) or BusyBox (BB) says that you have root. I had to UnRoot my phone with SuperOneClick and apply Root (also with SuperOneClick) again to have normal root access back. After that I had to completely reinstall BB. After BB was reinstalled TB worked fine again. Shell Root is only needed for applying the JIT_Enable.bat after that you don't need to do it again. Also see #6 below!

5. Why are you people using your phone in Airplane Mode when you're at home??? This I couldn't understand. Most battery-related problems seem to have to do with Airplane Mode. Overnight simply switch off BT and WiFi, battery drain should be no more than 1-2% (at least that's for me). Airplane Mode is for when you are on an airplane ;)

6. @jerpelea: why do you use BusyBox 1.16.2? Why isn't the 1.17.1 version from the Market good? EDIT: never mind. Using th4r's scripts should go around this and the rooting problem. Should've read his post before installing JIT :D

That would be all. I hope this makes it easier for the newbies :)
[XPERIA X10 Android Development] SONE9:
I'm trying to re-root my phone after enabling JIT. I'm trying to do it with SuperOneClick to get it back like the above poster. However when using the application i get a popup saying Device does not have Superuser! and then the next things in the console are

OK

Removing su...

rm failed for /system/bin/su, No such file or directory

OK

Removing Superuser.apk...

rm failed for /system/app/Superuser.apk, No such file or directory

OK

Remounting system with read-only access...

OK

Is it successful? I dont think it is since when I try to re-root it says my phone has been rooted but fails the test everytime. Even if i skip the test my screenshot or titanium won't work and busybox says i'm not rooted.

"OK

Installing Superuser.apk...

OK

Running a SU test...

Test failed!

FAILED"
[XPERIA X10 Android Development] curious_yellow_eyes:
I get exactly that! The funniest thing is, when I installed jit the first time (on UK generic) it worked fine. Since I've re flashed to Nordic (to get root back after the update) it seems I can only have jit or root, not both.

I had wondered if I'd caused it myself by using to x10 root app to unsecure the shell instead of using superoneclick (it's faster, once you already have root) but it seems that you have exactly The same issue.

I've also noticed, if you get asked to do a Su test and say no it seems to work, but if it just goes ahead and does it you get a fail. I was using an older and the latest version of superoneclick... don't know if that makes a difference.
[XPERIA X10 Android Development] SONE9:
Humm i've tried doing the test or without, and titanium still says im not rooted :(
[XPERIA X10 Android Development] curious_yellow_eyes:
That was without installing jit :-(
[XPERIA X10 Android Development] drunken_m:
Hi!

For me it also said, that the SU test was failed, but I had SU... Was a little strange. Please check in a terminal (Terminal Emulator, Better Terminal or even ADB Shell) if you can do a "su" (type it, then hit Enter). A window should pop up on your Phone asking if you want to allow the Superuser request.

Also check if the Superuser.apk was correctly installed. There should be an app on your phone called Superuser. Start it, click on the tabs, check if you can navigate (first tab should be a list of apps which have requested previously superuser right, the second a log, and the third a settings tab). Try clearing the app list on the first tab, so TitaniumBackup has to ask for root rights again, then startb TB and Allow if the window pops up.

If none of this works maybe try to remove the Superuser.apk manually and try z4root from the Market. It should also work on 2.0.A.0.504

Most people are having problems with SuperOneClick and say that z4root is better/easier. I have never tried it, SuperOneClick worked for me, even if it took 10-30 Minutes for a root.

Also, some say that SuperOneClick 1.5.4 works better than 1.5.5 - maybe try an older version. But be aware, that 1.5.4 and older versions don't seem to install Superuser.apk (they just give you root). You have to install it later manually (it's in the .zip-File for 1.5.5).
[XPERIA X10 Android Development] curious_yellow_eyes:
Yes, I tried all that! Z4 just reset the phone, both versions of soc said 'rooted' after running ratc but failed the Su test... I tried installing Su from within astro and with Adb install (with shell root working) but then titanium said no root.

Funniest thing is, I forgot to re root after installing jit and yet installed a theme immediately afterwards with no problem. Perhaps you just need shell root for themes? It was only when I tried to install titanium that I had the problem.
[XPERIA X10 Android Development] SONE9:
I will give it a shot, but like the above poster z4 just resets my phone when it gets to the shell root part.
[XPERIA X10 Android Development] drunken_m:
Sorry, haven't tried z4root for myself. But if you only want JIT look here: http://xdaforums.com/showthread.php?t=885977

zdzihu has made a new version which can be installed via xRecovery (sorry jerpelea ;)).

Other than that my best guess is to re-flash your phone and start from scratch.
[XPERIA X10 Android Development] curious_yellow_eyes:
Thanks, I'll try that at the weekend, if I can get x recovery to work I may try updating to the new firmware too :-)
[XPERIA X10 Android Development] SONE9:
Everytime I try to use the xrecovery installer it FC's on me :(, i fear a reflash is in order if I really want my root back
[XPERIA X10 Android Development] epinion:
We can also use jerpelea script to enable Jitv2. Just change the file inside Jit folder with the file from Jitv2.
[XPERIA X10 Android Development] minjiet:
what's the difference between these 2 jit? are those also v2?
[XPERIA X10 Android Development] epinion:
It's an optimized Jit for X10i. But I experience battery drain faster than b4. Want to try revert back to the original Jit.
[XPERIA X10 Android Development] chiefy009:
Been running v2 since release if anything my battery is performing miles better

sent from my Commodore 64
[XPERIA X10 Android Development] drunken_m:
Hi!

Me too... installed it yesterday, speed is awesome, battery drain is not much. I've played the whole afternoon, lost about 40%, but overnight the drain was less than 1%!

Of course I have to test it more, but the first impression is, that the battery drain is less than before, and the performance is way better. I also noticed, that I have constantly more free RAM. With .504 it was around ~38MB the whole time, now I'm back at ~100MB - and I only installed the apps I had before, nothing more, nothing less.

And yes, JITv2 from zdzihu is optimised for the CPU in our X10's (ARMv7). JITv1 was only a general build for all CPU versions. You can feel the difference.

My scores:

Linpack:

- .504, no JIT: 6,9 MFLOPS

- .504, JITv1: 17,5 MFLOPS

- .24, JITv2: 33,4 MFLOPS

Quadrant:

- .504, no JIT: 550

- .504, JITv1: 720

- .24, JITv2: 840
[XPERIA X10 Android Development] epinion:
I'm still using 2.0.A.0.504. What's yours? Maybe that is the issue? Well will try to back to Jit v1 tomorrow to see hows the battery going.

Btw Happy New Year everyone. May we prosper in the coming year.

^_^
[XPERIA X10 Android Development] chiefy009:
I am using z's pre rooted .24 using JiTv2 with new baseband. The new firmware with JiTv2 makes your phone feel like new

sent from my Commodore 64
[XPERIA X10 Android Development] epinion:
I don't know whether this is related or not, but I tried to remark this line #dalvik.vm.execution-mode=int:jit . And my battery performance back as before.
[XPERIA X10 Android Development] calvenyow:
backup & restore also consider as junk app?
[XPERIA X10 Android Development] BlackCorsar:
---Delete---
[XPERIA X10 Android Development] epinion:
One of jerpelea script is nexus video driver, but apparently no improvement on our Rachael.
[XPERIA X10 Android Development] handofcode:
Noob question alert: How do I tell if the jit install worked?
[XPERIA X10 Android Development] chiefy009:
Download linpack and see what it gives you

sent from my Commodore 64
[XPERIA X10 Android Development] rkanwar:
Yeah as chiefy said install linpack. If you get more than 10 MFLOPS you know jit is enabled. I say 10 because the average without jit is between 5 and 7. If youve installed jit v2 youll get higher than 20
[XPERIA X10 Android Development] rkanwar:
I wouldnt uninstall this, its useful for backing up contacts sms market apps bookmarks etc. I saved so much time and hassle with this, especially because i did not want to lose my texts
[XPERIA X10 Android Development] MrHassell:
thought

Jerpelea - I've jus been messin with TripNRaVeR Gingerbread 2.3.1 beta 1.2 rom and noticed he left some useful tools in there - dev & spare parts as they are on the app panel... anyway these are taken from the Nexus One and I installed them onto a standard 2.1 rom and found they work with Xperia.

Here is the link to the post with the apk files

After setting some of the values, the X10 I'm playing with is off the charts fast! Might be good to incorporate some of the functionality, especially of the spare parts optimizations into this optimization apk?
[XPERIA X10 Android Development] thermoska:
Maybe you should try to search nex time

http://xdaforums.com/showthread.php?t=826849
[XPERIA X10 Android Development] jerpelea:
You need adb root

Not normal root
[XPERIA X10 Android Development] thermoska:
Can you explain me the difference ?;)
[XPERIA X10 Android Development] McKebapp:
Pushed all my backuped files fom before Step3 back and everything is fine again.

phew...
[XPERIA X10 Android Development] zyryck:
I think everything worked fine for me ( After some tries ) but now, I try to turn on my cellphone and it stays on the Sony Ericsson screen, i've been waiting for more than 10 minutes and nothing...
[XPERIA X10 Android Development] superleeds27:
Did as you said ut keeps giivng me this:

Starting ADB Server...

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

OK

Waiting for device...

OK

Pushing rageagainstthecage...

105 KB/s (5392 bytes in 0.050s)

OK

chmod rageagainstthecage...

OK

Running rageagainstthecage...

OK

Killing ADB Server...

* server not running *

OK

Starting ADB Server...

* daemon not running. starting it now on port 5037 *

* daemon started successfully *
[XPERIA X10 Android Development] superleeds27:
has happened 2 me 2/3 times, had to take out battery etc
[XPERIA X10 Android Development] thermoska:
then try to uncheck debugging and check it again, but always when SuperOneClick says waiting for device

Sometimes it can freeze, then unplug the cable
[XPERIA X10 Android Development] zyryck:
But that's what I've been doing for 25 minutes or so...

And it just went back to normal with no other actions than rebooting it and taking the battery out ?

And i also got CP: Not Found at the Step 2

If i plug in the USB Cable the loading battery appear but if I try to turn it on when i see it, the screen remains black.
[XPERIA X10 Android Development] superleeds27:
Do we need Normal root and Shell root, or just shell?

I've seemed to have fecked my normal root up now, titanium not having any of it!

Step 2 i keep getting.

CP: Not found

??
[XPERIA X10 Android Development] superleeds27:
Seems SEUS wont pick up my phone either now... grrrr

Edit: Nvm. Phones decided to boot now!
[XPERIA X10 Android Development] naveen_reloaded:
how ? i use oneclick root...

pleasse many seems to be stuck or ran into problems

a good guide or pre requiste of wht needed would be good
[XPERIA X10 Android Development] Nikhil_007:
I think he meant shell root apart from normal one...its there in one click root...
[XPERIA X10 Android Development] AzureNightwalker:
I can confirm that this did actually fix it - normal root AND shell root is needed - i didnt get the shell root after a reboot.

Thanks jerpelea!
[XPERIA X10 Android Development] zyryck:
I reflashed my phone to get it back working but now i get the same error at the second and third steps, CP : not found
[XPERIA X10 Android Development] vatis24:
Greetings again,

After the procedure that worked with no problems i have a minor problem, i cant find my keyboard:P When i go to write message i hold on the screen there and i get the usual input method , when i click it there is othing in there. I really like the stock keyboard so please tell me which .apk file is the default keyboard in the app folder of 2.1_Optimiser\jit\app

Cheers

Vatis
[XPERIA X10 Android Development] Crowds:
EVERYONE WHO AS ABLE TO DO THIS!!!!

can check if you`ve got access to all settings in sounds & display?

i lost this

and no busybox
[XPERIA X10 Android Development] mbrad_26:
Hi Jerpelea

Can you confirm that first step is not absolutly necesary....is more an optional one, and I can proceed to step 2 directly???

Cheers
[XPERIA X10 Android Development] McKebapp:
You're right.

With first step, all unnecessary apps jearpela defined, are deleted.

You can open the .bat files with any texteditor, like MS Notepad.

There you can see, what is done.
[XPERIA X10 Android Development] jpl69:
I had my phone rooted, and after testing this i'm not able to root it again
[XPERIA X10 Android Development] Herr Noobien:
Yeeeeeeeeeeeah, I might sit this one out judging from the sound of things. I'll wait for an idiot proof version :P
[XPERIA X10 Android Development] saltorio:
Yup. Watching this thread closely, but not ready to try anything out myself yet.
[XPERIA X10 Android Development] superleeds27:
Same problem here
[XPERIA X10 Android Development] McKebapp:
Just performing Step2 alone pumps me to massive 630 points in qudarant. :)
[XPERIA X10 Android Development] kafej666:
i have 709 .... LOL F YEHHH :D

I deleting aps myself and do only step 2
[XPERIA X10 Android Development] mikrokiwi:
You need disable silent mode to access the settings lol :rolleyes:
[XPERIA X10 Android Development] HunteronX:
Thanks jerpelea. :)

I will wait for a newer version, with the nexus one video drivers included, since I'm already running JIT, and have changed the heap size to 32MB, but I'm sure that many people will have/have found this useful.
[XPERIA X10 Android Development] Astral07:
can you tell me how to do that? and also, what it's for? thanks
[XPERIA X10 Android Development] theeedy:
I will so not doing this, until there is a real fool proof version.

Because i ****ed up me phone with the JIT-enabling-thing (not this one).

And i will never flash this firmware again! It's so ****ing exhausting to re-set and re-install everything everytime.
[XPERIA X10 Android Development] superleeds27:
Yeah i tried and have now lost root, Suppose the good thing is ive already deleted apps i dont want, and my phone still works.

So ill reflash with SEUS when we have an idiot proof guide :)
[XPERIA X10 Android Development] Crowds:
F%@K

I seen that latter :))
[XPERIA X10 Android Development] Crowds:
+ 1

But seems even after some was abble to put this work they wont help nobody. Isso make that request at least 4 times. :((

When they need ask but help others ...WHAT??? isso can't ear you....
[XPERIA X10 Android Development] phanquangkhanh:
done this successful. At first, I have problem when no IME installed. So i have to install HTC IME. Second, as many of you, no SU. I have to rerun superoneclick to get root again and reput the SU. After this, everything works perfect now.

thanks.
[XPERIA X10 Android Development] paasoares:
Success !!!

OK,

i only did the STEP 2 - JIT.

My quadrant score bump from 540 to 665 :)

Thanks jerpelea. :)

NOTE :

As jerpelea said, you need to execute the script in SHELL ROOT :

1) open SuperOneclick in your PC

2) If your phone is not rooted, press the "root" button

3) after your phone is rooted press "Shell Root" button

4) wait for the message that says that a shell root has been available until your next reboot.

5) Run the script you want to execute. After each script the phone restarts (take a while to get the phone back again)

6) after restart i didn't had root access, so I did the root procedure again and now everything is working fine !

Hope this help !
[XPERIA X10 Android Development] mackdaddy187:
When I try Shell Root, it just loops over and over again. I tried both Superoneclick versions and tried enabling/disabling USB debugging while waiting for device.
[XPERIA X10 Android Development] superleeds27:
Right got my root back...Finally!

Anyone know what made the error for me earlier?

Was getting 'CP: Not found' on step 2?
[XPERIA X10 Android Development] TimPonken:
Same here.

Does it mean the JIT didn't work?
[XPERIA X10 Android Development] mbrad_26:
Lets wait for Jerpelea to come and see what he has to say...I had the same error but the JIT was enabled and is working just fine in my case

Cheers
[XPERIA X10 Android Development] Bin4ry:
If it can't "cp" you don't have shell root.

Alternate to Superoneclick Shell Root is to give root to the sh

For that open a terminal -> su -> chmod 06755 /system/bin/sh

After you are done with all scripts -> chmod 00755 /system/bin/sh

Regards

Bin4ry
[XPERIA X10 Android Development] dik-m:
replace in 2_jit_enabler.bat

adb shell cp -f /data/tmp/build.prop /system/build.prop

where

adb shell busybox cp -f /data/tmp/build.prop /system/build.prop
[XPERIA X10 Android Development] superleeds27:
my 2_jit_enabler already contains:

adb shell cp -f /data/tmp/build.prop /system/build.prop
[XPERIA X10 Android Development] dik-m:
this

adb shell busybox cp -f /data/tmp/build.prop /system/build.prop

command --> busybox cp
[XPERIA X10 Android Development] superleeds27:
Ahh, so you mean add busybox to that line?
[XPERIA X10 Android Development] dik-m:
yes :)

ALL BUGFIXES :)

in 3_app_optimise.bat

replace @adb shell cp /sdcard/app /system/app/

with @adb shell busybox cp /sdcard/app/* /system/app/

and

in 2_jit_enabler.bat

replace adb shell cp -f /data/tmp/build.prop /system/build.prop

with adb shell busybox cp -f /data/tmp/build.prop /system/build.prop
[XPERIA X10 Android Development] superleeds27:
Okay when going for shell root in Super, what should i get.

Previousley i was getting temporary ADB Root.

Is this correct?
[XPERIA X10 Android Development] dik-m:
yes, temporary ADB Root, this is hack
[XPERIA X10 Android Development] norberto_:
1) open SuperOneclick in your PC

2) If your phone is not rooted, press the "root" button

3) after your phone is rooted press "Shell Root" button

4) wait for the message that says that a shell root has been available until your next reboot.

5) Run the script you want to execute. After each script the phone restarts (take a while to get the phone back again)

6) after restart i didn't had root access, so I did the root procedure again and now everything is working fine !

I had this too, but everything is ok.

And now QuadrantAdvanced : 671 :D:D:D

Thanks Jerpelea
[XPERIA X10 Android Development] superleeds27:
still getting cp not found!
[XPERIA X10 Android Development] dik-m:
cp part of busybox

BusyBox combines tiny versions of many common UNIX utilities into a single small executable.

Currently available applets include:

[, [[, acpid, addgroup, adduser, adjtimex, ar, arp, arping, ash,
awk, basename, beep, blkid, brctl, bunzip2, bzcat, bzip2, cal, cat,
catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot,
chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab,
cryptpw, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
dos2unix, dpkg, du, dumpkmap, dumpleases, echo, ed, egrep, eject,
env, envdir, envuidgid, expand, expr, fakeidentd, false, fbset,
fbsplash, fdflush, fdformat, fdisk, fgrep, find, findfs, flash_lock,
flash_unlock, fold, free, freeramdisk, fsck, fsck.minix, fsync,
ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, hd,
hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id,
ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, inotifyd,
insmod, install, ionice, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink,
iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
last, length, less, linux32, linux64, linuxrc, ln, loadfont,
loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr,
ls, lsattr, lsmod, lzmacat, lzop, lzopcat, makemime, man, md5sum,
mdev, mesg, microcom, mkdir, mkdosfs, mkfifo, mkfs.minix, mkfs.vfat,
mknod, mkpasswd, mkswap, mktemp, modprobe, more, mount, mountpoint,
mt, mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od,
openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
pivot_root, pkill, popmaildir, printenv, printf, ps, pscan, pwd,
raidautorun, rdate, rdev, readlink, readprofile, realpath,
reformime, renice, reset, resize, rm, rmdir, rmmod, route, rpm,
rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,
scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,
setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum,
sha512sum, showkey, slattach, sleep, softlimit, sort, split,
start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv,
svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
tail, tar, taskset, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd,
time, timeout, top, touch, tr, traceroute, true, tty, ttysize,
udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq,
unix2dos, unlzma, unlzop, unzip, uptime, usleep, uudecode, uuencode,
vconfig, vi, vlock, volname, watch, watchdog, wc, wget, which, who,
whoami, xargs, yes, zcat, zcip
[XPERIA X10 Android Development] go3asy:
What does gl enabler do and also the app optimize?
[XPERIA X10 Android Development] superleeds27:
Cant get it to frigging root again now, asin full root!

argh!
[XPERIA X10 Android Development] norberto_:
n 2_jit_enabler.bat

replace adb shell cp -f /data/tmp/build.prop /system/build.prop

with adb shell busybox cp -f /data/tmp/build.prop /system/build.prop

or do it manually :)

I have done it with rootexplorer :)

BTW we loose the root because the JIT script changes the SU permissions?
[XPERIA X10 Android Development] superleeds27:
Same here, and now Busybox 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
[XPERIA X10 Android Development] MarylandCookie:
You dont have superuser installed.
[XPERIA X10 Android Development] superleeds27:
Ahh, must have worked somehow. Quadrant shows 639?

So this is maybe why i no longer have root?
[XPERIA X10 Android Development] norberto_:
if you lost the root than just root it again with superoneclick averything will be fine
[XPERIA X10 Android Development] superleeds27:
Okay.

I got CP error, tried re-rooting but it wouldn't have it.

Ran quadrant, it shows 639, previousley 541.

I'm guessing it's worked, but re-rooting won't work!
[XPERIA X10 Android Development] TimPonken:
So it's not possible to Root after you have done this?
[XPERIA X10 Android Development] superleeds27:
Not sure if i have actually enaled this feature, i can't seem to root. Superuser issue y looks of it!