So... Clearing Dalvik Cache... - Droid X General

What does it do exactly? And is it safe to clear it once in a while to give the system a refresh?
-thanks
EDIT: NM.. read up some more and it seems to be safe to do so. MODs please delete...

cbaty08 said:
What does it do exactly? And is it safe to clear it once in a while to give the system a refresh?
-thanks
EDIT: NM.. read up some more and it seems to be safe to do so. MODs please delete...
Click to expand...
Click to collapse
Its ok to leave this here. People can learn from it.
I use root explorer to completely erase everything inside of /data/dalvik-cache
Its ok to delete every single file, they get rebuilt upon a reboot. I suggest rebooting immediately after cleaning the file dalvik-cache file.

It seemed to help actually....
I went into system/data and completely deleted the whole dalvic-cache folder and it worked beautifully. I would suggest this to all after you have finalized your MODs!

Related

[Q] Temp Root

If I just do a temp root so I can delete the apps I dont won't will they stay off?
trees247 said:
If I just do a temp root so I can delete the apps I dont won't will they stay off?
Click to expand...
Click to collapse
The answer is no
Before you get flamed... questions go in the Q&A forum.
There are a bunch of warnings, signs, and even a section called questions & answers (Q&A). What else can I do to make it more clear? Please post questions in Q&A section.
trees247 said:
If I just do a temp root so I can delete the apps I dont won't will they stay off?
Click to expand...
Click to collapse
They actually should stay removed... I don't know for sure about the uninstall... but if you freeze them in titanium they will stay gone (still on the system, but won't show up as installed and won't be in your app drawer) the technical way to do it if you're a bit savvy with adb is to run
Code:
pm list packages
which will give you a list of the actual package names then do
Code:
pm disable packagename
No, reason? Temproot writes to the cache. When the phone is rebooted or needs space for memory, cache folder gets cleared (poof cache files gone) so when you do something to change the system ie. delete certain apps, it deletes it....temporarily because its only saved to cache. If you want to delete permanently, permaroot it. Permaroot writes to the system, not cache. Once its gone, syonara. Do a backup with titanium root for whatever app you delete. (you never know if you need to return it with stock rom)
Sent from my HTC Glacier using XDA App

[Q] Manually delete cache pls help

Just a quick question: how can I delete my cache files from youtube for example using root explorer? Because i've low memory and when I watch many films, youtube force closes. And when I go to manage applications and click on youtube it keeps ' counting' all the time!
I do not know the root explorer way...
but settings--applications---manage app---click on all apps---click youtube---clear cache!
Hope this Helps!
katkoriaarpan said:
I do not know the root explorer way...
but settings--applications---manage app---click on all apps---click youtube---clear cache!
Hope this Helps!
Click to expand...
Click to collapse
Like i said it just keeps on 'counting' I cant delete the cache.
That's why I asked for the root explorer way
Please tell me were my cache files are stored and how I delete a view if them (and wich ones I can delete). I just tried to clear my cache witch a cache clear app and it sais there's no cache!
Do you have CWM on your phone? You can go into Recovery Mode and delete the cache there.
bautrupp said:
Do you have CWM on your phone? You can go into Recovery Mode and delete the cache there.
Click to expand...
Click to collapse
i dont hav cwm yet. soon ill install g3mod... but the problem is: i dont want to reboot my phone because if i do it takes a very long time for my phone to scan my apps on my sdcard. and sometimes it doesnt scan them at all! its very frustating...
When I issue the mount command in the Terminal-App I see among others this partition:
/dev/block/stl8 mounted on /cache
Perhaps this is what you are looking for?
A reboot solved it. It took about half an hour to scan my apps... (I really need to format my sd...) But it worked quite...

[SCRIPT] Simple Dalvik Cache Cleaner

Dalvik cache cleaner is a shell script which clears the Dalvik cache that can be used with Android Terminal Emulator.
Root and busybox is required, if you don't know what root and/or busybox is then do NOT bother using the script.
Place the shell script in the main directory.
With Android Terminal Emulator type:
su
sh /sdcard/Dalvik_cache_cleaner.sh
The process should be close to instant depending on how much files you have in the directory.
Download: http://caftp.3owl.com/Shell_Scripts/Dalvik_cache_cleaner/Dalvik_cache_cleaner.sh
It worked
~~~~~~~~~~~~~~~~~~~~~
Samsung galaxy s2
Rom: Jedi knight 6
kernel: Jedi kernel 2
~~~~~~~~~~~~~~~~~~~~~
And you thought celebrities weren't smart! =P
Is this also intended to run on every boot, ie via init.d
thebrainkafka said:
Is this also intended to run on every boot, ie via init.d
Click to expand...
Click to collapse
No, that would also waste too much time on boot then on a normal boot due to rebuilding the cache everytime.
When you uninstall an application, usually a dalvik cache file is left over wasting space.
But if you want you can use ROM Toolbox from JRUMMY APPS INC. in the Play Store.
There is a Scripter in that application that you can use for such thing but the problem is that when I tryed using the su binary in the shell script, there is an issue where the su binary in the shell script will just cut off the other parts of the script and only the su binary so your answer would be fat chance unfortunately. :/
Sent from my Sony Tablet S using xda premium
Issue fixed.
Is this the same as wiping dv cache through recovery. Also what will be the script for wiping cache? Will it be rm /cache?
Thanx!
The-Droidster said:
Is this the same as wiping dv cache through recovery. Also what will be the script for wiping cache? Will it be rm /cache?
Thanx!
Click to expand...
Click to collapse
Yes and the code is:
#!/system/bin/sh
rm /data/dalvik-cache/*
reboot
Click to expand...
Click to collapse
I'm not sure if /cache/ is really dalvik cache, on devices with OTA update support the OTA zip's will be stored their with other stuff but if you want I can give you the code for that.
On linux (That also means android) use 'chmod 755' for the permissions for the shell script.
I have tried adding 'su' but that fails has the terminal only executes the su binary so the rest of the script does not get executed.
Using the 'echo' binary to say out what it is doing is a fail has the terminal does not go anywhere due to the echo binary getting executed but it will not display output in the terminal anyway making the script not being executable.
Sent from my Sony Tablet S using xda premium
Man I am full with ideas.
I can create a shell script to do:
[OTA]
Remove OTA Update zip in cache
Copy OTA Update zip from cache to SDCard
[Files and Folders]
Remove LOST.DIR (That is just a useless folder )
Wipe SD Card
Wipe Zip files (useful for custom roms on your SD which you don't want anymore)
Well soon I should get more ideas so the OTA shell scripts will not be possible unless I get a rootable device with OTA functionallity (I do have a Sony Tablet S but I forgot to root it but I went and installed the firmware update without noticing) so it would be the Nexus 4 I would test it on in March.
The thing is that more shell scripts I create more pages I have to add to my website to give information about it, how to use it and the download link which can take around 10 Minutes just by editing the code, make backup and then upload via FTP.
Sent from my Sony Tablet S using xda premium
New shell scripts available which should be available tomorrow and if not a few days.
They are:
Aptoide Cleaner - I found out that the xml files are adding numbers to their file extensions so I built a script which can remove that problem real fast.
Take Out Bin - Removes all or at least most useless directories like LOST.DIR and LazyList, they are just a few.
ExtSD and USB Cleaner - Same has 'Take Out Bin' but it does it on the external SD Card while on USB, LOST.DIR will be erased has that should not be there.
-OLDER PROJECTS-
Dalvik Cache Cleaner - Read the first post.
Andro.Shell.Crash - This is good for developers has this does crash/lag/freeze the OS which can help a root exploit get in, of course there is different effects depending on the hardware and software, if the device is fast and has good hardware then it is possible that it may just lag and/or freeze but for older devices with older hardware can just crash.
NOTICE: The older projects are already out and available to download on my website.
I will be creating a forum about these shell scripts but I am not sure about the Aptoide one for many reasons.
I know that I am not suppose to be talking about this on a thread which has a different purpose but yeah, just an update.
EDIT: I uploaded and programmed the webpages from my tablet using WM FTP Client and DroidEdit Pro so that was a bit too early but all well, new thread(s) should come in tomorrow depending what will happen tomorrow (It is 03:30AM so it would count has today anyway).
Anyone can please guide me how to remove this script???
Thank you in advance
romelcool said:
Anyone can please guide me how to remove this script???
Thank you in advance
Click to expand...
Click to collapse
You just delete the shell script, you only use it in the Terminal Emulator so once you run it, it will wipe the dalvik cache so it will not do such thing in every boot.
Sent from my Nexus 4
Man I think you should create a script which are:
Auto clean of cache || Optimize App || Kill Media Process
If it's possible to you to create script with the list below that will be awesome ! ..
what is the code for auto cleaning cache every 30 minutes ? ..
and also auto optimize application every 24 hours ? ..
kill media process ?
I hope you could help me with this .. Thanks !
CoolApps said:
Download: http://caftp.3owl.com/Shell_Scripts/Dalvik_cache_cleaner/Dalvik_cache_cleaner.sh
Click to expand...
Click to collapse
Gone!
jidanni said:
Gone!
Click to expand...
Click to collapse
That's because I switched sites between 2012 - 2015. This thread was very inactive so I missed it out and didn't update the link with the new one.
The current server I use for it has some files that I'm aware of that are more often downloaded by users which means I ended up removing the shell scripts along with others that don't need to be there. I made a backup of everything before, by the way.
I don't feel that there's a need restore the file and plus, this thread's old.
Because of the sudden bumps of a thread that currently serves no purpose, something should be done about it to avoid further confusions.
Sent from my Nexus 4 using Tapatalk
Can you please tell me what your script did.
I made my own script that does
su -c 'find /data/data/*/cache/* -delete'
This one line saved me from installing multi-megabyte apps that do the same thing.
Is there anything more I should add to my script?
Now I can finally have enough room so Google Play can update apps again!
Thread closed at OP's request.

[Q] Android is upgrading every startup

Everytime I turned on my phone or if it rebooted, I always get:
Android is upgrading
-----------------------------
Starting Apps.
I am on stock ROM, TWRP recovery, Faux kernel. I think this happens after I wiped dalvik/cache in the recovery. Any idea how to stop it? It's nothing very major though as it only takes a few seconds.
are you using any sound/volume mods? or any other flashable mods? i think awesomebeats dies this, at least others have complained about it wiping the dalvik after every reboot.
cdon2109 said:
Everytime I turned on my phone or if it rebooted, I always get:
Android is upgrading
-----------------------------
Starting Apps.
I am on stock ROM, TWRP recovery, Faux kernel. I think this happens after I wiped dalvik/cache in the recovery. Any idea how to stop it? It's nothing very major though as it only takes a few seconds.
Click to expand...
Click to collapse
That's normal if you've wiped the Dalvik cache, and no you can't stop it.
Edit: so wait, this is happening even when you reboot normally after not wiping any caches or flashing a kernel?
CMNein said:
That's normal if you've wiped the Dalvik cache, and no you can't stop it.
Edit: so wait, this is happening even when you reboot normally after not wiping any caches or flashing a kernel?
Click to expand...
Click to collapse
yes.. and it updates apps after delvic wipe.. but in my case whenever i restart I see the "Android is upgrading" box for about 3-5 sec.. no update app progress bar.. and when I wipe delvic this upgrading apps takes like a min or so with my 150+ apps.. but this "Android is upgrading" dialogue box appears only for 3-5 sec..
I am using PA 3.99 with franco kernel.. once booted every thing inside is running smoothly and no fc's...
Same here. No odex files in app folder. No wipe, no cache clearing. Plain reboot. And Android is upgrading message on every boot. (Starting apps)
No optimizing apps message though.
Sent from my Nexus 4
Wouldn't it be related to "zipalign apk on each boot" parameter ? or an other init script put in place by a dirty flash (no /system or /data format) or a kernel... ?
Seems likely. Could you explain in detail kindly?
Sent from my Nexus 4
anandbibek said:
Seems likely. Could you explain in detail kindly?
Sent from my Nexus 4
Click to expand...
Click to collapse
Have a look in the files located in this folder for example (maybe there's another location for init scripts) :
- /system/etc/init.d/
- /system/addon.d/
and open each one, to see what are the tasks contained
benbugohit said:
Have a look in the files located in this folder for example (maybe there's another location for init scripts) :
- /system/etc/init.d/
- /system/addon.d/
and open each one, to see what are the tasks contained
Click to expand...
Click to collapse
Removed the scripts present in init.d folder and then booted with empty folder, but message still present.
Checked the addon.d folder, but those scripts are only for backing up gapps etc.
Not sure where else to try. Please advise.
Thanks.
anandbibek said:
Removed the scripts present in init.d folder and then booted with empty folder, but message still present.
Checked the addon.d folder, but those scripts are only for backing up gapps etc.
Not sure where else to try. Please advise.
Thanks.
Click to expand...
Click to collapse
Did you try to re-flash your (stock) ROM (and the kernel after 2 reboots) with wiping only /cache and dalvik-cache ? with latest 2.6.2.0 TWRP ?
happens to me too
Sent from my Nexus 4
I've seen people get this with stuff like V6 Supercharger by Zepplinrox and similar scripts.
Edit : @Dungeon47: thanks for this information that users can't provide...
HeyyMyNameIs said:
happens to me too
Sent from my Nexus 4
Click to expand...
Click to collapse
A pity that so much details are missing : what did you do before it happened ?
What's your set up ? rom, kernel ? after having update your rom ? kernel ? apps ? which versions ?
Did you try to revert to a clean install after having backup up your apps+datas ?
benbugohit said:
Edit : @Dungeon47: thanks for this information that users can't provide...
A pity that so much details are missing : what did you do before it happened ?
What's your set up ? rom, kernel ? after having update your rom ? kernel ? apps ? which versions ?
Did you try to revert to a clean install after having backup up your apps+datas ?
Click to expand...
Click to collapse
im sorry, just wanted the OP to know that he is not the only one with this "problem" by the way im rooted stock rom and kernel, some apps start up when i boot like nova launcher, lucky patcher sidebar and udn. But i am not looking for a fix for this as this does not take that long and i just said that to let the OP know that he is not alone with this "problem"
Sent from my Nexus 4
Ok guys,
Here's the solution. Don't flame me for talking about unholy stuffs. I'm posting this only because it is the cause of the problem.
If you are using LP or such tools to create .odex files of some app in /app folder. It won't cause any boot msg.
But after you dirty flash a ROM, that .odex files somehow gets backdated and causes the UPGRADING msg.
Fix is, delete the odex files, and re create them if needed. Once after every dirty flash.
Sent from my Nexus 4
I have found fix for this error, it is mainly due to odex files which are created by lucky patcher so deleting these files using lucky patcher itself will surely remove this error with 50 percent success rate. Here's the fix; open lucky patcher, there in lower left section you can see Toolbox, click that Toolbox then select 4th last option i.e Remove all odex files.Thats it android will reboot on itself and vola no android is upgrading. .
Check out attachment for help.
:good:Hits Thanks If I helped u:good:

Help needed to remove Xposed from 5.0

Xposed for Samsung Lollipop is out. But I am having trouble installing apps since I installed xposed so I decided to remove it. I restored the system partitioned with a backup I've made before the installation but looks like xposed isn't removed. I still getting "Optimising app" at every start up and I cannot install apps from Play Store. Many of users that installed xposed reported these.
I even tried to wipe system (not data) and flashing the rom I'm using on it again but xposed is still there. (Stil getting "optimising apps" and error "-504" from play store. ) What can I do to totally remove xposed without wiping data or restoring data partition?
ImjuzCY said:
Xposed for Samsung Lollipop is out. But I am having trouble installing apps since I installed xposed so I decided to remove it. I restored the system partitioned with a backup I've made before the installation but looks like xposed isn't removed. I still getting "Optimising app" at every start up and I cannot install apps from Play Store. Many of users that installed xposed reported these.
I even tried to wipe system (not data) and flashing the rom I'm using on it again but xposed is still there. (Stil getting "optimising apps" and error "-504" from play store. ) What can I do to totally remove xposed without wiping data or restoring data partition?
Click to expand...
Click to collapse
have you tried to clear the data from the playstore and let it rebuild the services ??
krazierokz said:
have you tried to clear the data from the playstore and let it rebuild the services ??
Click to expand...
Click to collapse
I did, for many times
ImjuzCY said:
I did, for many times
Click to expand...
Click to collapse
How about this?? thanks to @craigcrawford1988
Did you try this ?Simply boot into TWRP, and mount system, then Advanced -> File Manager then do the following:1.Go into /system/bin/ and delete app_process32 and app_process32_xposed
2.Rename app_process32_original to app_process32
3.Delete dex2oat and rename dex2oat.orig to dex2oat
4.Repeat the above step for oatdump and patchoat
5.Go up a directory and then into the lib directory
6.Delete libart.so and rename libart.so.orig to libart.so
7.Repeat the above step for libart-compiler.so, libart-disassembler.so and libsigchain.so
8.Delete libxposed_art.so
9.Go up a directory and delete xposed.prop
10.Go into framework directory and delete XposedBridge.jar
11.Reboot your device.
krazierokz said:
How about this?? thanks to @craigcrawford1988
Did you try this ?Simply boot into TWRP, and mount system, then Advanced -> File Manager then do the following:1.Go into /system/bin/ and delete app_process32 and app_process32_xposed
2.Rename app_process32_original to app_process32
3.Delete dex2oat and rename dex2oat.orig to dex2oat
4.Repeat the above step for oatdump and patchoat
5.Go up a directory and then into the lib directory
6.Delete libart.so and rename libart.so.orig to libart.so
7.Repeat the above step for libart-compiler.so, libart-disassembler.so and libsigchain.so
8.Delete libxposed_art.so
9.Go up a directory and delete xposed.prop
10.Go into framework directory and delete XposedBridge.jar
11.Reboot your device.
Click to expand...
Click to collapse
Tried that too but that was for the "normal" official xposed alpha. The way the devs set xposed on samsung touchwiz is different. We flash a different version of xposed framework.
Many of the original files you listed I don't find it (almost all). I think the only way to totally remove it is a full wipe
well good luck with your problem bud , i tried Sorry we could not determine the issue.... Long weekend !
Do u still need help?
From my s4 Powered by
Prism barebone v15
shiruuu.samad said:
Do u still need help?
From my s4 Powered by
Prism barebone v15
Click to expand...
Click to collapse
I already did a clean install. But help is still welcomed to help those who needs help
ImjuzCY said:
I already did a clean install. But help is still welcomed to help those who needs help
Click to expand...
Click to collapse
I had issues of FC with xposed i used this guide to disable it.https://plus.google.com/app/basic/stream/z13ecnpjtpirgbyn023sdjagnpmrzjarm04Check the last comment of google+ post it should disable it.Hope it works
From my s4 Powered by
Prism barebone v15
shiruuu.samad said:
I had issues of FC with xposed i used this guide to disable it.https://plus.google.com/app/basic/stream/z13ecnpjtpirgbyn023sdjagnpmrzjarm04Check the last comment of google+ post it should disable it.Hope it works
From my s4 Powered by
Prism barebone v15
Click to expand...
Click to collapse
I tried this but I still can't install apps larger than 1mb. Apps that are smaller than 1mb installed perfectly. I don't get fc BTW. I got error -504 from play store. I Googled about it and the error is due to lack of space in /cache partition. I checked the partitions and proved it. Only 800kb free in cache partition but play store needs to download apks to cache before installing. Even restoring titanium backups made during xposed is installed to a clean installed rom can cause that. So I did a clean install without any backups restored.
I tried clearing cache before, it's emptied when I cleared it, but it fills up when optimising app and I don't think I can skip optimising app after clearing cache.
Try formatting system, data, cache then restore system and after first boot, restore data
If didnt work (this is impossible) that means you did the backup after installing xposed
Goodluck
RubbaBand said:
Try formatting system, data, cache then restore system and after first boot, restore data
If didnt work (this is impossible) that means you did the backup after installing xposed
Goodluck
Click to expand...
Click to collapse
Yes I was lazy I backed up after installing the apk before flashing the zip. So that backup is somehow unusable. I already did a fresh install .

Categories

Resources