yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Sik-1:
just use the internet google.com/voice, to me apps are just pretty:rolleyes:
[G1 Android Development] studjuice:
Well see I use an unlocked mytouch on ATT, so I only get 2G speeds. Therefore using the browser to accomplish stuff is kinda lessened
[G1 Android Development] cmsweet21:
im using fastest

after typing #mount -o rw,remount auto /sdcard

it says

mounting auto on /sdcard failed: invalid argument...

help.
[G1 Android Development] cmsweet21:
i almost done doing this using fastest but when im @ last line

it says cannot remove : no such file

im talking about after typing this

rm /system/sd/dalvik-cache/*
[G1 Android Development] buzzdroidx:
what did I miss?

I just get FC after FC till i have to reboot it.running SD 1.10.2 black nexus no ram hack. No themes, no widgets. Followed the directions twice and when it boots it just fails. I did try the e2fsck options, Ive tried everything mentioned here, except maybe using tehsteves method.any ideas?

one question should i have done the defanged setup previously to have the right system running or does it matter?

oh and linpack right now is

mflops 2.242

time 2.41

norm res 3.36

precision 2.22.....
[G1 Android Development] heybobitsme:
Just for s&g's I flashed the .zip and it appears to be working for me. No FC's and Linpack is showing 3.5 Mflops.
[G1 Android Development] buzzdroidx:
and yep it worked for me thanks for sharing

i now get

3.35

1.62

3.36
[G1 Android Development] traicer:
i finally got passed the mt3g screen using the latest super d, but i get a black screen with nothing for a home =[ any idea, i tried running fix permissions but didnt work any ideas?
[G1 Android Development] sturmeh:
Just out of interest, in theory should JIT impact battery life in any way?

What are peoples experiences?

I haven't noticed anything out of the usual myself.
[G1 Android Development] tnpapadakos:
no noticeable effects either good or bad
[G1 Android Development] ccooluke:
to no avail

Hello all! I've been trying for oh... over 2 hours currently to get this to work. No luck at all. I got the FC's on 1st boot like crazy. I've read about every page to this topic. Tried the jit_signed.zip, flashed it, won't boot past G1 screen. Tried to install normally the dusted_donuts from the first page + the install plus script... again stuck on the G1 screen... tried the instructions on the first page to fix that... and...... nothing... still a G1 screen as I type this. I'm going to reboot into recovery, nandroid restore and call it a night.

read my sig for phone specs please. What am I doing wrong? What do I need to do? what commands exactly should I be listening to?? btw... I dont have any ext on my SD, nothing is partioned at all, just fyi if that makes a difference...

Please help me. I'd love to get this working on my phone. thanks!!!
[G1 Android Development] w1ck3d_crx:
I tried to flash the zip and it hangs at the g1 screen, then I tired the 1st way to do this and I get to the baxkup and install part and the terminal and it says sh: can't open back up sh: can't open install. So do now?
[G1 Android Development] juangil:
the zip should work, try rebooting (three finger salute) after it hangs on G1 screen
[G1 Android Development] w1ck3d_crx:
call home power right? i just did the first steps again and get fc city again
[G1 Android Development] juangil:
call+power+menu
[G1 Android Development] w1ck3d_crx:
wiped and flashed cyanogen again then flashed the jit zip file phone is still hanging at the g1 screen
[G1 Android Development] juangil:
try the install-plus but before you "mount -a"

do: mount sdcard

mount system

mount -a

install-plus

it will reboot if it hangs on G1 then do the three finger salute and let it boot itself

hope it works
[G1 Android Development] ccooluke:
hey what's the call+power+menu do?? does it force it to boot? [that'd be awesome... doubtful though...] so you're saying do the install plus first??? then flash the zip???

I'm just trying to see what goes with what, the OP's instructions... the install-plus script, the zip... do what, where, in what order? because I tried for over 2 hours... :( and nothing but a G1 boot screen is my result.
[G1 Android Development] xxmonsterx:
crx use my install plus file on pg 30
[G1 Android Development] superbart007:
does this work

Does anybody know if this will work on enomother's the official?
[G1 Android Development] ricky326123:
Not sure if it's because of the JIT but..

When the g1 is at 1% battery left, it powers down as it would normally, but I can power it back up, and it will last for hours more with 3g I'm talking 6-7 hours.

Could be some issue with the rom I'm using though
[G1 Android Development] w1ck3d_crx:
Done this and got stuck on g1 screen too, I mean I wait like 30 mins b4 I wipe and flash the rom again
[G1 Android Development] irishrally:
Does this JIT work with CSDIv4 ROMs like HTCClay's CSDIv4 remix?
[G1 Android Development] jad011:
yeah it works, not sure how much this increases preformance, any success stories ?
[G1 Android Development] Pfeffernuss:
No, does not work...
[G1 Android Development] frygost:
Hi all,

I try to enable JIT on my HTC Magic running Cyano 4.2.15.1 but everything i try failed: the phone is locked on the HTC MAGIC starting screen with only the "debuggerd" processus consuming CPU (around 8%)

Any idea of what i'am doing wrong ? I try zip file, manually, install-plus script ...

I even just try to only replace the libdvm.so by the jit-one, but instead of having a lot of FC, the phone is just locked to the starting HTC screen.

Thanks you

PS: Between each attempt, i nand-restore and reinstall cyanogen so my phone is in a working condition.
[G1 Android Development] tnpapadakos:
take the zip file, put it on your sdcard root folder

reboot into recovery, flash/update any zip, flash/update the zip

reboot

if thats no good, get another copy of the zip
[G1 Android Development] formula91:
Wait, so do I need an ext partition in order to use JIT now?

I was using JIT before and the new kernel breaks when implementing JIT. I never had ext parittion before.

whenever I try to use the command mount -a I get the invalid argument error for mmcblk0p2.

I tried all the methods in this thread, they all end with the same exact logcat and me being stuck at the initial splashscreen (not boot animation loop)

That's the logcat. It will just loop endlessly from there.
[G1 Android Development] frygost:
i think i have the same problem, i don't have an ext partition (i have a magic and don't use app2sd).

Let me know if you find something :)
[G1 Android Development] skater991:
??

how can I do this on a mt3g?
[G1 Android Development] aldaris652:
same here, it worked before when i had a ext partition -_-
[G1 Android Development] wpickel:
Re: [HACK] JIT enabled Dalvik VM on Android 1.6 (Dusted Donuts) [Hack]

I ended up using the ZIP file and it works great...consistent 3.5s

The only thing not working is Google Voice (it just FCs). Has anyone found out how to get Google Voice working with this?
[G1 Android Development] sturmeh:
Yes the process is to check the EXT file system on the SD card, then copy the .so lib, then delete existing dalvik caches and symlink fresh ones on the EXT file system.

I'm not sure it's required but most people have already done this... (apps2sd)
[G1 Android Development] blackjackboy:
WOW!

I went from having a steady 2.2 Megaflops (SuperD 1.10.2) all the way to 3.472 after a few console commands and some searching around (I got

tons

of fcs. I finally searched the thread... :) , avoided some flaming, and got my G1 running 1.3 megaflops faster.
[G1 Android Development] nlysurferdude03:
So, this is how I got JIT working on superD's beta1.

I really want to install the Music Player Beautification mod which requires JIT to be disabled to install properly. Is there an easy way to disable JIT, then re-enable it after the music player mod is installed?

:confused:I've done some searches and read many pages but can't find for the life of me how to do this.:( Any help would be much appreciated. Thank you in advance.

**EDIT** It would be nice to still have the "know how" on how to do this...but superD just released 1.10.3 which has the beautification mod already installed, so its not necessary but still would be nice to know. Thanks again =]
[G1 Android Development] gophergun:
Bah, used the update.zip in this thread on SD1.10.2 and everything appears to be working great, except my apps are now mostly gone. Fix_permissions pulls up a bunch of so_and_so does not exist. Any thoughts or ideas?
[G1 Android Development] blackjackboy:
Are you using an ext partition?
[G1 Android Development] blackjackboy:
There's no easy way, but you can reflash the rom and then JIT.
[G1 Android Development] MrBurrito:
abd pull /system/build.prop build.prop

Open in WordPad and change the line from:

dalvik.vm.execution-mode=int:jit

to

dalvik.vm.execution-mode=int:fast

SAVE

adb push build.prop /system/build.prop

adb reboot

or use root explorer and edit the build.prop file in /system to reflect the change above on the phone itself

to re-enable it do the same steps, and change fast to jit
[G1 Android Development] nlysurferdude03:
Thank You!!

Thank you very much!! That is exactly what I needed. Now if I'm on another rom, I'll know what to do =]

And to BlackJackBoy, thank you as well. much appreciated!
[G1 Android Development] Ghost117:
Has anyone tested this on SuperD 1.10.3? I am not overly good with understanding the mechanics of this without a step by step guide so I don't feel like I want to be the first one to risk it.

Also, I have a mytouch 3g so i was wondering if it was posible to use the install-plus method from a terminal emulator rather than recovery (seeing as recovery requires phisical keyboard)?
[G1 Android Development] Pfeffernuss:
The dev of this Rom himself specifically tells not to use Jit as it does more harm than good.

YMMV, ofcourse :rolleyes:
[G1 Android Development] formula91:
If I get an ext partition, isn't superd going to automatically initiate apps2sd? I don't want that to happen. MT3G has plenty of space. How do I make it so that SuperD ONLY uses the SD card for JIT?

Furthermore, did Android always use the SD card for the dalvik-cache? I never thought so. Why was it that before the new kernel moved the dalvik-cache from data to cache, I could use jit without an EXT partition?
[G1 Android Development] misteropinion:
Just a data point, visited FC City by using the default install, but I backed it out and used the jit_signed.zip method, and that worked fine. Give it 3-4 rebooted to get completely happy. I usually watch the activity via adb logcat and let it settle down bfore I boot it again.

I didn't take a linpack reading before, but I'm getting 3.3 now, and my G1 is noticably faster.

G1, Cyan 4.2.15.1, ADW Launcher 0.6, JIT, woo!
[G1 Android Development] ZailCZ:
Force closes

I do jit as in post 1 and when i boot i get lots of fcs, fix file systems dont help. how can i fix?

Fasttest 3.1.1
[G1 Android Development] domenukk:
Yeah you can fix it.

go to /system/build.prop and delete the line that enables JIT ;)
[G1 Android Development] come2jojo:
how about your CPU Hz!

it is important in the test!
[G1 Android Development] MattKilla:
How did you get the jit_signed.zip? I can't seem to find it in this thread.
[G1 Android Development] erlern:
Hi, can someone be so kind to put out the steps for installing this on a Cyanogen 4.2.15.1 (No Ram Hack)? Thanks. Read the whole thread but am now confused over which zip file to flash and script to apply. Thanks in advance :)
[G1 Android Development] tnpapadakos:
you can just put the zip file on your sdcard, then flash from recovery if you have amonra...reboot a few times after that
[G1 Android Development] erlern:
Thanks... I'm installing it now. Btw, what do I do if I want to remove JIT from my device? Further updates for CM will not affect JIT right (i.e. this is a once off installation)? Appreciate any assistance you can give me :)
[G1 Android Development] tnpapadakos:
if you want to "remove" jit (really its just disabling it or turning it off, not removing it) you go into sytem/build.prop and edit the last line where it says

# Set Execution Mode To JIT Davlik.

davlik.vm.execution-mode=init:jit and change init:jit to init:fast

(as stated a couple of posts ago at http://xdaforums.com/showpost.php?p=6187440&postcount=456)

when i updated from cm 4.2.14 to 4.2.15.1, i didnt have to do anything, jit was still there
[G1 Android Development] macacomachec:
So still no way to have it working with cyanogen without an ext partition?
[G1 Android Development] :
That's my problem, and I've been following this for weeks, and tried everything I know to do. I think we're just ****ed, lol.
[G1 Android Development] macacomachec:
Re: [HACK] JIT enabled Dalvik VM on Android 1.6 (Dusted Donuts) [Hack]

i think it's just a path problem,if dalvik is still there we can tell the phone were to find it...could try asking about it at my android's doctors...

Sent from my T-Mobile myTouch 3G using the XDA mobile application powered by Tapatalk
[G1 Android Development] AustinKnight45:
This is a nice lil hack but I sure do need my google voice working...:(
[G1 Android Development] IronWolve:
Tried to update my htcclay fasttest 3.1.1 with the JIT, but all I get is FC's. Everything I read it should of worked. No idea whats going on.
[G1 Android Development] licknuts:
Give this a try: updated the original post with a permanent fix:

http://xdaforums.com/showthread.php?p=5704139#post5704139
[G1 Android Development] dangambino:
yeah, i think i suffer from that disorder you were talking about in your update in th op. :( anyway, the link for the updated script is text, just add to gscript, then run commands?
[G1 Android Development] licknuts:
You can try it (I don't know what may happen using gscript) however, the script for most people would be needed to correct their FCs on boot and is why it is to run before execution of script 99* in /system/etc/init.d.
[G1 Android Development] dangambino:
k. thns. so not using gscript, just run the command via terminal?

i guess my question is, just copy the text to root of sd, then run commands? i understand it should be ran before boot

oh yeah, and thnnx, great job on this!! i use this hack with almost every rom i flash now!!!!
[G1 Android Development] dangambino:
nvrmnd dude. i got it. thnx. and androidonroids site is coming along!!!!!!!!!!!!!
[G1 Android Development] Sik-1:
running OEv1.3 and im trying the new method, everything is setup in init.d, but now wen i run the install code for the JIT boost, it reboots but i get fc on phone, gallery and my calender, so i guess it doesnt seem to fix all:D

i used the install-plus.dat script
[G1 Android Development] Phonekenstein:
only tested with CM 4.2.15.1 and SuperD 1.10.3, not sure what OE does let alone if the use init.d or super, try the file as /system/sd/userinit.sh, not even sure if eclair roms had this issue.
[G1 Android Development] Klyentel:
It works!

Well I can confirm the new 86dalvik code works for me:)

got it going on the first try, not a single problem...rebooted 3 times, after a short 15 min wait from the first boot...also, the first boot after sync didn't take quite as long as I expected, about 2 mins-normal boot time:cool:

I used ADB to install mine...but I also copied the code and made .sh file from Notepad++....then renamed to install-plus and stuck it in my dusted-donuts folder, overwriting the old one. So I can have it handy, and ready to use on future flashes, without having to type out the command!;)

I attached it if anyone's interested. Don't worry I didn't make any changes it's the exact same code Licknuts has on the OP (just remember to keep the original fix file in /sdcard/downloads). Download it, save it, rename it, remove the "txt" at the end, pop it in your dusted-donuts folder on sdcard and you're good to go.

I haven't tested any benchmark speeds yet...but I tell ya, things sure seems much snappier!...who knows, only time will tell, I'm goin to run it for 24-48 hrs. and test its stability before I get too excited.

By the way, @Licknuts, is it safe to nandroid, switchrom, or bart backup the rom while dalvikvm is enabled?:confused:
[G1 Android Development] licknuts:
Thank Phonekenstein, granted it's not the most beautiful code, but it cuts to the chase. The script is simple enough that if you read it, you can see that recreates /cache/dalvik-cache then does a bindible mount to /data/dalvik-cache, which really is just defeating the new option in the cm 4.2.15.x kernel, it's a great option to free space but even using hard spl and no apps2sd you will run into a problem somewhere down the road. We have seen symbolic links as /cache/dalvik-cache get deleted and return FCs when booted up. Have seen it be just fine with having /cache/dalvik-cache symbolic links pointing to /system/sd/dalvik-cache as well but at some point installing some performance app would change all that and cause it to start deleting those fixes, the only thing that worked and seemes an all around solution is to just bind mount /cache/dalvik-cache to /data/dalvik-cache, it doesn't seem to interfiere with apps2d and if you don't use apps2d and have /data/dalvik-cache mounted on some other location, the bind will follow that target.

You can check mount points in terminal via this command.

mount

If you prefer to use /cache/dalvik-cache for storing some dex files modify the script to not remove /cache/$dc and manually mv some dex files and leave enough space for downloads from the market maybe around 10mb.

looking at logcat it appears if /cache is near full it tries to clear it out and errors on /cache/dalvik-cache because it's a directory.

As for Nandroid you can backup using while JIT is installed however, I have seen many times running Nandroid -r manually that it will fail to write out the boot.img so it may be a good choice to extract boot.img for your ROM installer zip and keep available to manually run.

flash_image boot /sdcard/boot.img

some cases you may need to erase the boot partition first and easiest to use fastboot mode.

fastboot erase boot
[G1 Android Development] PJcastaldo:
I am a little lost i think...... I have used this hack previously with no problems on and older cm 4.x. I am running the newest cm and every time i try to use the hack i get stuck in a crazy F/C frenzy on boot up. . . so i gave up. Well then today i see there is a possible fix, but i tried it as well and i get stuck in the same f/c attack. Could some one maybe tell me what i might be doing wrong. I am using terminal emulator on my mt3g to enter the codes and what not. i unfortunately do not have access to a comp that i can use adb.
[G1 Android Development] licknuts:
really only needed for 4.2.15.x cm-kernel based ROMs anything before that version shouldn't be needed nor any of the other work-arounds.

pay attention that you download 86dalvik-cache-fix.txt and are copying it to /system/etc/init.d as 86dalvik-cache-fix <---no .txt file extention. If permissions are set set with chown and chmod with no errors and you get a blue LED when booting the script executed. The Blue LED is the visual notification that the script ran, doesn't necessarily mean it executed successfully and without errors (we will work on that later).
[G1 Android Development] Sik-1:
this is the thing tho, wen i was using OEv1.2.2 i would use the same method and it would work perfectly fine, but since v1.3 all went haywire, i guess the files have moved so im gonna have to re-write the script or add the script from the french rom to enable it
[G1 Android Development] Sik-1:
if using the hack from previous cyan and it was working all u had to do was a no wipe update of the latest and it should stay enabled
[G1 Android Development] Sleepytime28:
I am also getting FC's like PJcastaldo. I checked everything copied over correctly. The only thing I can think of that is causing my FC's is the fact that I am running the OC patch. I will reflash my kernel and then try the JIT hack and see if it makes a difference.

Edit: I reflashed CM 4.2.15.1 ran the JIT sh install rebooted got endless FC's. copied 86dalvik-cache-fix.txt to /system/etc/init.d as 86dalvik-cache-fix. Got no errors with chown or chmod. rebooted and still got endless FC's. I did not get a blue led indicating the script executed. I must be doing something wrong. Any Ideas?
[G1 Android Development] :
Thank you, licknuts, for taking time to respond to my previous post. I am however still having issues. That's exactly what I did, and exactly what I'm experiencing. I am now going to try the install-plus method. However, I didn't see the blue LED either.
[G1 Android Development] Phonekenstein:
try and put the 86dalvik-cache-fix on /system/sd/ as file named userinit.sh or if that exists merge the commands from 86dalvik-cache-fix into userinit.sh . /system/sd exists even if not using. an ext partition on mmcblk0p2, it's there as a place holder for a mount point, think the permissions are:

chown 0:2000 /system/sd/userinit.sh

chmod 755 /system/sd/userinit.sh

let us know, if that works, not sure either if the magic has leds as the G1, seems like it should,.
[G1 Android Development] Sleepytime28:
Finally got this working. I am also using the OC kernel patch. wowwa wowee its a beautiful thing. I've been running both hacks for 15 hours or so no reboots no fc's and I havent seen any problems in any of my apps.:D lets hope it doesnt become unstable. I'm getting linpacks varying from 3.8 to 4.2.
[G1 Android Development] sturmeh:
Care to share how you got this working?

PS. Can you get ramhack also. (is this g1?)

I'm getting no blue led for the fix. ( I hate deleting the cache aswell, it takes so long to rebuild! )

Tried userinit.sh and still no blue led.

EDIT: I finally got this working, turns out the provided text file is encoded for DOS not unix, you need to edit the file in nano or vi on a unix machine or the phone and remove the ^M characters from the end of the command lines.
[G1 Android Development] :
not at all the case for me. :/
[G1 Android Development] Phonekenstein:
excellent catch sturmeh, odd though because I have Notepad++ set to unix because of that ^M formatting character. Will revise in VI editor.
[G1 Android Development] :
Wtf did you do to fix this? I opened in vi and nano and even wiped the dust on my windows to try Notepad++ and nothing worked. o.o Well, I downloaded newest one off main post and it worked. Man, thats some bull****. :P Thanks, bro, and thank you sturmeh. =]
[G1 Android Development] Phonekenstein:
The end of the file had many trailing ^@ , caused by the webhost file editor, did the edit it in VI to fix them.
[G1 Android Development] sturmeh:
Simply put when you open the script in vi, there should be no extra characters at the end of every line.
[G1 Android Development] Christopher3712:
I get nothing but FC's when applying these. . I even did a clean install (after wiping) and applied the patches. running SuperD 1.10.3
[G1 Android Development] sturmeh:
Here's my userinit.sh it is unix encoded...

Just make sure you chmod it +x...
[G1 Android Development] Phonekenstein:
Just a FYI, anyone that downloaded the previous v1.1 should grabe and replace. the 86dalvik-cache-fix file, some garbage characters at the end of the file could and appear to cause failure of the script.

Alternate install method is nice:

su
mount -o rw,remount /system
cd /sdcard/download
install -o 0 -g 2000 -m 755 86dalvik-cache-fix.txt /system/etc/init.d/86dalvik-cache-fix
[G1 Android Development] :
I opened it in VI, and still had nothing. Opened in nano - nothing. Even booted into Windows w/ Notepad++ (which I know caused the original problem) - nothing. Oh well, works now. Thanks, but that just plain out baffles me.
[G1 Android Development] philosophics:
ok so....

i just downloaded the .txt with g1

i ran the commands in terminal and rebooted.

blue led came on and stayed on until boot up was complete.

typed dalvikvm -h and it comes up with error.

i'll post screenshots in a minute but i know nothing happened except for the blue led at boot up cause linpack shows on average 1.5 to 2.2 in mflops

screenshots of that will be posted as well...