Removing Dalvik Cache - G1 Q&A, Help & Troubleshooting

If I delete the /data/dalvik-cache folder from the phone will it recreate itself. From what I'm reading this may assist in fixing my phone boot errors.

Don't think it will cause a problem. You can try rebooting after removing the files (dalvik).

I would recommend deleting it in Counsole just because it'd be safer for all your apps and processes, but it should be recreated in Android's framework.

needed to remove /data/dalvik-cache
Metatronx said:
If I delete the /data/dalvik-cache folder from the phone will it recreate itself. From what I'm reading this may assist in fixing my phone boot errors.
Click to expand...
Click to collapse
thanks this was just what I needed... I was having the same error with the first boot as you had in some of your earlier comments in the thread. used adb to connect and remove the dalvik-cache file and then reboot... the next reboot nicely passed the 'G1' screen...and looks like my g1 may be back and running... if the endless force closes ever end

lukekirstein said:
I would recommend deleting it in Counsole just because it'd be safer for all your apps and processes, but it should be recreated in Android's framework.
Click to expand...
Click to collapse
How do you do that?

ThR1LL said:
How do you do that?
Click to expand...
Click to collapse
reboot in recovery
alt X to go into counsol
hit enter to get in SU mode
if you don't have apps2sd
mount data
rm -r data/dalvik-cache
reboot
if you have apps2sd
mount system/sd
rm -r system/sd/dalvik-cache
reboot
Good luck

borodin1 said:
if you have apps2sd
mount system/sd
rm -r system/sd/dalvik-cache
reboot
Good luck
Click to expand...
Click to collapse
is it the same commands in adb?

Related

SD wipe w/o losing music/movies

I have looked all over for the answer to this and I am at my wits end...
I have been trying out different roms and themes to find that sweet spot for me, and I think I have now. I know that alt+w on the bootloader only wipes factory data and such, and that if I reformat my sd card it'll wipe everything including my ext2 partition. But I don't want all of that to happen. I want to wipe the apps I have on my sd card but keep the music, movies, etc I have on there without having to uninstall each one thru a file mgr (I have 83 apps right now).
The problem I am having that is making me do this is that when I flash cyan3681 and start over at the adp screen where you tap the android, right after that it starts showing force closes for a number of apps, and it always opens open overclocker and kinda hangs there. On top of all that, at some point, it messed with some apps in my drawer and either won't allow me to access them anymore or it shows the stock apk icon with the little gear and the page behind it.
I just want a fresh start, without having to spend an hour(s?) doing it. Thanks for any help.
run this in terminal
su
rm -rf /system/sd/*
Bzerk1 said:
a question on this, can you use this command in the console of cyanogen recovery 1.4 (alt+X)? and do you stil have to input
su before rm -rf/system..... ?
Click to expand...
Click to collapse
in recovery console just type
mount /system/sd
rm -rf /system/sd/*
alritewhadeva said:
run this in terminal
su
rm -rf /system/sd/*
Click to expand...
Click to collapse
a question on this, can you use this command in the console of cyanogen recovery 1.4 (alt+X)? and do you stil have to input
su before rm -rf/system..... ?
Bzerk1 said:
a question on this, can you use this command in the console of cyanogen recovery 1.4 (alt+X)? and do you stil have to input
su before rm -rf/system..... ?
Click to expand...
Click to collapse
You would be running in recovery console so you would need to use alritewhadeva's method posted a couple posts up:
Do this before the above:
Code:
# mount -o rw /dev/block/mmcblk0p2 /system/sd
Thank you, that worked perfectly.
I am M3 said:
Do this before the above:
Code:
# mount -o rw /dev/block/mmcblk0p2 /system/sd
Click to expand...
Click to collapse
just "/# mount /system/sd" works fine
Adam17 said:
Thank you, that worked perfectly.
Click to expand...
Click to collapse
You're welcome. Please change the thread title to [SOLVED]

Help using Terminal

I'm currently using Dwangs donut ROM.
For some strange reason my Terminal Emulator is "missing".
There is no icon for it in my app tray.
Market shows it as installed, but cannot open it nor uninstall it.
I have now installed Better Terminal Emulator Magic. What commands do I need to enter to completely remove Terminal Emulator from my system, so that I can try reinstalling it from the Market?
I hope I've made myself clear - if not please feel free to ask for clarification!
Look in the Development Tools or Spare Parts. I've seen a couple builds where it ends up in there.
qwerty3656 said:
Look in the Development Tools or Spare Parts. I've seen a couple builds where it ends up in there.
Click to expand...
Click to collapse
Just looked in Spare Parts - not there. Can't find Development Tools on my phone.
To remove it do this in the recovery console
mount system
rm /system/app/Term.apk (i think that is the name for it)
reboot
david1171 said:
To remove it do this in the recovery console
mount system
rm /system/app/Term.apk (i think that is the name for it)
reboot
Click to expand...
Click to collapse
Ah, now we're getting somewhere (sort of!)
I've done that, but get the response:
rm: cannot remove ' /system/app/Term.apk' : No such file or directory
that means its not there or its spelled wrong..
try using /system/sd instead of system
also, maybe clearing the market cache would work
B-man007 said:
that means its not there or its spelled wrong..
try using /system/sd instead of system
also, maybe clearing the market cache would work
Click to expand...
Click to collapse
Tried both of these - no joy :-(
1. Same response as before
2. Terminal Emulator still showing as installed (but Open & Uninstall buttons greyed out), even after clearing Market cache.
well if you dl one of cyanogens roms, you can pull the apk from there and push it to system
Yea or adb install -r
if it is not in /system/app then you can drop it in there with these commands, make sure that the .apk is in the root of your sdcard
Code:
mount sdcard
mount system
cp /sdcard/Term.apk /system/app/
reboot

help voicemail app gone

My sprint voicemail app is gone..?.?.? Not sure what happened to it after i flashed modaco 1.1. Anybody got a copy for me?
its still there just doesnt have an icon
Hmmm whats the name of the file and how do i fix it?
i would flash the fresh rom right now as they are always doing updates...but to fix your problem do this
Code:
adb remount
adb shell
rm -r /data/dalvik-cache
rm -r /data/boot-cache
reboot
BigBallin said:
i would flash the fresh rom right now as they are always doing updates...but to fix your problem do this
Code:
adb remount
adb shell
rm -r /data/dalvik-cache
rm -r /data/boot-cache
reboot
Click to expand...
Click to collapse
this didn't work for me anybody got a different answer.
Boot into recovery and try "Fix uid app mismatches" or you can download the App Installer by Flipz and run his Clear Cache thingy (www.geekfor.me and the go to downloads youll see app installer). Or if you have the 1.5.1 recovery you can clear the delvik cache in there somewhere.
Couple of options for you..
or just re-install the voicemail app..
app is attached
nelson8403 said:
or just re-install the voicemail app..
app is attached
Click to expand...
Click to collapse
Or that LOL.
Vm app wouldnt install
acm2117 said:
Vm app wouldnt install
Click to expand...
Click to collapse
Error? Which method above did you try?
Well i used astro file manager. How should i do it? Ive got a terminal program to use if i need to.
acm2117 said:
Well i used astro file manager. How should i do it? Ive got a terminal program to use if i need to.
Click to expand...
Click to collapse
You should be able to Extract the ZIP to the root of the SD card, open Astro move into the SD card folder and just click on the APK. Then open it with Program Installer(i think thats the option, someting close).
If it errors, post back the message.
I moved the .apk i extracted to /sdcard/ and opened it with app manager and chose install. The error it gave me just said voicemail could not be installed on this phone.
I am also getting the error, "application not installed" when trying to install.
BigBallin said:
i would flash the fresh rom right now as they are always doing updates...but to fix your problem do this
Code:
adb remount
adb shell
rm -r /data/dalvik-cache
rm -r /data/boot-cache
reboot
Click to expand...
Click to collapse
i tried this and it worked this code should def work

Apps missing and won't let me re-install

something weird happened on my phone when I installed the SuperD 1.9.3 rom. I've never had this problem before, so see if you can help me. I installed Chompsms and Acontacts amongst a variety of other apps. Well, I was texting earlier, when my phone froze. No biggy, I popped the battery out, placed it back in, and turned it on. Well I got the green boxes in place of the the logos for Chomp and Acontacts. I clicked on them and it said that the apps weren't installed? um, ok. I have aps2sd with ext3, so I figure something must have corrupted the file, no biggy, I'll just redownload it. So I go to the market, and it says the program is installed. I click on the program to try to reinstall, and the bottom where it says "open, uninstall" are greyed out. So the app isn't installed, but it is, so I can't uninstall and re-install. Anyone, help please? I really use these 2 apps!
Delete the apk's from /system/sd/
It also sounds like your marketdb file is still there too. I've had this problem with Backup for root users. It'll import the marketdb but sometimes it won't import the APK's. So that leaves you with no apps and the market seeing that you already have it. I'm trying to find where the program is pulling that file, and i'll let you know. If anyone else knows where it's at feel free to jump in.
nolimit78 said:
If anyone else knows where it's at feel free to jump in.
Click to expand...
Click to collapse
/data/data/ I think.
evilkorn said:
/data/data/ I think.
Click to expand...
Click to collapse
That's what I was thinking but I didn't see it there...
While Im still looking for that file, you could also do the following:
Code:
Use switchrom and save your rom
flash a new rom
download the apks that are giving you problems (if its not too many)
use linda to save the apks to your SD card
switchrom back to the old rom
download and use linda to install the apks you saved.
It's not pretty but it'll get the job done.
Had a little time to look at the phone, did you try to delete the folder in /data/data/com.android.vending/?
Goto terminal emulator.
Type - mount -o remount,rw /dev/block/mtdblock3 /system (enter)
Type - rm /data/data/com.android.vending/databases/* (enter)
Type - reboot (enter)
Words in bracket are instructions and not to be typed.
shadowch31 said:
Goto terminal emulator.
Type - mount -o remount,rw /dev/block/mtdblock3 /system (enter)
Type - rm /data/data/com.android.vending/databases/* (enter)
Type - reboot (enter)
Words in bracket are instructions and not to be typed.
Click to expand...
Click to collapse
yeah I found that it was in the vending/databases folder, I just hadn't had time to post until now. Good job!
i had the same problem and it worked...at first the terminal emulator went like 'are you root' and im like whaaat...i have cynogen 4.2.14.1...so had to type su before the 3 lines of codes...it worked

How to undo mimocam's lag fix.

Hi people!
I'd like to install one click lag fix, but i already had mimocam's lag fix applied and i cant, so....
How can i undo mimocams lag fix?
P.d: i used the search, but nothing found......thanks!
Sent from my GT-I9000 using Tapatalkthing
adb shell
su
busybox rm /data/data
busybox cp -rp /disk/data /data/
busybox rm /data/data.bak
busybox rm -r /disk/data
The first command puts you into the command line on the phone.
the second line gives you root access
the third line removes the soft symlink that we created in the original instructions
the fourth line copies the stuff from your ext partition back to the phone
the fifth line deletes the backup of your original data partition you made
the sixth line deltes the data partition on your ext partition - this is optional step and BE SURE your cp in line four was successful first.
We could alternately just mv the /data/data.bak back to /data (busybox mv /data/data.bak /data/data) after removing the symlink, but that would put your /data/data folder back to where it was before you started, so any app changes you made while residing on ext partition would be lost.
Use the same procedures to undo the market fix stuff.
distortedloop said:
Use the same procedures to undo the market fix stuff.
Click to expand...
Click to collapse
hey... could you elaborate on that?
thanks,
thomas
EDIT: I have found this here:
Code:
adb shell
su -
busybox rm /data/data
busybox rm /system/media
busybox cp -rp /disk/data /data/
busybox cp -rp /disk/media /system/
Am I safe to assume that if I've done a hard reset and flashed a new firmware it will have removed the fix? Or do I still need to undo it?
tschmidt84 said:
hey... could you elaborate on that?
thanks,
thomas
EDIT: I have found this here:
Code:
adb shell
su -
busybox rm /data/data
busybox rm /system/media
busybox cp -rp /disk/data /data/
busybox cp -rp /disk/media /system/
Click to expand...
Click to collapse
Don't forget to rm the .bak folder for /system/media.bak if you have it, otherwise you're wasting disk space.
Nicolopolus said:
Am I safe to assume that if I've done a hard reset and flashed a new firmware it will have removed the fix? Or do I still need to undo it?
Click to expand...
Click to collapse
Yes, any new firmware flash should wipe these fixes. However, your ext partition will still have the apps and other stuff on it. Not an issue since you can't use that space without running a lag-fix kernel that mounts it, or you repartition the sdcard.
last question: when I try to rm the data.bak, it tells me: "data.bak is a folder!"... what is that about?
tschmidt84 said:
last question: when I try to rm the data.bak, it tells me: "data.bak is a folder!"... what is that about?
Click to expand...
Click to collapse
When you did the fix in the first place it backed up the original folder by renaming it to .bak, so it is a folder, it's the original /data/data folder that you had before doing the fix!
You might have to use rm -r to remove it, or to be really safe, just use Root Explorer or the like and delete it.
Pretty easy to screw up your phone if you mistype with the rm or rm -r.

Categories

Resources