yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] tonnyb:
ok thanks i will follow the steps on page 1 i hope it worls for me :(

it see mount-o not found?

??
[G1 Android Development] linuxluver:
Flashing the latest recovery takes......30 seconds. That would have been a good move.

Why not just "fastboot boot [latest recovery.img]" ???

It's a non-persistent recovery boot....but more than good enough to what you need done...and make sure you're on the Amon_RA v1.5.2G recovery.
[G1 Android Development] philosophics:
Just "dusted" and I noticed a nice performance boost. Not really speed wise but ...... ya, I guess it is speed wise.

Thanks mang!
[G1 Android Development] Asswipe44:
thanks for this, but in my experience it only slowed down the phone. Apps were loading LONGER than usual and when I wanted to go to home screen I literally had to wait 30 seconds before the black screen showed my wallpaper (the apps weren't even loaded). I'm running latest cyan with no swap and no compcache and am amazed that this actually speeds **** up for others... WHY NAT
[G1 Android Development] G1ForFun:
I'm right there with ya....JIT seems to make my phone act like an unstable overclocked cpu....yeah it runs...but barely...and with increased loading times....oh yeah but it does put up the synthetic benchmark scores.:rolleyes:
[G1 Android Development] vegaman:
Strange, I haven't seen any of those problems, I'm not sure how to objectively test performance though. I'm only at 24 hours uptime, did your problems start before or after that?
[G1 Android Development] tmusall:
OI Safe DB corruption

Not sure how this is possible, but with JIT installed on FastTest 2.8 lite IO Safe would not decrypt its password DB correctly. It would let me in, but the data was scrambled and had blank entries preceding the real one. Tried reinstalling IO Safe and restoring my backups, but nothing would correct it. Removed JIT and problem was gone. Really strange I know, but just wanted to pass it along.
[G1 Android Development] Jaivee:
For those having trouble installing from recovery console try this

#mount -a

#cd /sdcard/dusted-donuts

#sh backup

#sh install

#sync

#reboot
[G1 Android Development] domenukk:
Only issues I#ve had with JIT Dalvik so far was Force Close on Mystique: Chapter 3.

So it is in fact a bit unstable.

Other than that, it's wreally... Fast... :D
[G1 Android Development] MorphWVUtuba:
damn good hack

only been running this for about 5 minutes, but so far this looks like a damn good hack. once again, FLOSS FTMFW. :cool:
[G1 Android Development] Asswipe44:
As soon as I got JIT on my phone via instructions, the slowdown began. I guess youre fine if 24 hours and no **** lag loading screen
[G1 Android Development] Riel:
I did notice a speed improvement (and Linpack really shows it) but in 'normal use' the difference is really not that big.

I suffered a lot of instability, missing apps after reboot (several tries!!), strange behaviour, and indeed, loading of apps takes longer, browser stays white for 10 seconds etc.

Just flash the bare APD D83 image :) Now tháts smooth! Too bad I missed several functions there, so I flashed back superD over it and I stay with that now, without the JIT. For now.
[G1 Android Development] Telemaniaka:
On CyanogenMod 4.2.14.1 there was a HUGE speed improvement. Used it for a week till I realized the mail notifications aren't coming through. Restored the old files and speed didn't go down so much.
[G1 Android Development] dangambino:
I enabled it on King's eclair. Linpack prior to JIT was at 1.5 mflops. After installed and rebooted 3 times, it is reading 3.5 mflops. Some FC, but not many. It's twice as fast!! Gret Rom

Please Support Your

Local Dev. Let's help

them help us!
[G1 Android Development] G Zero:
Installed on Complete Eclair. Consistent numbers with rest of group. Linpacks 3.5MFLOPS for 1.5secs and Pis in the consistent 9400s. Yup, it definitely installs. On my 4th boot with compcache and swap off, but Autokiller set to aggressive and CacheMate auto cleaning the cache every 3hrs.

While the bench numbers are very nice, I can't say with certainty that ii see any difference at all. Speed and stability seem unchanged so far. Since its bugless I'm gonna keep it, play with some settings a little to see if I can manifest anything, but so far nothing earth moving on CE.
[G1 Android Development] MrBlueEyez:
Thanks, this one helped me out :-)

Have flashed it, and i see a good speed improvement on Cyanogen latest (.14). No problems with programs whatsoever. I see a speed improvement on the market when it comes to installing programs... Will continue to test it out. One thing.. I did see a setback in the GPS accuracy, but that can be the location...
[G1 Android Development] epikx:
After initially enabling jit phone seemed nice and speedy. However after a day or so, phone became really laggy. I noticed the latest RA recovery had a wipe dalvik cache as well as file system fix. So far seems to be working like it did originally, see what happens tomorrow.
[G1 Android Development] rustyx3:
well, results did vary for me as was feared in the first post :)

I'm on a CM 4.2.14.1, ext4 a3sd, G1.

The new dalvikvm installed ok and "dalvikvm -h" does print out jit options, however:

1. it crashes with Segmentation fault after printing out the line about "with_jit".

2. a reboot after installing it did not take any longer than usual.

/system/build.prop does not contain dalvik.vm.execution-mode, and also setting it to int:jit didn't seem to change anything.

i don't notice any performance difference..

is it active or not?
[G1 Android Development] licknuts:
It is installed with_jit, compcache enabled and apps2sd does take away from the speed. Test your speed with Linpack if your in the 3's then it is working. reading other posts by people about putting in the line in your build prop is stupid, because it is enabled by default, putting dalvik.vm.execution-mode=int:fast will disable it and run normally.

Do people listen? Sometimes. It's a half assed world and I suppose we can only give our half. But stop mangling your build.prop files and use a data/local.prop to experiment with, the people who repackaged the the zip file probably don't know they are wrecking build.prop files with a potentially incompatible one..
[G1 Android Development] G Zero:
Flashed back to a Nandroid backup of Complete Eclair without Jit and can confirm this does absolutely nothing on Complete Eclair. It shows up on your bench marks but the only results a CE user would see are pure placebo.
[G1 Android Development] Klyentel:
You got a point there...I had a zip someone uploaded where you could just flash it over any rom to enable Jit...and it's been screwing up everything every time I tried it.....so I went back to the original way and pushed the files myself, and there it was...the amazing difference I first experienced.

But however I don't care for the Jit hack anymore, The latest FastTest rom is fast as hell, super D with WG's Kernel also. Besides, the Jit hack mod doesn't get along with my Google Voice, I even tried it with the Google Voice fix on htcclay's 2.8 lite and it still force closed it everytime, so I said to hell with it:mad:, Maybe when it gets a little more stable, I'll play around with it again.
[G1 Android Development] G Zero:
What I'm about to tell you is within the range of placebo, so keep that in mind as you're reading what I'm about to share with you.

Flashed back to my nandroid of CE with jit, and I can say, comfortably, that the jit hack does make your transition animations faster. Apps don't open faster, pages don't load faster, just the animations to those things is faster. Ill go on to tell you that those animations are "Super D-like". And you can quote me on that. App launcher demonstrates this better than anything, its clearly faster and smoother even with a bloated live wallpaper running behind it. This continues through carhome which now seems to slam into place, and it carries through to all your apps which unmistakably flourish much sooner in all circumstances. And that, you can take to the bank.

Settings: Complete Eclair 1.2Black, autokiller set on agressive, no compcache no swap (swap is the debbil)
[G1 Android Development] skipfletcher:
I got this too. I get gmail notifications when I first boot the phone, but not after that.
[G1 Android Development] XxKOLOHExX:
I am having a bit of trouble... Everytime i try to do these instructions in Terminal i can't boot back up... i was wondering ... is there a way to add this hack into a rom successfully?
[G1 Android Development] licknuts:
After thinking it over, for Android 2.1 ROMs you will probably want the compiled JIT enabled Dalvik from Cyanogen 5.0.x beta 2 ROM or a DROID 2.1 ROM, this version is compiled for just 2.0 and happens to work in 1.6 since Cyanogen 4.1.5 I believe. Canaogen posted in this thread and puts in his reasoning.
[G1 Android Development] licknuts:
Not all ROMS work, they should however work if they are based off Cyanogen's 4.1.5 or 4.2.x , will need to check back to see when he started putting in the 2.0 goodness. Some apps can hang the phone when being optimized and you can try building a custom local.prop file to handle these issues. Issuing the #dalvikvm -h command in terminal with the library installed will reward the user with plenty of options to build a better JIT enabled Dalvik VM environment and I'm really surprised no one has gone for it yet.

So the install from the Recovery Console and clear out your dalvik-cache, it may fix your issue. Probably about 80000 posts on there on how to clear dalvik-cache, so use the search.

There are at least 2 roms that now have this "Donut By Laszlo and Bonzia both have it and could be more ROMS
[G1 Android Development] licknuts:
Nice logical posting on how you worked it out and came to your own reasoning from testing. This is how it is done and some should learn. I will interject however and state that if you flash and put the jit enabled dalvik in before the first bootup, your Google Voice should work, I have tested on a few ROMs this way and it's solid.

Also turning off "Compatability Mode" in Spare Parts may reward you.

Remember I didn't write the library but have been experimenting for a while with it, my fasted favorite build is Super D 1.8, with all Cache off, the RAM hack gives me enough to keep the browser from reloading when switching tasks. Super D 1.9.3 I just can't get the same effect.
[G1 Android Development] G Zero:
hmmm how would one go about doing that, pushing the libdvm.so to the destination like before?

Will attempt tomorrow.
[G1 Android Development] ribooo:
I installed this hack last week on my cyanogen 32b magic + ram hack.

It works really wonderfull :)
[G1 Android Development] dangambino:
I agree. It does work wonderfully. thanks liknuts for your time on this
[G1 Android Development] skipfletcher:
Come to think of it, I don't think any sync is working. Calendar is not updated as well. I'm on CM 4.2.14.1
[G1 Android Development] revo420:
Anyone note any FCs with shazam?
[G1 Android Development] Klyentel:
ADB for Me

I can't believe so many people are having problems, and claiming this doesn't work, but I admit, I had trouble as well....especially when I was doing it the wrong way by trying to flash droid build.props on a G1, LoL....anyway, for any Noob, Junior, or Senior that cares, I found the easiest method (for me) and thought I should share, its pretty much the same as the OP, but less typing, it may help someone:

But First And Foremost:

Thank you Licknuts for breaking down the instructions on how to install so very well......

For anyone that has trouble...or just don't like trying to type commands from terminal or console (like me), if you have adb setup this is a breeze.

boot into recovery and fix your file extension as instructed in OP. Most important step, if ya ask me.

then reboot recovery go back to console, hit enter for the root symbol /#

then on ya pc with phone plugged in of course, open a cmd window,(assuming you know how to get into your adb exe file path from there) mines is cd C:\Android\android sdk 1.6 r1\tools>

from there type adb shell, you should get another root symbol like the one in console /#

now type:

system -a (that mounts system in read/write)

sdcard -a (that mounts sdcard in read/write)

EDIT: just discovered you can just type one command to mount both, it would simply be mount -a (didn't know that when I did it:o)

nows this is where it gets really easy! no typing involved, (assuming you unziped the dusted donut folder to your sdcard as instructed) just simply Copy & Paste Licknuts commands from the OP as follows:

cd /sdcard/dusted-donuts

sh backup

sh install

sync

reboot

Done! Piece of pie, remember to reboot again a couple of times after initial reboot, and there shouldn't be any problems, if so, you did something wrong, but if you feel you did everything right...i simply suggest wiping dalvik, fix uid mismatches, reboot, fix permissions, reboot again. That usually solves everything, if not....go back to scratch, full wipe, flash and everything.;)
[G1 Android Development] G Zero:
Gotta tell ya ...this hack on Complete Eclair 1.2 with the 3D driver hack is pure sweetness.

Now to try the n1 jit files >: ) Bwahahahahahhaaaa....
[G1 Android Development] Jerzeeloon:
OP says fix your filesytem 1st,I wrote in code and it says 21.9% non-contiguous?so know what?how do I fix it?
[G1 Android Development] Jerzeeloon:
Man I tried the original OP and theses instructions nothin works,I just want jit on my fasttest,can someone just upload fastest with jit enabled already this is bullcrap.
[G1 Android Development] epikx:
Once again my g1 started running like molasses, seem like its fine after a reboot, for about a day, then back to running like crap. Pushed the original non jit libdvm and things are back to normal, hopefully :) ONce this becomes a little more stable it should be awesome.
[G1 Android Development] Shane2:
No FC in Shazam here
[G1 Android Development] G Zero:
You really need the 3D patch to see JIT shine on an Eclair rom. Exists as described on my G1 and calculated Pi in 9298 with Complete Eclair 1.2, which was fast enough to put me as one of the fastest G1s ever benched in the databse. And I was faaaar from what Id consider "race mode" (that's no apps running and no icons on my screens, stock launcher, etc....).

To anyone who doubts this is stable, you'll find it stable when you have the tools that keep jit running clean- autokiller and cache mate (both in the market, go grab them). They 'prune' your JIT (and keep you from filling it....) which allows you to stay running fast with zero bugs and glitches.
[G1 Android Development] jobbie13:
same here. i'm sure it's something simple but i'm not seeing it.

g1/cm 4.2.14.1/amon ra/
[G1 Android Development] goofyog:
Is there any way to get this working with 1.5 hero roms?? That could be a big improvement.
[G1 Android Development] domenukk:
Nope, not true.

There are apps that just won't work with jit, no matter what apps run in the background.

Good example would be mystique3. force closes everytime you enter a level (or try to)

There are simply things that ARE NOT working. So it's considered NOT STABLE.

Also Cyan stated that it useses more Ram. And he said -again- its not stable. (He's Oprah of android, you know? He just got to be right.)

I might add here that parts of apps depending on speed are written in C anyway. (Only Java benefits from JIT (if anything))

So no, i don't like JIT anymore.

(BlueMagic will have to live without it)
[G1 Android Development] r00ktard:
So does this work or not? is it stable or not? A confirmed answer would be nice.

:)
[G1 Android Development] G Zero:
yeah, I know JIT doesn't effect everything, and I thank you for the info about C. And yup, I know Steve (Cyanogen) swore off Jit till its 'more stable' somewhere around the time he was handing out toyotas to the masses (its amazing how much grace that guy has while he's frustrated), but in my experience JIT can most definitely be 100% reliable. I have absolute zero flaws with JIT (and I don't mean some that are bearable, I mean none), my specs are in my sig. To stress test and find the chink in JITs armor I DLed Mystique, and it ran totally flawlessly with JIT (pretty sweet game btw) and the 3D patch, so does my entire rom. Runs absolutely great. Totally transparent till you use java or bench, and you saw my bench #s.

Something in Complete Eclair agrees very well with JIT, and the 3D patch, its uber fast and still totally rock solid. I reccomend any dev give it a shot and see what JIT can do and what it looks like 101% stable.
[G1 Android Development] G Zero:
the answer is..... it depends! Its not that black and white (nor should JIT be looked at as a set it and forget it affair, it needs to be maintained and limited so it doesn't 'stuff' it self and run like ass, which suggests to a lot of people that its buggy). Jit works if your system has it hard coded in and its just not on, and jit is flawlessly stable for CE for me and many others. id bet other roms may be too, but I can definitely confirm CE personally.

And yes its fast, I have one of the top records ever for a G1 with Benchmark Pi, and I've sacrificed absolutely zero stability, I really can't stress that enough.
[G1 Android Development] linuxluver:
JIT uses more memory though, so hopefully that won't also get in the way of your game.
[G1 Android Development] Krypt:
I just upgraded my ROM to CM4.2.15. Everything was running Ok; but when I put the JIT libdvm.so on the phone and rebooted my phone went bezerk.

I saw in the logcat that the phone was optimizing the dalvik cache (dexopt) and when it was completed I got FC's on all possible processes you could think off.

Just replaced the libdvm.so with a backup; it's now dexopt'ing again. Let's see what happends.
[G1 Android Development] anomalous3:
What is this 3D patch you speak of and where can I get it?
[G1 Android Development] grandomegabosses:
I can also confirm the JIT hack does not seem to like Cyanogen's newest update. SO many FCs. More than I have ever seen!
[G1 Android Development] roccodaone:
Same here. Too bad, though.
[G1 Android Development] anomalous3:
nevermind, I found and installed it, and my phone officially does not like it.
[G1 Android Development] xxmonsterx:
i wish this worked with the new cm.. :( it was running beautifully on cm 4.2.14.1 with cc w/ backing swap and 10mb hack was running at 3.7mflops. licknuts please please please try to fix this!
[G1 Android Development] MrBlueEyez:
My issues with GPS reception seemed to come from this hack. Now running latest Cyanogen with 2M flops, would be nice to see it working on this one, but if that means reception is going bad, i won't use it.

Keep up the good work, it was nice and fast on .14.1 :-)
[G1 Android Development] zimphishmonger:
Ive been testing JIT on SUperD for about a week. Although it certainly has a benefit during synthetic testing (Linpack), and felt a little snappier at times, I found it lowered the overall stability of the build. Just my opinion :)
[G1 Android Development] mrkumquat:
new CM 4.2.15 is not a fan of JIT at all, crashy mccrasherson
[G1 Android Development] Shane2:
+1 on all of those, this hack screws up 4.2.15 royally
[G1 Android Development] philosophics:
That's a downer. I liked the hack. But the new CM almost seems like it doesn't need it. Time will tell though...
[G1 Android Development] mrkumquat:
4.2.15 revision has good speed over last, hitting about 2.4 mflops but I was at 3.5ish on last build with JIT. Too bad current JIT release doesn't play well with others
[G1 Android Development] ilaf0106:
so im trying to add jit by just adding the libdvm.so following the grey fonts

but i keep getting this "cannot stat '/sdcard/vmlibs/libdvm.so' : no such file or directory

same thing goes trying to back up and im using the recovery console on amon ra recovery

am i doing something wrong?
[G1 Android Development] aaraya1516:
adb push libdvm.so /system/lib/libdvm.so

Or you can follow my instructions in my sig. click on JIT.
[G1 Android Development] ilaf0106:
i appreciate your help really can u send me a link or show me where to get the

program to adb push please
[G1 Android Development] idkidk:
Just tried with cm4.2.15.1 but i've a lot of fc, impossible to use, remove it all is ok, another one have this problem? :confused:

Tia

Idk
[G1 Android Development] SilentTweak:
http://developer.android.com/sdk/index.html You need to install this. The one for your OS obviously. Then it has a Setup.exe file that you open and it downloads all the files you need. USB drivers included.
[G1 Android Development] ilaf0106:
ok i did this already installed the drivers and 1.6 sdk i also set the path to tools directory as google told me...

but when i click on adb it just pops a black dialog with letters or whatever scrolling down then it just closes itself and nothing else happens after that??

i know im bugging but im learning :p thank you though for the help
[G1 Android Development] aaraya1516:
go into a comand prompt on your comp, on w7 or vista just search for cmd.

then type in the commands.

Yeah, 4.2.15 didn't like it either, try some others. Pays and cannon's works with JIT.
[G1 Android Development] ilaf0106:
OMG THANK YOU:):D

ive been trying to figure this thing out and just like that you helped me

ahahhaha now i will be able to push things to my phone

thank u soo much :D

edit: when in command prompt i enter anything with adb it says

"'ADB is not recognized as a internal or external command, operable program or batch file"

:(
[G1 Android Development] aaraya1516:
http://developer.android.com/sdk/installing.html

follow those instructions and you will get it working.
[G1 Android Development] licknuts:
cm 4.2.15.x has dalvik-cache relocated to /cache/dalvik-cache (a new feature) I had the same issue here fixed it by going to Recovery Console:

mount /data
mount /cache
rm -f /data/dalvik-cache
ln -s /cache/dalvik-cache /data/dalvik-cache
sync
reboot
[G1 Android Development] Malix82:
aight, just tried that and got endles supply of FC's. trying again because I did have some alcohol prior testing.

edit: still same.

appears the /data/dalvik-cache gets redone on boot as normal folder

the symlink just vanishes.

anyhoo, don't we usually have dalvik-cache on /system/sd/dalvik-cache ?

edit v.2.0 with vengeance

appears it works if I link /data/dalvik-cache to /cache/dalvik-cache (ie, ln -s /data/dalvik-cache /cache/dalvik-cache)

so, other way around than in licknuts post?

edit v.3.0 retribution

and now that I booted up, got linpack score of 3.x Mflops, /cache/dalvik-cache has totally disappeared, but no fc's. I stop posting and editing now, seems to work for me.
[G1 Android Development] ilaf0106:
thank you for your help thanks to u

now i am running 3.5 mflops with superd 1.9.3 w/o ram hack it works smoothly

one Q though do i have to do this everytime i install a new ROM?
[G1 Android Development] licknuts:
hmm, realized I'm not using an EXT file system for system/sd so obviously apps2sd will not be running, maybe apps2sd is the cause? I haven't had much chance to test but make a judgement whether to execute the commands.

****ty way to do this but as far as I got that worked in 10 minutes, needs refinement and a better process but try this.

install the libdvm.so and reboot the phone all the way till you get the infinate looping FCs, power/reboot go into Recovery Console:

mount /system/sd
mount /cache
rm -f /system/sd/dalvik-cache
ln -s /cache/dalvik-cache /system/sd/dalvik-cache

######optional########
rm -f /cache/dalvik-cache/*
###################

sync
reboot
[G1 Android Development] aaraya1516:
yes, unless you place the file in the lib of the zip and re-sign.
[G1 Android Development] MrBlueEyez:
1. So if i'm correct, this hack should work on cyanogen latest

2. i have two times dalvik-cache, in /cache and /data. If I understand the code, /data/dalvik-cache is obsolete and should be removed?