Problems clearing Dalvik when using adoptable-storage - Android Q&A, Help & Troubleshooting

I'm running Marshmallow and have a 64GB internal microSD card mounted as "adopted storage". When I tell TWRP (3.0.2-0) to clear the Dalvik cache, only a few apps (about 9) get regenerated ("optimized") on the next reboot. The remaining 100+ apps are not optimized on the next reboot. I've tried deleting the /data/dalvik-cache folder myself and get the same results. So, I assume that the oak/etc. files for the other 100+ apps are stored "somewhere else". Any idea where?
Thanks.
(PS: Yes, I know Marshmallow is an Art system, not a Dalvik system. The term "dalvik cache" is used in many places as a generic term to refer to the place where Android keeps optimized apps. Marshmallow still uses the /data/dalvik-cache folder for this purpose. Marshmallow's obviously just not as ... consistent about using it as earlier versions of Android.)

Related

[Q] Link2SD vs. wipe dalvik cache vs. out of space

Was already asked on the original Link2SD thread but cannot find the answer anywhere there.
Say you have tons of stuff installed via Link2SD on /data/sdext2 (extX partition on SD card). Now:
- you go to recovery and wipe dalvik cache (or use something else to wipe it, does not exactly matter)
- on reboot, the cache gets rebuilt on /data
- hmmm, I said I have lots of stuff on SD
- so, you run out of space on /data ?! Now what?
IOW, how early does the Link2SD thing kick in? Does it prevent such things?
Hmmm... so, I wonder whether my question is too stupid or too difficult.
I'm also using link2sd with about 261 apps installed (according to Titanium Backup count)
Here's the step on my Optimus One (total internal memory: 209 MB)
before clear dalvik: I have about 78 MB free
1. boot to recovery (i'm using CWM) > advanced > wipe dalvik
2. reboot system
3. first time get into OS, there's notification low space on phone's memory
4. checked free space: only 28 MB free
I have to manually link dalvik cache to achieve the free space before (78 MB).
Thanks to the dev, on Link2SD 1.9.1 there is a menu to relink all dalvik cache at once, so I don't have to recreate link per one apps.
I think link2sd automatically link app-dalvik-lib files for newly installed apps only.
It can't detect a dalvik file recreated back into phone memory with apps still installed.
got the same problem.
It's a big issue when changing kernel and stuff

Is there a cache other than Dalvik?

I read in a lot of threads where people recommend wiping "cache and Dalvik-cache" to fix a variety of problems. I know apps have their own cache but does the Eris have a cache other than Dalvik? I'm using GSB 3.8 and I don't see another cache, but maybe I'm not looking in the right place.
Dalvik-cache files are split up into two different locations. The dex files for your system apps are in /cache/dalvik-cache and the dex files for your installed apps are in /data/dalvik-cache. The popular cache2cache script moves the files from data/dalvik-cache to the cache partition to provide more space on the data partition.
Besides dalvik-cache files, the /cache partition is also where market apps are temporarily downloaded before being installed.
Hope that helps.
OK, I use Zach's C2C script so clearing one dalvik location clears both and I was aware of the temp download location also. I guess I'm not missing anything, but I wanted to be sure. Thanks.

[Q] Resizing Partitions

After installing XRON vb2.6 on my sister's Touchpad, I noticed 2GB was for the main, and the rest (approx 9gb) allocated to the SD Card (shared between WebOS)...
Is there a way to make the 2GB CM partition larger, as I believe some issues will arise if too many apps are installed (due to Davik cache being on same partition). I had this problem in the past with my Samsung Epic and found it was a royal pain in the arse once a lot of applications are installed, and the Davik cache precaching most resources on that system partition....
Is the Davik cache actually stored on same system partitions? Perhaps my concern is not necessary, however if it is, I want to resize at least to 4GB to be on the safe side.
eddieyee said:
After installing XRON vb2.6 on my sister's Touchpad, I noticed 2GB was for the main, and the rest (approx 9gb) allocated to the SD Card (shared between WebOS)...
Is there a way to make the 2GB CM partition larger, as I believe some issues will arise if too many apps are installed (due to Davik cache being on same partition). I had this problem in the past with my Samsung Epic and found it was a royal pain in the arse once a lot of applications are installed, and the Davik cache precaching most resources on that system partition....
Is the Davik cache actually stored on same system partitions? Perhaps my concern is not necessary, however if it is, I want to resize at least to 4GB to be on the safe side.
Click to expand...
Click to collapse
Dalvik is moved to cache at boot. You shouldn't run in to that issue
Sent from my Touchpad using Tapatalk

Manually build dalvik cache without rebooting

Hi
Perhaps this is an unusual question: can be dalvik cache be manually built without rebooting?
I explain:
I have a "critical" link2sd usage (many more apps linked respect to internal memory capacity).
I have some problems with my terminal, which is unstable (sometimes freezes after boot, see this thread); due to this I safety boot without SD inserted; then I insert SD, in link2sd i relink app files, it does correctly, but apps obviously still do not work due to dalvik cache is not built (but symlinks are present).
Just to try, which is the command that makes dalvik cache building at boot, and after an apk installation(something like dexopt...)?
Can I try to apply it when device is in use?
If I reboot when I suffer this instability problems both /data partition could be filled by .dex files and the device could freeze after boot.
Thanks (and tell me if this is bull****)

Problems clearing Dalvik when using adoptable-storage

I'm running Marshmallow and have a 64GB internal microSD card mounted as "adopted storage". When I tell TWRP (3.0.2-0) to clear the Dalvik cache, only a few apps (about 9) get regenerated ("optimized") on the next reboot. The remaining 100+ apps are not optimized on the next reboot. I've tried deleting the /data/dalvik-cache folder myself and get the same results. So, I assume that the oak/etc. files for the other 100+ apps are stored "somewhere else". Any idea where???
Thanks.
Jolest said:
I'm running Marshmallow and have a 64GB internal microSD card mounted as "adopted storage". When I tell TWRP (3.0.2-0) to clear the Dalvik cache, only a few apps (about 9) get regenerated ("optimized") on the next reboot. The remaining 100+ apps are not optimized on the next reboot. I've tried deleting the /data/dalvik-cache folder myself and get the same results. So, I assume that the oak/etc. files for the other 100+ apps are stored "somewhere else". Any idea where???
Thanks.
Click to expand...
Click to collapse
Moved here, for better assistance.

Categories

Resources