Clear Dalvik Cache without root - Hero CDMA Q&A, Help & Troubleshooting

Anyone know how to clear the dalvik cache on a hero without Root access? Tried via ADB and will not remount without root. Any help would be most appreciated. Thanks Everyone

turn off your phone press home plus power you'll see a phone press home plus power again. choose cleaar cache

Many thanks!

Dalvik / Cache
So I'm a tad confused between dalvik and cache. Are they the same thing? I've seen people refer to clearing "dalvik cache" and both individually. Also, when you do a factory reset from the recovery menu (home + pwr), does that wipe the data and clear the "dalvik"?
I'm curious cause I would like to completely wipe everything off of my phone and start a new and I'm not quite sure the best steps to take
Thanks!
Stephen

Related

[Q] getting force force close on some apps like google maps when i start my phone...

hello i am getting force close error on some system apps like google maps...how can i fix thi?do u have to wipe dalvik cache?will wiping dalvik cache format my phone?
raghavaggsss said:
hello i am getting force close error on some system apps like google maps...how can i fix thi?do u have to wipe dalvik cache?will wiping dalvik cache format my phone?
Click to expand...
Click to collapse
which rom are u using?
stock rom
i m using the preloaded stock rom
raghavaggsss said:
i m using the preloaded stock rom
Click to expand...
Click to collapse
dalvik wont wipe your phone it wipes the main cache that apps run from.
if your rooted best option would be to clean dalvik from recovery and reboot. it will take alot longer to boot, once booted i would suggest using rom manager and fix permissions. then allow it to reboot, if not reboot it yourself and it should sort its self out

[Q] clear cache

all step i did >> Wipe all 3- Data, Cache and Dalvik..but still have when i flash new rom,old app & wifi history still show..why??
wrong section, questions in general.
it didn't wipe correctly. do it again twice over. it can happen

[Q] Daft CWM / LightJB question

I'm not allowed to ask this in the dev forum as I'm not up to my 10 posts quota, so sorry for posting this here!
In the LightJB instructions instruction 3 is "wipe data, wipe cache, wipe dalvik-cache, wipe system"
I've got CWM installed (LQ4 and CoCore 6.0) and the options in the CWM recovery menu are "wipe data/factory reset" and "wipe cache partition".
Am I right in assuming that I should choose to do both of those two options, and then also in the "advanced" menu do the "wipe dalvik cache" option too? Just checking! Once I've done this once, I'll become a natural at it...
Cheers!
Matt
I guess you're right... But why don't you just flash a CoCore E kernel with TWRP.. Wouldn't that be much easier?
Its way more user friendly than CWM....
And yes, do have a backup of everything as Factory Resetting and wiping data is going to erase all your apps, etc.
BTW- Questions like this belong to Q & A thread.. Not the Development thread
Sent from my phone, because I'm away from my PC right now
Sami Kabir said:
I guess you're right... Why don't you just flash a CoCore E kernel with TWRP.. Wouldn't that be much easier?
Its way more user friendly than CWM....
Sent from my phone, because I'm away from my PC right now
Click to expand...
Click to collapse
I guess I'd just heard more about CWM than TWRP. I might be a noob here, but I'm not put off by command line-type stuff. I can still remember how to join multiple uuencoded text files together to get lovely pictures of Winona Ryder appearing on my screen in 1993, before I'd even heard of a graphical browser.... happy days!
Cheers for the pointer!
Matt
go advanced ...
tapatalked
larkim said:
Am I right in assuming that I should choose to do both of those two options, and then also in the "advanced" menu do the "wipe dalvik cache" option too? Just checking! Once I've done this once, I'll become a natural at it...
Matt
Click to expand...
Click to collapse
Matt,
Read my thread with CWM guide (see my signature) and i think you will be fine.
Do a Nandroid Backup before start to flash a new ROM.
Wipe data/factory reset
Wipe cache partition
Advanced -> Wipe Dalvik cache
1. Download the ROM from the link given in the article featuring that ROM. It should be a zip file.
2. Connect your phone to your computer via USB and mount its storage card.
3. Copy the downloaded ROM to the root of the storage card.
4. Power your phone off and reboot it into recovery. This will involve using a combination of your device’s hardware keys. Once in recovery, you can navigate its menu using the volume up and volume down hardware keys or your phone’s trackball / optical track pad if it comes equipped with one.
5. Use the ‘backup and restore’ feature of recovery to backup your existing ROM installation, software and data. This step is known as performing a nandroid backup. ALWAYS perform a backup before flashing a custom ROM, UNLESS you can afford to lose everything that’s on your phone at the moment.
Note: ALWAYS choose to perform the following steps 6, 7 and 8 UNLESS the ROM you are attempting to flash is an updated version of the same ROM that you are currently using, and is compatible with the current installation’s data. It is usually mentioned with the update whether you can install it over a previous version without wiping its data or not.
6. Get back to the main recovery menu and use the option ‘wipe data/factory reset’. You will be prompted to confirm this action. Select “Yes – Delete all user data”.
7. From the main recovery menu, select ‘wipe cache partition’. You will be prompted to confirm this action. Select ‘Yes – Wipe Cache’.
8. From the main recovery menu, enter the ‘advanced’ menu. From this menu, select ‘Wipe Dalvik Cache’. You will be prompted to confirm this action. Select ‘Yes – Format/System’.
9. From the main recovery menu, enter the ‘Mounts and Storage’ menu. From this menu, select ‘Format/System’. You will be prompted to confirm this action. Select ‘Yes – Wipe Dalvik Cache’.
10. Go back to the main recovery menu by pressing the back button and select the ‘Install zip from SD card’ option.
11. Select ‘choose zip from sdcard’ to get a list of the files and folders on your SD card. Scroll to the ROM’s file that you copied there in step 3, and select it. You will be prompted to confirm this action. Select ‘Yes – Install file_name.zip’ where file_name.zip is the name of the zip file that you are trying to install.
12. Wait patiently while the ROM is flashed to your phone via recovery.
13. Once the installation is complete, head back to the main recovery menu if you aren’t there, and select ‘reboot system now’. Your phone will now boot into the newly installed ROM.
Click to expand...
Click to collapse
R_a_z_v_a_n said:
Matt,
Read my thread with CWM guide (see my signature) and i think you will be fine.
Do a Nandroid Backup before start to flash a new ROM.
Wipe data/factory reset
Wipe cache partition
Advanced -> Wipe Dalvik cache
Click to expand...
Click to collapse
Done, thanks!
My last question - when i've rebooted, I'm prompted to sign into my Google Account and re-install my apps from the google backup. Is this the "best" way to do it, or is it better to use alternative sch as Titanium? I'm not bothered about lost data, the only data I care about is in my gmail account anyway.
Cheers!
Matt
Reinstall your apps with that app you make backups. If you do it with Titanium, then go for it, and restore with Titanium.
R_a_z_v_a_n said:
Reinstall your apps with that app you make backups. If you do it with Titanium, then go for it, and restore with Titanium.
Click to expand...
Click to collapse
Thanks. Its that sort of common sense stuff which I've found missing from many of the guides - they tell you how to root / flash etc, but leave nagging other questions unanswered - perhaps because the answers are so obvious to the authors that they are just second nature.
As it happens, I didn't bother with a Titanium backup as I wanted a clean phone - I've been trying to resolve a strange issue where my wifi goes really slow and stuttery after the phone has been on for a few hours. No-one else seems to have the issue, so I suspect it is down to at least one of my apps causing some chaos. With that in mind, a fresh install with no baggage seemed to be the best way to go.
(I used to suspect the Facebook apps (particularly Pages Manager) but I don't think they are the cause)
Thanks for all the help!
Matt
Sami Kabir said:
I guess you're right... But why don't you just flash a CoCore E kernel with TWRP.. Wouldn't that be much easier?
Its way more user friendly than CWM....
And yes, do have a backup of everything as Factory Resetting and wiping data is going to erase all your apps, etc.
BTW- Questions like this belong to Q & A thread.. Not the Development thread
Sent from my phone, because I'm away from my PC right now
Click to expand...
Click to collapse
For me cwm is more user friendly and more straight forward compared to twrp. I once tried twrp and after I mount system suddenly it said there's no os installed and I can't boot my phone. Luckily I can still enter download mode to flash back fw with odin. I don't understand how twrp works..haha :silly:
larkim said:
Thanks for all the help!
Click to expand...
Click to collapse
It was my pleasure, Matt. :highfive:
Well, for no other reason than that I wanted to tweak a few things before I started to live with LightJB, I chose to restore my phone using the CWM nandroid restore.
Bad move!
It all seemed to work fine, but on restoring I get the message that "Unfortunately, the process com.google.process.gapps has stopped". Mildly worrying, but moving on...
Then I came to try to reply to a sms message from my wife. Pressing in the reply box didn't bring up a keyboard. Odd.
I went into other apps and found I couldn't type there either.
Went into settings, and neither the samsung keyboard nor the swype keyboard appear to have been re-stored via the backup / restore.
Any hints?
Matt

[TIP] Cache cleaning apps and custom ROMs

I just thought I should mention don't do it!
If you really need to keep your cache tidy, especially on Marshmallow, do it from Recovery. I have tried cleaning the cache from both CCleaner apk and ASC Mobile Security apk and they cause app optimization to malfunction and the device to freeze and then bootloop. I'm not sure if this is CM 13-based specifics but if it is its a bug that needs addressing. Cleaning the cache from one of these apps causes a bootloop, of which is correctable by:
Power phone OFF
Hold down VOLUME DOWN and press POWER
Select RECOVERY MODE by selecting it from the blue box using the VOLUME UP and VOLUME DOWN buttons and pressing POWER when you see RECOVERY MODE .
Follow the instructions for your custom recovery ( Philz, TWRP, CWM, etc. ) to clean the cache and dalvik cache partitions.
Reboot to system.
When done, you should see Optimizing app x of xxx and you should be able to resume use without losing your data. Immediately uninstall any automatic cache cleaners and resume normal operation. Don't repeat the same mistake.
I either do it manually, by deleting it in root explorer and rebooting or I use the SD Maid app. never ever an issue. and BTW, its not an issue with stock or aosp, using apps to clear cache. that sounds like a user issue or a cm issue.

OTA Updates and Proper Procedures (wipe data/factory reset, wipe cache partition etc)

New Verizon S6 Edge (sitting in the box for 1-2 years) and I used the OEM adaptive fast charger to bring it from zero to 100% and then waited 10-15 minutes.
I used the built-in OTA updater, not Samsung/Verizon's Software Upgrade Assistant, and went through 11 system updates over the course of 2-3 hours. Out of curiosity, would using the SUA have reduced the number of updates to apply? Edit: I am almost certain now SUA updates straight to the current build (based on their wording, link at bottom). Apparently if I wanted to go straight to current system build, I should have used SUA or a tool such as Odin to flash the stock firmware directly.
Here is a list of the software builds I went through:
G925VVRU3BOG5 - This was the build on my phone out of the box.
G925VVRU4BOG7
G925VVRU4BOG9
G925VVRU4BOK7
G925VVRU4CPC2 - This is the first official build of Marshmallow for this phone. After update success, I decided to wait a few minutes and then restart the phone.
G925VVRU4CPD2 - I received error 404 after automatic download failed. Manual download attempt OTA was successful.
G925VVRU4CPF4 - I received error 401 after answering no to the automatic download request because I was trying to prevent the error above. Manual download attempt OTA was successful.
G925VVRU4CPH1
G925VVRS4CPI2
G925VVRU4CPK2
G925VVRS4CPL3 - My battery charge ticked down from 41% to 40% just before I applied this update, 35% upon completion/success message.
G925VVRS4CQA3 - This is the last Marshmallow build available for this phone.
On Verizon's webpage it says to have at least 40% charge or 20% when hooked up to the charger. I am worried because I did not connect my phone back up to the charger for these last two updates. The last one really bothers me because it was 34% when applied and 29% upon completion/success message. Is there a way to verify everything was written correctly? Should I even be worried?
With exception of a few failed downloads, all updates -when applied- said successful first try.
I have the understanding that it is important to wipe (system) cache partition and wipe data/factory reset from the recovery menu after major system updates to avoid all sorts of potential problems. So, here are my questions:
Does wipe data/factory reset from the recovery menu also wipe (system) cache partition? If not, should I wipe cache partition before or after? I have found conflicting information on this. Edit: It is so confusing because when you search around there are tutorials only mentioning the reset, others saying to wipe cache before reset and vice versa! There are also people going as far as doing both of these before -and- after a system update! Edit 2: It appears that wipe data/factory reset formats /data, /cache and /sbfs partitions. So, wipe cache partition is redundant when performing a factory reset from the recovery menu.
Both of these videos demonstrate wipe cache partition followed by wipe data/factory reset. You will see /cache is unnecessarily formatted twice (picard facepalm).
https://youtu.be/-Y-aHwdjAZA?t=175
https://youtu.be/NUsV75KFLzA?t=65
Note: there is no Google account to remove (Factory Reset Protection/FRP, Google Account Lock etc) as this is a new phone.
I am under the impression that I should clear all app cache, app data and maybe reset network settings before I attempt the recovery menu methods above. This is overkill/redundant, right? Edit: All this stuff appears to be stored in somewhere in /data (even an app's cache, within a subfolder of each app).
Aside from backup (in my case does not apply), is there anything I should do before (or after) recovery menu wipe(s)? I want to ensure clean slate. Edit: It seems wiping /data and /cache is all you can do in terms of user-accessible data.
I notice there is a "Factory data reset" option from within the OS under Settings: Backup and Reset. Does this behave any differently from the recovery menu method? Edit: I found via thedroidguy.com that it does not reformat the /data partition as the recovery menu reset does but only clears it. It also has Backup and Restore options. Are there any other differences? Does it clear other partitions than /data?
Also, I notice in Settings: About Phone: Status there is "Factory data reset". For me, it says "Unknown". I assume this value is a counter, log or timestamp of the last known factory data reset(s). Maybe it is only triggered when the reset is performed within the OS, but I have no idea. Anyone know what this really is? Will a recovery menu factory reset trigger it?
Under Settings: Storage there is Cached Data. If I clear this, does it include all application cache -and- all application data or just the app cache? Edit: I am pretty sure now it just clears all applications' cache, so it shouldn't affect anything unless maybe an app is poorly coded and stores things in cache that should be elsewhere. On a related note, when clearing app data from apps individually its app cache will also be cleared. I am not sure if clearing Cached Data from this Storage menu touches the system cache partition.
Any documentation or links would be very much appreciated; I am running out of steam here sifting through search results with different keywords and modifiers.
If anything I said is wrong or not entirely correct please say so!
Links:
https://android.stackexchange.com/q...set-exactly-the-same-as-wiping-data-and-cache
https://android.stackexchange.com/q...-factory-reset-and-clean-the-phone-completely
http://thedroidguy.com/2015/08/sams...-cache-partition-factory-master-reset-1048263
http://www.addictivetips.com/mobile...plained-boot-system-recovery-data-cache-misc/
http://www.androidcentral.com/android-201-how-and-when-clear-app-cache-or-data
https://www.verizonwireless.com/support/knowledge-base-80200/

Categories

Resources