JNI_CreateJavaVM failed - G1 Q&A, Help & Troubleshooting

Hi again,
I've searched and found that many people have this problem, but no solution was ever posted.
I get stuck on the g1 screen when flashing any cyanogen rom or hero rom.
I can't copy and paste the logcat output, but this is the error I get.
/AndroidRuntime( 1544): JNI_CreateJavaVM failed
then it loops back to
edit: Yes, I wipe lots.
edit: And yes.....I did wipe.
/AndroidRuntime( 1543): >>>>>>>>>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<
and it loops.
I've tried repartitioning, and deleting any data in the /data file
These also look like important lines.....
W/dalvikvm( 158): Cached DEX '/system/framework/com.htc.framework.jar' (/data/dalvik-cache/[email protected]@[email protected]) is stale and not writeable
I/dalvikvm( 158): Unable to open or create cache for /system/framework/com.htc.framework.jar
I've been running precupcake for days now.
I've tried all SPL's and all hero roms.
I've been able to get the cyanogen_JFv1.51_CM3-ADP to work using
HBOOT-1.33.2005 (DREA10000) (non-haykuro)
CPLD-4
RADIO-2.22.19.26I
DREAM PVT 32B ENG S-OFF
Please help. I want my fast hero rom.

I wipe before and after every rom flash.

Bump

sit tight, I'm going to ask around since we've seen this a few times lately.

Ok, what phone do you have dream(G1), or magic 32A or 32B?
Do you have an ext partition?

It's just my luck, that after a week of messing with this phone, that I can get it to work minutes after bumping my thread.
Here's what I did, in case this helps someone else.
In the log, it kept complaining that it couldn't write to data/...dalvik-cache.....something
Anyways, I tried making things writable (I've dipped in linux), but the phone was having none of it.
So, this being my THIRD sd card, I didn't suspect it. Well, here's the steps that got my phone to run cyanogen 4.0.2.
starting point: Haykuro SPL
Latest Radio
cyanogen_JFv1.51_CM3-ADP
cyanogen recovery 1.4
4 gig kingston sd card (replaced my bad 16 gig card)
wipe
flash cyanogen 4.0.2 (gets into spl, then loops with blank screen)
reboot recovery
wipe
flash spl-signed
reboot (automatically goes to recovery)
wipe
flash cyanogen 4.0.2 (loops again)
power down
swap original 1 gig card into phone (swap/ext3/fat32, same as all my cards)
boot recovery
wipe
check ext filesystem
flash cyanogen 4.0.2
success
reboot recovery
wipe
flash cyanogen 4.1.11.1
I'm not even going to bother with a hero rom for a while. I swear I've done all these steps before without changing the sd card. I hope this helps someone.
Oh, and I have a G1.

well I'm glad you got it fixed. Going to and from a hero rom requires not only a wipe in recovery but it also requires a wipe of the ext partition if you have one, just for future reference.

Fingerlickin said:
well I'm glad you got it fixed. Going to and from a hero rom requires not only a wipe in recovery but it also requires a wipe of the ext partition if you have one, just for future reference.
Click to expand...
Click to collapse
I usually just reformated my ext partition, but it seems that isn't enough. Maybe a dd command...

Related

an odd problem

Howdy friends. I recently rooted and installed cyan 4.0.1/teds hero. Everything was going smooth until about 20 min ago. The messaging app kept force closing everytime I would open a thread, so I rebooted. Upon startup, it said my sd card is now damaged. I clicked format, and nothing happened at all. what's the solution? Any help would be appreciated.
i assume your doing auto apps 2 sd with an ext2/3/4 partition? go to recovery and repair ext filesystems. that should fix you up.
I did nothing beyond rooting / cyan / teds hero.
christpuncher said:
I did nothing beyond rooting / cyan / teds hero.
Click to expand...
Click to collapse
k. if you did not partition the sdcard, then take the sdcard out of the g1 (unmount it first in settings), and put it in your pc. try to get the data off of it as best that you can. repartition and format as fat/fat32. put the data back on it, then stick it back in your g1 and see if you can access it, etc.
good luck.
your sd card corrupted, gonna have to reform it, if you install the recovery image from the mytouch that is floating around in the android devolpment forum under new recovery that has an option of reformating your sd card.into 3 partions that would work for you than reflash your rom and theme
here is the link to it. just use in terminal (after putting on root of sdcard also make sure that cyanogen's 1.4 is on the root of your sdcard as well, also for safe keeping have your cm 4.0.x rom on sdcard too)
Code:
su
flash_image recovery /sdcard/recovery-RAv1.2.1G.img
reboot recovery
then once it boots into recovery use the option to format your sdcard into 3 partitions then once it is finished reflash your rom to activate apps2sd, then once it boots up go to the terminal and type
Code:
su
flash_image recovery /sdcard/cm-recovery-1.4.img
that way you will have easily partitioned your sdcard, got apps2sd workning, then return to a recovery image with a recovery console!
I agree with you on having a recovery console but that mytouch recovery is a great way to point noobs since it will easily partion the card for them
gridlock32404 said:
I agree with you on having a recovery console but that mytouch recovery is a great way to point noobs since it will easily partion the card for them
Click to expand...
Click to collapse
thats why i included the steps to going back to the 1.4 recovery after using maybe cyanogen will look into this for his next recovery image. i also sent nephron a pm to see if he would like to include it into his partitioning guides
I hope he does make it into 1.5 for us because it just his 1.4 with some great additions and just missing the console

Hero to cyanogen ( half brick here... )

Alright, well, I got Haykuro's SPL, and I got a nice hero rom installed, but I figured it was a little too slow for my liking (mostly part of my class 2 SD card I'm sure ) so I decided too go back.
Now thanks to my infinite wisdom (total sarcasm) I have a half bricked phone, on cyans 1.5 recovery, I wiped, repaired ext, and flashed over cyan 4.2.3.1, and now it just hangs on the g1 screen. Did I miss something? I can boot into reovery/fastboot, but I can't seem to get anywhere else.
I searched a little bit, not intensively, so flame me if you feel like it, I probably deserve it. lol
Any help would be greatly appreciated!
Edit 2: I got it flashed to Jesturblurs ROM, IDK how exxactly but anyway, I still want to go back to cyanogen, is there a specific process to do this? Or do I just format everything a flash? I don't want another episode like the one I had when I nearly bricked my phone xD
gotta remove app-s and clear dalvic
you need to format your ext2/3/4 partition.
from recovery you need to go to your console (alt-x) and get into parted.
once in console type
parted /dev/block/mmcblk0
then type
print
this will tell you how much ext2/3/4 partition you have and where it is. You need to WRITE DOWN the start and ending points of that partition. Mine is partitioned in partition 2. To wipe that partition
type
rm 2 (or whatever slot yours is, it SHOULD be 2)
now you have NO ext2/3/4 partition, so we gotta creat it
type
mkpartfs primary ext2 xxxx xxxx (xxxx= the start and ending points you WROTE DOWN)
then type
print (just to be sure everything wrote properly)
if you have all 3 partitions back like normal (almost) we'll exit parted and upgrade the ext2 partition to ext3.
type
quit (this exits parted)
then type
upgrade_fs (this will make your ext2 to ext3)
then type
reboot recovery
then back in recovery,
wipe
repair ext filesystems
wipe (just for good measure)
flash whichever rom you want
if this doesnt work, let me know, we'll try and work around it
you have to flash the htc dev recovery first as well
robkoehler said:
you have to flash the htc dev recovery first as well
Click to expand...
Click to collapse
if this wasnt done, it could cause issues as well.
i assumed it was though, as cyan lays out pretty clear instructions, lol.
sykokenndogg said:
you need to format your ext2/3/4 partition.
from recovery you need to go to your console (alt-x) and get into parted.
once in console type
parted /dev/block/mmcblk0
then type
print
this will tell you how much ext2/3/4 partition you have and where it is. You need to WRITE DOWN the start and ending points of that partition. Mine is partitioned in partition 2. To wipe that partition
type
rm 2 (or whatever slot yours is, it SHOULD be 2)
now you have NO ext2/3/4 partition, so we gotta creat it
type
mkpartfs primary ext2 xxxx xxxx (xxxx= the start and ending points you WROTE DOWN)
then type
print (just to be sure everything wrote properly)
if you have all 3 partitions back like normal (almost) we'll exit parted and upgrade the ext2 partition to ext3.
type
quit (this exits parted)
then type
upgrade_fs (this will make your ext2 to ext3)
then type
reboot recovery
then back in recovery,
wipe
repair ext filesystems
wipe (just for good measure)
flash whichever rom you want
if this doesnt work, let me know, we'll try and work around it
Click to expand...
Click to collapse
Alright, I got my hero rom on there for now, and I think that's because I re-did my SD card this afternoon anyway, just to try random stuff that I research and what not, and your idea sounds pretty solid, I'll try that as soon as cyan makes a new version ( I can't help but love the hero layout ).
Thanks anyway though, appreciate it!
And for robkoehler, I would've done that first, but I'm scared sh*tless because I have Haykuro's SPL and the last thing I want to mess with are radio img's and SPL's for a while, seeing as how easily I could brick it O.O. If you could explain that process in which I won't get bricked, I'll do it and let ya' know.
Thanks for the responses guys
lol, you would be hard pressed to truly "brick" your phone.
thats the bennifit of the recovery image, you really cant.
the spl and most current radio img's are a must if you dont have them, go here;
http://code.google.com/p/sapphire-port-dream/
make sure you flast the radio before the spl, and when you flast the spl, be ready to flash another ROM, because it basically wipes everything clean, you'll have no real rom loaded on your phone.
when your ready to go back to cyan's rom, make sure you READ EVERYTHING and follow his directions to the T. His rom is one of the easier roms to go back and forth to and from, because he makes them that way.
I have everything modded nicely, newest radio/SPL (haykuro's) I was just asking how to go from a hero back down to cyan ( going from cyan to hero was easy as pie ) but the first time I tried, I couldn't use my phone for half the day ( at school no way to access SD card >.> ) I got home and re-flashed hero ( which I'm using for now ) I was just asking if there was an easy way to go back.
From what I've seen so far ( and please correct me if I'm wrong ) is...
Wipe
format ext* partition
Wipe
Flash
Correct? I don't see a need to reflash the radio and what not, but if it's required let me know, thanks!
nope, if you have the most current radio and spl, your good to go!
i think the problem your having is with some hero info still written on your ext partition, which doesnt clear itself, you need to do manually (refer to my above LONG post).
once you clear that ext, rebuild it and upgrade it, you'll have no problem going through the standard procedures to install cyan's rom.
But again, i cannot stress enough, if you do not follow all of cyan's instructions you will continue to have problems. Make sure you flash the stock 1.6 rom so you can get all the google apps cyan cant include anymore as well.
Edit: Got it!
Thanks for all the help guys!

G1 fails at flashing and reboots

hey, I had Mighty Max's Hero rom installed onto my phone running perfect and I was happy, until today. My phone is randomly rebooting for no reason what so ever. Started yesterday morning with just one reboot and didn't think much of it then when I woke up today it was going crazy and now its just frustrating. So in my frustration I backed up my phone and put a new rom
http://forum.xda-developers.com/showthread.php?t=579674
Now when I flash it goes through everything and then says
Code:
E:Can't chown/mod /system/ (Too many open files)
E:Failure at line 22: set_perm_recursive 0 0 0755 0644
SYSTEM:
Can anyone help me out on this
Specs are in sig.
ok here is what you do, you gotta reformat and repartition your sd card, load a new NON HERO ROM on your sd card, and flash it. that SHOULD do the trick.
i know its a pain in the ass but i have had to do it a couple of times. may i suggest cyanogens rom? its really easy to flash, you just have to flash a .zip before you flash his rom. he has a WIKI. its super easy and pretty stable.
haha oh geeze I did that just before I installed Mighty Max >.<
well, i'll give it a whirl haha.
Thanks for the reply
Edit: It didn't work, I still get errors =/
Did you wipe? Wipe ext?
fix_permissions?
fenixnr said:
Did you wipe? Wipe ext?
fix_permissions?
Click to expand...
Click to collapse
Yes sir, I always do
Wipe Data/Factory
Wipe Ext
Repair Ext
Wipe Data/Factory
install rom
I don't understand why its doing this.
I noticed your using Amon Ra 1.2.3. I was having a problem with the ROM not staying on my phone until I went back to Cyanogen 1.4. Weird any time the phone was plugged in and I rebooted the ROM was gone. Try flashing and after flash unplugging, reboot and get Cyanogen back on there. Just a thought.
Chadzworld said:
I noticed your using Amon Ra 1.2.3. I was having a problem with the ROM not staying on my phone until I went back to Cyanogen 1.4. Weird any time the phone was plugged in and I rebooted the ROM was gone. Try flashing and after flash unplugging, reboot and get Cyanogen back on there. Just a thought.
Click to expand...
Click to collapse
I wasn't able to flash any roms besides a few selected, i wasn't even able to flash Cyanogen's, that even shocked me. It always flashed no matter what.
I reflashed the Mighty Max after thinking that maybe me deleting everything would fix the rom, turns out it doesn't.
When my phone goes idle, it freezes up and restarts from a crash.
I guess its when I get a text, but not all the time though.
CrazyEye said:
I wasn't able to flash any roms besides a few selected, i wasn't even able to flash Cyanogen's, that even shocked me. It always flashed no matter what.
I reflashed the Mighty Max after thinking that maybe me deleting everything would fix the rom, turns out it doesn't.
When my phone goes idle, it freezes up and restarts from a crash.
I guess its when I get a text, but not all the time though.
Click to expand...
Click to collapse
Are you wiping your Ext3 with Amon Ra Recovery 1.2.3? If so, go to recovery drop to console and hit enter, then mkefs2 -j /dev/block/mmcblk0p2 enter. Wait, let it do its thing. Then,
reboot recovery enter. Now flash and proceed to reflash your recovery back to Cyanogen 1.4. If this fails, you may want to go back to RC29. Sounds like alot of work but at least you'll have a functioning phone.
Chadzworld said:
Are you wiping your Ext3 with Amon Ra Recovery 1.2.3? If so, go to recovery drop to console and hit enter, then mkefs2 /dev/block/mmcblk0p2 enter. Wait, let it do its thing. Then,
reboot recovery enter. Now flash and proceed to reflash your recovery back to Cyanogen 1.4. If this fails, you may want to go back to RC29. Sounds like alot of work but at least you'll have a functioning phone.
Click to expand...
Click to collapse
I tried typing the first command and it wouldn't work. Maybe you typo-ed it?
mkefs2?
Can I use this code to do the same?
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# rm -rf /system/sd/*
# reboot recovery
./fastboot erase recovery
./fastboot flash recovery *name of whatever you named the Cyanogen recovery image*
./fastboot reboot
Click to expand...
Click to collapse
The reason I added "*name of whatever you named the Cyanogen recovery image*" is because I tried flashing Amon Ra's 1.2.3 the same way using the default name but Terminal said I couldn't flash, so I just named it "recoveryimage.img."
blackknightavalon said:
The reason I added "*name of whatever you named the Cyanogen recovery image*" is because I tried flashing Amon Ra's 1.2.3 the same way using the default name but Terminal said I couldn't flash, so I just named it "recoveryimage.img."
Click to expand...
Click to collapse
Hmm I did that as well
in console I put
Code:
cd C:\
fastboot flash recovery cm.img (cm.img is what i named the Cyanogen recovery)
fastboot reboot
It still gives me the same error when trying to install most roms, even in the CM rom.
REFLASH THE HAYKURO "DEATH/DANGER" spl!
it'll repartition (also wipe) your phone's internal phone memory if you haven't already done so,
it's usually the cause since some roms are too big and leave residual files
next stop to ensure a clean install is to just do a data/cache wipe from the recovery menu
now you wanna either wipe/format your ext partition or just repartition your entire sd card for the heck of it
then repair ext partition,
then wipe again
then flash flash flash
phamous said:
REFLASH THE HAYKURO "DEATH/DANGER" spl!
it'll repartition (also wipe) your phone's internal phone memory if you haven't already done so,
it's usually the cause since some roms are too big and leave residual files
next stop to ensure a clean install is to just do a data/cache wipe from the recovery menu
now you wanna either wipe/format your ext partition or just repartition your entire sd card for the heck of it
then repair ext partition,
then wipe again
then flash flash flash
Click to expand...
Click to collapse
Is this the death / danger spl?
http://code.google.com/p/sapphire-port-dream/
if it is, I already have it =/
yeah that's the one, but DO IT AGAIN anyways
because it also cleans out the system.
Do I need to flash the radio again as well or just the SPL?
most times when trouble shooting these things, you'd want to repeat steps to ensure that what you're doing and what you have done at the moment aren't causing your problems, only by redo-ing these steps can you validate what's a problem and what's not, and in the process you'll most likely find a solution!
so try repartitioning, wiping, and reflashing the radio and spl, and finally reflashing your rom
just reflash both
radio, then spl
you wanna make sure everything's in good order.
sometimes if all these things don't work, it might just be your sd card has crapped out on you
and its time to get a new one, sd cards and the flash memory on them are limited to however many read and write cycles and if you've been using linux swap on them, then you're using your sd card as RAM pretty much.
phamous said:
just reflash both
radio, then spl
you wanna make sure everything's in good order.
sometimes if all these things don't work, it might just be your sd card has crapped out on you
and its time to get a new one, sd cards and the flash memory on them are limited to however many read and write cycles and if you've been using linux swap on them, then you're using your sd card as RAM pretty much.
Click to expand...
Click to collapse
I haven't been using my SD card as ext for long though.
I did what you said and it still says the same error.
I even went ahead and installed a new recovery through fastboot to Cyanogen.
EDIT:
I brought the phone back to RC33 and rerooted then upgraded recovery CM 1.3 and Haykuro Death SPL and Latest Radio and I still get the error code.....
I'm going to break this phone >:-(
SenseHero writes but doesn't boot, any reason why?
Sorry about that, check my OP post forgot the -j.
Chadzworld said:
Sorry about that, check my OP post forgot the -j.
Click to expand...
Click to collapse
it says
Code:
mkefs2 : not found

Flashing trouble

Okay, i've been having a problem where my device gets stuck at the g1 screen after i flash ANY rom, i've given each rom i've attempted to flash up to 10 minutes each, i have to resort to a battery pull and nan restore to get my phone working again, i've tried flashing roms on two different cards, both with the same horrible end. I've tried reformatting, repairing partition, and wipe wipe wipeing, but nothing seems to work. Any ideas?
my specs:
OS: im running cyanogen's donut (which i have a nan backup of)
SD: 4gb class 6
Radio: latest
SPL: Danger
Recovery: Amon_RA's
Ext3: 1000mb
swap: 32mb
what rom are you tryna flash ill help you out.?
for example if you want the new cm508 t4 then u gotta download the following in the listed order:
1. download & install the newest radio for your device
2. download & install the danger( aka deathspl )\
3. download & install the latest version of cyanogen for your device.
that easy bro. HERE is a gide a friend of mine put together for me and its acurate and current. although there are nomore file links so u have to search google or xda search for the needed files.
good luck.
Requested to be moved to Q&A because this is NOT Development.
okay i've been trying to flash any non ram hack donut and any eclair, none of them make it pass the g1 screen, i've tried everything i have all the correct specs and use the correct procedures but nothing works
i've tired
the latest superD
the latest superE
the stable cyan Eclair
Chomatic Eclair latest
and even though i have it backed up and when
i restore it it works, the cyanogen donut, which i
cannot wipe and flash
xStuntmanEdx said:
okay i've been trying to flash any non ram hack donut and any eclair, none of them make it pass the g1 screen, i've tried everything i have all the correct specs and use the correct procedures but nothing works
i've tired
the latest superD
the latest superE
the stable cyan Eclair
Chomatic Eclair latest
and even though i have it backed up and when
i restore it it works, the cyanogen donut, which i
cannot wipe and flash
Click to expand...
Click to collapse
Why can't you wipe?
Do a fresh nandroid/bart backup of your current working system.
Backup your SDCARD FAT partition to your computer.
Reformat your SDCARD (completely, no ext partition or swap partition)
Make sure you have Amon_Ra 1.7.0 recovery installed
Restart your device in recovery.
Wipe data and dalvik-cache.
Repartition your sdcard
Convert ext2 to ext3
Convert ext3 to ext4 (optional)
Mount SDCARD from Recovery onto your computer.
Re-download your the rom that you want to install and gapps if applicable and place them on the root of your sdcard.
Safely remove the device from your computer
Unmount the SDCARD from the phone (may need a reboot)
Flash your desired rom (don't reboot yet)
Find ddms.bat in the tools folder with the AndroidSDK and run it.
Click logcat
Reboot your device and let it SIT and watch the logcat.
If it seems to stop for a long period of time highlight the lines at the bottom and save the file to your desktop. Open it to confirm that you have the log in your text file.
Upload it to pastebin and post the link in this thread for others to help you further.

[Q] STUCK A

got my nexus one week back.its rooted .it has rapassion recovery 2.2.1 and HBOOT v0.35.0017.i wated to try my hands on flashing.so i downloaded [ROM][2.1+3.0/2.3.3] Rev0lutioN v2.8 followed the steps wiped data,done partition swap size 0 and ext 1 1024 mb ,selct ext2 ext2,then ext3 ext 4.then flashed the rom from sd card .but on rebooting it is stuck @ NEXUS ONE X IMAGE .pls show me some way to flash sucessfully i can get back to that fastboot,recovery etc page by volume down and power button
i would dl this to sdcard and flash a couple times thru recovery before flashing rom. wipe dalvik and battery/rotation settings too
http://dl.dropbox.com/u/28338566/Extreme-wipe.zip
not wiping system can cause issues
assume you met ALL other rom requirements
also i don't reformat sdcard while in phone--use sdformatter
the first thing i do when i get stuck is pull battery and reboot--not sure if you tried that
thanks..i will try that...does it matter well i was trying to flash nand version may be that caused problem..one more help can u pls guide me to how to do 1gb ext4 partiton..or sugget me some stable sense version for nexus i can flash easily
if you are new as indicated by one week ownership, i would start out with cm7 stable roms from android development section
use the system wipe zip i provided
sounds like your card is already partitioned
best thing to do is read up in wiki and as much of rom thread you are going to flash, the op page has good info and i usually read last few dozen pages
if you flashed nand version, assume you flashed blackrose hboot and repartitioned
hboot to recommended sizes per op page link, if you did you will have to go back to stock hboot to flash cm7 or try sd version of rev rom
i had surgery and not feeling well tonite, let someone else come along to add to my posts
ken
feeling a bit better, here is quick answer
backup sdcard
i use sdformatter to format outside phone--full erase and size adj on
http://dl.dropbox.com/u/28338566/SDFormatter 2.0.mht
this ensures card is fully formatted--phone just does quicky
then put card back in phone and use amon ra to repartition card to 1gb ext 4 0 swap
seems you did those steps already
then copy sdcard data back to phone

Categories

Resources