[HOW-TO] Clear Dalvik Cache With Terminal - Gen9, Gen10 General

Try it out, It seems to work -- [Root Required]
All you need to do is:
-Run The Terminal and Type:
Code:
su
cd /data/dalvik-cache
rm *
exit
-Restart Your Device;
-Reboot will take a bit longer because you have cleared the cache and it has to be rebuilt.
And that's it!

TjaXanK said:
Try it out, It seems to work -- [Root Required]
All you need to do is:
-Run The Terminal and Type:
Code:
su
cd /data/dalvik-cache
rm *
exit
-Restart Your Device;
-Reboot will take a bit longer because you have cleared the cache and it has to be rebuilt.
And that's it!
Click to expand...
Click to collapse
I used something similar on my theme script:
adb shell rm /data/dalvik-cache
(And then, just in case: )
adb shell mkdir /data/dalvik-cache
Sent from my HTC Desire HD using xda premium

Quinny899 said:
I used something similar on my theme script:
adb shell rm /data/dalvik-cache
(And then, just in case: )
adb shell mkdir /data/dalvik-cache
Sent from my HTC Desire HD using xda premium
Click to expand...
Click to collapse
Ah, I didn't notice, haven't tried your theme yet
Shall I leave this post? Might be useful for someone.

TjaXanK said:
Ah, I didn't notice, haven't tried your theme yet
Shall I leave this post? Might be useful for someone.
Click to expand...
Click to collapse
Yeah, it's a nice post, leave it
Sent from my D255 using XDA App

There is no need to create dalvik-cache, if it is not present android init creates it.
Btw you may want to use rm -r -f /data/dalvik-cache
tapatalked from Archos 101 G9

TjaXanK said:
Try it out, It seems to work -- [Root Required]
All you need to do is:
-Run The Terminal and Type:
Code:
su
cd /data/dalvik-cache
rm *
exit
-Restart Your Device;
-Reboot will take a bit longer because you have cleared the cache and it has to be rebuilt.
And that's it!
Click to expand...
Click to collapse
hi
i did exactly the same but my phone is stuck with reboot logo..
its Huawei Ideos U8150-B ..
it is in reboot loop..
i did it because android was complaining low memory..
i have 4gb sd card.. and link2sd installed.. and 2 partitions on card.. ext3 and fat.. ext3 part has 900Mb free space and fat has 500 mb .. and i tried all the options in link2sd to wipe the caches but no use .. i also tried the ti backup to clear dalvik cace but it also didnt gave me a single kb .. so i tried this and now stuck at boot loop..
i have tried to boot without sd card same...
what should i do ..
i have a lot of apps and settings and dont want to loose them..
my set is rooted and aps like google play,maps,youtube etc were updated...

khankll said:
hi
i did exactly the same but my phone is stuck with reboot logo..
its Huawei Ideos U8150-B ..
it is in reboot loop..
i did it because android was complaining low memory..
i have 4gb sd card.. and link2sd installed.. and 2 partitions on card.. ext3 and fat.. ext3 part has 900Mb free space and fat has 500 mb .. and i tried all the options in link2sd to wipe the caches but no use .. i also tried the ti backup to clear dalvik cace but it also didnt gave me a single kb .. so i tried this and now stuck at boot loop..
i have tried to boot without sd card same...
what should i do ..
i have a lot of apps and settings and dont want to loose them..
my set is rooted and aps like google play,maps,youtube etc were updated...
Click to expand...
Click to collapse
Try leaving the device at the boot logo for a long time, it takes quite a long time to re-build the dalvik cache... The thing is, This tutorial is ment to be used on archos Gen9 tablets and I dont know if the dalvik cache is in the same place on your device...

TjaXanK said:
Try leaving the device at the boot logo for a long time, it takes quite a long time to re-build the dalvik cache... The thing is, This tutorial is ment to be used on archos Gen9 tablets and I dont know if the dalvik cache is in the same place on your device...
Click to expand...
Click to collapse
why don't you write it in the first post?

I know that this is such an old post..
But i need a .sh script to clean data and cache from the playstore.
Any ideas of how?

Related

[Q] Help with ADB Commands...

Hey guys, my noob side is coming out again... I did some searching and all, but nothing.
Running Synergy RC2 Godmode, trying to delete data/data and system/apps... can anyone help me with commands? My adb language is pretty limited. And using adb in recovery would probably be best, as I'm stuck at a "Force Close: HTC Loggers" popup.
Thanks for the help!
Just try installing QtADB. It's a graphical interface and makes it super easy to do things like you are trying to do.
http://qtadb.wordpress.com/download/
tropicalbrit said:
Hey guys, my noob side is coming out again... I did some searching and all, but nothing.
Running Synergy RC2 Godmode, trying to delete data/data and system/apps... can anyone help me with commands? My adb language is pretty limited. And using adb in recovery would probably be best, as I'm stuck at a "Force Close: HTC Loggers" popup.
Thanks for the help!
Click to expand...
Click to collapse
Do you mean you want to delete everything from those folders? You definitely do not want to do that with /system/app. You can do it with /data/data if you really want. That'll wipe all app data. adb shell rm -r -f /data/data/*. In recovery, mount /data first. But I'd probably just wipe everything in recovery and reflash the ROM if I was having issues like that.
bkrodgers said:
Do you mean you want to delete everything from those folders? You definitely do not want to do that with /system/app. You can do it with /data/data if you really want. That'll wipe all app data. adb shell rm -r -f /data/data/*. In recovery, mount /data first. But I'd probably just wipe everything in recovery and reflash the ROM if I was having issues like that.
Click to expand...
Click to collapse
I want to wipe all of data/data and delete a few system/app. I always try to make my ROM Senseless/HTC-less/Sprint-less
My usual routine is wipe 3x, flash ROM then kernel. Reboot, sign into Google, go to market and install other launcher and Root Explorer, go into Root Explorer and delete files I know to be safe to delete. From there, if I'm fast enough, I can navigate to data/data and delete and reboot. Usually after deleting HTC Loggers it takes a half-minute or so until it pops up with "Force Close" and comes up immediately after I close the window.
I'm looking into putting Linux on my machine, so I can experiment in a kitchen to repackage and whip up my own modified ROMs.
Thanks for all the help!

low memory problem on PA 3.00+ [WoH]

hey.
I installed woh's paranoidandroid ROM on stock hboot and it's working really fine. But after 40apps installed, I'm running out of memory. I followed all the steps from the 1st post, but it seems that the m2sd script isn't working...
I'm quite a noob with terminal emulator, so how can i activate this?!?
su
mount -o rw,remount /system
chown system:system /system/etc/paranoid/properties.conf
a2sd install, choose Y -> N -> Y
Dalvik cache is filling up your storage.
muahaha said:
hey.
I installed woh's paranoidandroid ROM on stock hboot and it's working really fine. But after 40apps installed, I'm running out of memory. I followed all the steps from the 1st post, but it seems that the m2sd script isn't working...
I'm quite a noob with terminal emulator, so how can i activate this?!?
su
mount -o rw,remount /system
chown system:system /system/etc/paranoid/properties.conf
a2sd install, choose Y -> N -> Y
Click to expand...
Click to collapse
Try using m2sd by spazedog:
http://forum.xda-developers.com/showthread.php?t=1342387
In the app,tick dalvik-cache and untick cache, that doesnt work.
Then go to settings and tap both options and reboot. Now you should be good to go.
Vendette said:
Try using m2sd by spazedog:
http://forum.xda-developers.com/showthread.php?t=1342387
In the app,tick dalvik-cache and untick cache, that doesnt work.
Then go to settings and tap both options and reboot. Now you should be good to go.
Click to expand...
Click to collapse
Has that solved it?

[Q] How to flash Data++ Hboot over VJ's CM10.1 JB 4.2.2.?

I have stock hboot and currently running VJ's CM10.1 JB 4.2.2.
Despite the installation of the A2SD script, the free space of the device is really low. I thought of flashing a hboot that enables more space (Data++).
The problem is that the Data++ has a system partition size of 140MB and now, with the 250MB, there are 4MB left.
So, can I flash the Data++ hboot?
If so, what will this process require me to do?
Thank you for your time!
pspuser007 said:
I have stock hboot and currently running VJ's CM10.1 JB 4.2.2.
Despite the installation of the A2SD script, the free space of the device is really low. I thought of flashing a hboot that enables more space (Data++).
The problem is that the Data++ has a system partition size of 140MB and now, with the 250MB, there are 4MB left.
So, can I flash the Data++ hboot?
If so, what will this process require me to do?
Thank you for your time!
Click to expand...
Click to collapse
You can't. Your system is too big. You'll have to stick to the stock hboot, and use a different a2sd script, that also moves dalvik cache to sd-ext.
Can I find why has the system partition increased so much in size?
Most importantly, how can I flash another script?
Do I have to uninstall the current a2sd script firstly and then install the other via fastboot?
Do you recommend any a2sd scripts? Is this a good one?
pspuser007 said:
Can I find why has the system partition increased so much in size?
Most importantly, how can I flash another script?
Do I have to uninstall the current a2sd script firstly and then install the other via fastboot?
Do you recommend any a2sd scripts? Is this a good one?
Click to expand...
Click to collapse
Do a nandroid backup before proceeding!!
With a root explorer, go to system/etc/init.d and delete 10apps2sd. Then boot in recovery and install this:
https://www.dropbox.com/s/ngseioig6t2m3ns/apps_dalvik2ext-UNSIGNED.zip
It should also move dalvik cache to sd-ext.
Hey,
I assume you followed VJ's guide, and installed the a2sd xdata with the following settings Y | N | Y (=reboot).?
There is another thing you could try, and that is to run the xdata command in Terminal Emulator, which basicly mounts the entire /data partition to /sd-ext ! That however MAY cause some performance loss, especially if you have a lower that class 6 SD card.. However, I did it on my Desire, also running VJ's JB rom, and I can't notice any performance loss (=i have a 16 GB class 10 SanDisk SD card..)
As always, please do a nand back-up before trying anything.. If you choose to try this, just open Terminal Emulator, type "su" to get superuser permission, and then "a2sd xdata".. you might have to answer Y a couple of times, then the phone will reboot, take 5-10 mins to boot up (depending on how many apps you already installed. ), and violá: you should have your entire sd-ext partition as storage space..
Good luck!
- H
EDIT: ooops, almost forgot: if you want a simple overview and explanation of the a2sd xdata commands, look here: http://forum.xda-developers.com/showpost.php?p=21222591
- H
pspuser007 said:
I have stock hboot and currently running VJ's CM10.1 JB 4.2.2.
Despite the installation of the A2SD script, the free space of the device is really low. I thought of flashing a hboot that enables more space (Data++).
The problem is that the Data++ has a system partition size of 140MB and now, with the 250MB, there are 4MB left.
So, can I flash the Data++ hboot?
If so, what will this process require me to do?
Thank you for your time!
Click to expand...
Click to collapse
@abaaaabbbb63:
Which one of the scripts mentioned here is this?
I've checked the bash script you've posted and the one in my /system/etc/init.d/ dir, and saw that the one I have, has a lot more code than that you've posted. Wouldn't there be a problem with this?
Also, is this going to remove anything from sd-ext and just mount dalvik cache to it, or it will add dalvik cache to sd-ext?
@hhaznadar85:
To start with, thank you for the detailed answer
Yes, this is the way I've installed it! I also, have a 16GB class 10 microSD card so I am thinking about trying this.
As you've said, xdata command mounts the whole data partition. Isn't there a command that moves dalvik cache to sd-ext so as to try this first?
pspuser007 said:
@abaaaabbbb63:
Which one of the scripts mentioned here is this?
I've checked the bash script you've posted and the one in my /system/etc/init.d/ dir, and saw that the one I have, has a lot more code than that you've posted. Wouldn't there be a problem with this?
Also, is this going to remove anything from sd-ext and just mount dalvik cache to it, or it will add dalvik cache to sd-ext?
@hhaznadar85:
To start with, thank you for the detailed answer
Yes, this is the way I've installed it! I also, have a 16GB class 10 microSD card so I am thinking about trying this.
As you've said, xdata command mounts the whole data partition. Isn't there a command that moves dalvik cache to sd-ext so as to try this first?
Click to expand...
Click to collapse
It's a script i have been personally using on my desire with every ROM for the past year. It's simple, and moves data/app and dalvik cache to sd-ext.
You just flash it from recovery. Everything else will be moved my itself. Nothing will be deleted.
Ok then, I'll give it a go..
So to install the steps are:
1. nandroid backup before flashing the script
2. delete the file via root explore and flash the zip via recovery
Just in case, I need to restore the previous state, what should I do to minimize the loss of data (any data) ?
pspuser007 said:
Ok then, I'll give it a go..
So to install the steps are:
1. nandroid backup before flashing the script
2. delete the file via root explore and flash the zip via recovery
Just in case, I need to restore the previous state, what should I do to minimize the loss of data (any data) ?
Click to expand...
Click to collapse
You just restore the backup. Everything should be back in place.
whoa, sorry to ask this here, but @abaaaabbbb63, you seem like someone who knows this s**t..: VJ's JB ROM comes with some modified version of the original DT A2sd script.. Is there any way to remove it, and install the "old" a2sd script..
List of things I've tried:
a.) right after flashing ROM, go into terminal, type su --> a2sd remove --> reboot.. once rebooted, get root explorer, nav to /system/etc/init.d and remove 10apps2sd file = didn't work
b.) right after flashing ROM, go into terminal, type su --> a2sd remove --> reboot.. once rebooted, get root explorer, nav to /system/etc/init.d and remove 10apps2sd + 05mountext + 06handleswap files = didn't work
c.) right after flashing ROM get root explorer, nav to /system/etc/init.d and remove 10apps2sd file = didn't work
d.) right after flashing ROM, get root explorer, nav to /system/etc/init.d and remove 10apps2sd + 05mountext + 06handleswap files = didn't work
e.) Right after flashing ROM, get root explorer, nav to /system/etc/init.d and remove 10apps2sd. THen to /system/bin and remove the a2sd file = didn't work..!
I'm pretty much starting to give up... but I would sooooooo love to have the original DT a2sd script with this ROM.. any way of achieving that..?
Thanks in advance,
- H
EDIT: Oh, yea.. and of course when I write "didn't work" I mean that I subsequently rebooted into recovery, flashed the DT a2sd script, and then stuck on boot.. Every time...
---------- Post added at 07:58 PM ---------- Previous post was at 07:50 PM ----------
pspuser007 said:
As you've said, xdata command mounts the whole data partition. Isn't there a command that moves dalvik cache to sd-ext so as to try this first?
Click to expand...
Click to collapse
I dont think so.. I tried "dc2sd", "dalvik2sd" "cachesd", etc.. nothing worked..
I'm kinda annoyed by this modified script, so I also think I'm gonna try abaaaabbbb63's idea.. please share here if it works out for you.
- H
hhaznadar85 said:
whoa, sorry to ask this here, but @abaaaabbbb63, you seem like someone who knows this s**t..: VJ's JB ROM comes with some modified version of the original DT A2sd script.. Is there any way to remove it, and install the "old" a2sd script..
List of things I've tried:
a.) right after flashing ROM, go into terminal, type su --> a2sd remove --> reboot.. once rebooted, get root explorer, nav to /system/etc/init.d and remove 10apps2sd file = didn't work
b.) right after flashing ROM, go into terminal, type su --> a2sd remove --> reboot.. once rebooted, get root explorer, nav to /system/etc/init.d and remove 10apps2sd + 05mountext + 06handleswap files = didn't work
c.) right after flashing ROM get root explorer, nav to /system/etc/init.d and remove 10apps2sd file = didn't work
d.) right after flashing ROM, get root explorer, nav to /system/etc/init.d and remove 10apps2sd + 05mountext + 06handleswap files = didn't work
e.) Right after flashing ROM, get root explorer, nav to /system/etc/init.d and remove 10apps2sd. THen to /system/bin and remove the a2sd file = didn't work..!
I'm pretty much starting to give up... but I would sooooooo love to have the original DT a2sd script with this ROM.. any way of achieving that..?
Thanks in advance,
- H
EDIT: Oh, yea.. and of course when I write "didn't work" I mean that I subsequently rebooted into recovery, flashed the DT a2sd script, and then stuck on boot.. Every time...
---------- Post added at 07:58 PM ---------- Previous post was at 07:50 PM ----------
I dont think so.. I tried "dc2sd", "dalvik2sd" "cachesd", etc.. nothing worked..
I'm kinda annoyed by this modified script, so I also think I'm gonna try abaaaabbbb63's idea.. please share here if it works out for you.
- H
Click to expand...
Click to collapse
Try removing the 10apps2sd from the ROM zip itself, and replacing it with the "old" a2sd script. Then install the modified ROM zip from recovery.
I got to that result also. Finally i went back CM7.2..
HTC Desire
SanDisk Extreme 32GB Class 10
CM7r2 hboot
4EXT Recovery Touch
2GB 4ext partition --> Mounts2SD
ClockworkMod 7.2.0.1
- modified with 7zip
- uot kitchen kitchen
V6 SuperCharger Script
GO Launcher EX @ 160 dpi
I just tried flashing the zip, it succeeded had a successful boot, as well.
Sharing the experience:
1. deleted the script from /system/etc/init.d dir
2. booted to recovery:
got a slower boot (actually saw for the 1st time the "preparing to boot: x" message (where x, probably the percentage of completion)
got an error about mounting the system partition, telling me to wipe it..I simply rebooted to recovery and all went fine.
3. flashed the zip
4. rebooted and the rom loaded normaly with a delay of less than a minute
Now, I checked the Settings > Storage and saw the same amount of free space.
Booted into recovery and there's the info of the fs <mount point, free space>
system, 8.2MB
data, 27.8MB
cache, 38.8MB
How can I verify that the move of dalvik cache occurred?
Use an app like DiskUsage, browse all your partitions and see where the dalvik cache folder is located.
You can do this for any a2sd script on any rom, try to understand exactly what is stored where. All a2sd scripts are supposed to effectively achieve the same thing..
Eddie, thank you for the reply! I've used the DiskUsage app, and verified that dalvik cache is located at the sd-ext partition.
I've also seen that the sd-ext partition has 400MB free of a total of 1007MB.
Although, I tried installing Themer (15MB) and got the insufficient storage error.
Low memory warning comes from your /data partition, not your sd-ext
Check what is filling up /data
Make sure you have very little free space on /system as well as any free system space is wasted space. If this is the case your rom may fit into a smaller hboot
Hey! I did this with Chromium Rom. Maybe it will help..
1. Install data++ hboot from alpharev's website. 2. Flash Chromium rom build 11 slim.
3. Flash gaps.
4. Wipe cache + dalvik
5. Reboot twice - wait a few minutes every time. (Do only the performance options, but no script options)
6. Open terminal and write;
"a2sd xdata" --> yes --> yes
7. Wait again a few minutes.
8. Reboot again.
9. That's it!!!: D

[solved] Andriod upgrading everytime when restarts

Today im Updated 4.3 JB in my Xperia M Dual using SUS...
update was completed successfully...
but everytime when i switch on my mobile it showing,
Andriod is upgrading...
Starting Applications...
What is this?? this is really happen in all mobile or is this any error??
if it is a problem then, how to fix this problem...
Help me experts.....
Try resetting it with SUS and see if it works.
IIRC, this means android is making new dalvik cache for the apps or the one it has on the phone is old version.
This could indicate problem at \cache\
Try a file explorer. post screenshot of what you see.
theperson333 said:
IIRC, this means android is making new dalvik cache for the apps or the one it has on the phone is old version.
This could indicate problem at \cache\
Try a file explorer. post screenshot of what you see.
Click to expand...
Click to collapse
Bro, there is no folder like /cache in my internal and external card...
Pls tell me, the correct path, i will show you immediately...
But, remember one thing my mobile is a rooted one before doing 4.3 update.. Is that the reason for this problem???
Give ans bro..
Try resetting your dalvik-cache... Use a file explorer with root access or adb shell and delete the folder dalvik-cache found inside /data (or rm -r -f /data/dalvik-cache from adb shell). Right after that you should reboot your phone (after deleting that folder all apps will start FCing, it's ok). In the next reboot the "Android is upgrading" screen will show and will take some time since it'll regenerate the cache. This should fix your problem.
If even after resetting dalvik-cache the same thing keep occurring, then inside /system/app you may have an .odex file for an .apk that contains classes.dex inside (e.g. you have an .odex for an APK that already is deodexed). It's common to occur when using apps like Lucky Patcher to apply patches or apps like Titanium Backup that allow integrating dalvik cache of apps inside system partition...
mbc07 said:
Try resetting your dalvik-cache... Use a file explorer with root access or adb shell and delete the folder dalvik-cache found inside /data (or rm -r -f /data/dalvik-cache from adb shell). Right after that you should reboot your phone (after deleting that folder all apps will start FCing, it's ok). In the next reboot the "Android is upgrading" screen will show and will take some time since it'll regenerate the cache. This should fix your problem.
If even after resetting dalvik-cache the same thing keep occurring, then inside /system/app you may have an .odex file for an .apk that contains classes.dex inside (e.g. you have an .odex for an APK that already is deodexed). It's common to occur when using apps like Lucky Patcher to apply patches or apps like Titanium Backup that allow integrating dalvik cache of apps inside system partition...
Click to expand...
Click to collapse
Thanks for ur response bro...
my root access is gone after the update..
now i cant able to use titanium backup or file explorer with root access..
ananthtcr said:
Thanks for ur response bro...
my root access is gone after the update..
now i cant able to use titanium backup or file explorer with root access..
Click to expand...
Click to collapse
If you updated without wiping data and cache it's very likely to be the cause of this problem, while you had root access one of those apps may have changed something in dalvik-cache and now that you don't have root access anymore Android keeps trying to "optimize" that app every time the phone boots...
Problem fixed!!!!!
I uninstall some apps which needs root acces and successfully deleted data/cache folder (Which is in hidden state earlier).
Now the Android Upgrading msg not coming..
Thanks Experts!!! You are really Great!!!
Specially thank to theperson333 and mbc07
android is upgrading on boot up
i did the above steps
wiped dalvik cache using cwm recovery
bt still problem persist
on boot up it show android is upgrading...
lemme tell what exactly happened from beginning
im using xperia l(4.2.2) with root access
i installed a keyboard ported from 4.4 to all xperia running jb.(for that i mounted system n flashed the zip using cwm recovery)
n keyboard is working fine bt problem is that
on every boot up
xl shows android is upgrading n takes 5 min to start..
i even searced for. dex app in system bt there is no app with that extension..

Xperia S with root unmounted sdcard

Hi all,
I have a rooted nozomi device with nAOSP 5.1 rom and TWRP 2.8.7.0. Everything worked fine until today morning, when i realised that Internal sdcard was unmounted. I checked ES File Explorer (with root access granted) and it says scared empty and then switches to sdcard unmounted message. First I thought it was something like a soft bug, so made soft reboot. Then I made full reboot of the system and still had the same issue.
Then I rebooted into recovery and checked the partitions - internal sdcard was ticked as mounted. Checked the partition details and everything seemed fine - formatted as vfat and size displayed.
Tried untick and tick the mount option and reboot - not resolved.
Tried to repair partition and reboot - not resolved
So I decided to refer to xda to find some advise, before formatting the sdcard completely.
Do you have any ideas on the matter of this issue and how to resolve it?
Thanks in advance
GuliW said:
Hi all,
I have a rooted nozomi device with nAOSP 5.1 rom and TWRP 2.8.7.0. Everything worked fine until today morning,
Do you have any ideas on the matter of this issue and how to resolve it?
Thanks in advance
Click to expand...
Click to collapse
Try this method http://forum.xda-developers.com/showthread.php?p=62457723
darknessmc said:
Try this method http://forum.xda-developers.com/showthread.php?p=62457723
Click to expand...
Click to collapse
Thank you darknessmc
I followed the steps in other post, but result as follows:
chown -R 1023.1023 /sdcard -operation not permitted.
chmod -R 770 /sdcard completed
After reboot into system - issue remained. Maybe I did something wrong? I just used root directory and pressed Select in Terminal of TWRP.
Repeat it again like they said. I didn't try it.
darknessmc said:
Repeat it again like they said. I didn't try it.
Click to expand...
Click to collapse
I tried these commands several times with no changes - still no permission for chown -R 1023.1023. Reading the referral thread further it seems that problem is cause by stericson BusyBox app update I installed it long time ago just for Titanium backup to work. Yesterday I uninstalled it and cleaned Dalvik Cache in Recovery. Problem still not resolved.
I wonder if there are any other steps I could perform, before flashing the Rom again?
P.S. Now I don't see any point in formatting the SD card partition, since it is seen in Recovery and all files appear intact there.
Solved for me...after I did clean flash of another ROM ..

Categories

Resources