Go Back   Android Forums > Android Discussion > Android Applications
Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old September 18th, 2012, 09:17 AM   #1 (permalink)
AF Contributor
Thread Author (OP)
 
divinebovine's Avatar
 
Join Date: Aug 2012
Posts: 987
 
Device(s): Kyocera Rise, Kyocera Hydro, PCD/ZTE/Alcatel Virgin Mobile Venture/JukeB
Carrier: Not Provided

Thanks: 142
Thanked 275 Times in 207 Posts
Send a message via AIM to divinebovine Send a message via MSN to divinebovine
Question link2sd not re-linking dalvik-cache at boot

My Venture, with its puny /data internal storage, benefits greatly from using link2sd. However, when I reboot, the dalvik cache is full of real files, not symlinks, and link2sd doesn't automatically re-link the files. I'm not sure if it's wiping and re-creating the dalvik cache or just doing something with those files. It takes a long time to boot and I can repeatedly use df in an ADB shell and watch as /data fills up.

Once booted, I have to open link2sd, go to its menu, and choose "Link dalvik-cache files".

Not only does this mean that my /data is full after rebooting, but it also means that if I have too many apps to fit in /data then some will end up broken (presumably the ones it attempts to cache after /data is already full).

So, my questions are...

1. Is it normal behavior for the system to un-link dalvik cache on boot (either the individual files, or wiping/re-creating the whole thing)? Could this be happening because of some setting I dumbly changed/utility app I monkeyed with?

2. Is it reasonable to expect link2sd to automatically re-link dalvik-cache files on boot? I do have "Relink dex files at boot" enabled.

I'm thinking I could chmod the symlinks in /data/dalvik-cache so they're not writable and that might prevent those from being wiped and re-created or whatever, but I don't know if that would break anything (other than having to fix file permissions before uninstalling apps). I guess it couldn't hurt to try on some non-essential apps...could it?

__________________
Known on most forums as theholycow. See my other hacking interest.

110GB free at Surdoc! Or 2.5GB @ Dropbox. Or 20GB @ Copy. For Android backup, 1.3GB @ GCLoudBackup.com - just enter code DHY4B2. Bonuses at dozens of other cloud storage services.
divinebovine is offline  
Reply With Quote
sponsored links
Old September 18th, 2012, 10:35 AM   #2 (permalink)
Member
 
Andima's Avatar
 
Join Date: Jul 2011
Gender: Male
Posts: 449
 
Device(s): Samsung Galaxy S3 GT-i9300
Carrier: Not Provided

Thanks: 212
Thanked 42 Times in 38 Posts
Default

I use Link2SD, but i never face this type of issue. But after i clean dalvik-cache using recovery, all the dalvik cache symbolic links lost. So that i have to re-link them. But if i clear dalvik cache using Link2SD, there's no issue.
__________________
Android Gadgematic My droid blogs.
Andima is offline  
Reply With Quote
Old September 18th, 2012, 11:41 AM   #3 (permalink)
New Member
 
Join Date: Jul 2012
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

If you can read my previous posts here, you'd find that I too experience the same with my Link2SD, but it's the lib file that keeps on unlinking each time I reboot. In the end, I have to get used to manually relinking the lib files while dodging app crashes at the same time.

As for the dalvik, you can try getting Titanium Backup Pro so you can integrate dalvik files into your ROM, which might greatly reduce space. Someone correct me if I'm wrong, though.
holocoz is offline  
Reply With Quote
Old September 18th, 2012, 12:01 PM   #4 (permalink)
AF Contributor
Thread Author (OP)
 
divinebovine's Avatar
 
Join Date: Aug 2012
Posts: 987
 
Device(s): Kyocera Rise, Kyocera Hydro, PCD/ZTE/Alcatel Virgin Mobile Venture/JukeB
Carrier: Not Provided

Thanks: 142
Thanked 275 Times in 207 Posts
Send a message via AIM to divinebovine Send a message via MSN to divinebovine
Default

I just checked your thread...it does sound very similar, just as you describe.

If I end up trying different permissions on the dalvik symlinks and that helps, I'll help you try it on your libs. Should be as simple as chmod 0555 filename I think.
divinebovine is offline  
Reply With Quote
Old September 20th, 2012, 04:05 AM   #5 (permalink)
New Member
 
Join Date: Jul 2012
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sure, thanks.
holocoz is offline  
Reply With Quote
Old September 20th, 2012, 12:56 PM   #6 (permalink)
AF Contributor
Thread Author (OP)
 
divinebovine's Avatar
 
Join Date: Aug 2012
Posts: 987
 
Device(s): Kyocera Rise, Kyocera Hydro, PCD/ZTE/Alcatel Virgin Mobile Venture/JukeB
Carrier: Not Provided

Thanks: 142
Thanked 275 Times in 207 Posts
Send a message via AIM to divinebovine Send a message via MSN to divinebovine
Unhappy

Quote:
Originally Posted by divinebovine View Post
Should be as simple as chmod 0555 filename I think.
Negatory. In all my years as a part-time linux administrator I don't think I've ever had reason to chmod a symlink, so that'd be why I didn't realize that chmod doesn't work on symlinks.

Is there a way to prevent a symlink from being deleted/overwritten? It appears that the answer is a qualified no:
Can you make a symbolic link read only?
One can prevent symlinks being deleted/overwritten by changing permissions on the directory, but that would have serious consequences in this case...you probably wouldn't be able to install or uninstall ANY software.

However, maybe there's hope...
The ex-sysadmin: Performing a chmod on a symbolic link
If you delete the symlink, change your umask, then create the symlink, you may get the results you desire. {a few minutes pass} Nope...tried it, symlink still has lrwxrwxrwx.

Drat.

Cliff's notes: Anybody have any idea how we can prevent symlinks from being removed/overwritten without changing permissions for the directory?
divinebovine is offline  
Reply With Quote
Old February 25th, 2013, 01:07 AM   #7 (permalink)
Junior Member
 
Join Date: Aug 2011
Posts: 16
 
Device(s): Galaxy S II International
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

I started having this problem from yesterday's CM10.1 nightly on my SGS2.
KurianOfBorg is offline  
Reply With Quote
Old July 4th, 2013, 07:47 AM   #8 (permalink)
AF Contributor
Thread Author (OP)
 
divinebovine's Avatar
 
Join Date: Aug 2012
Posts: 987
 
Device(s): Kyocera Rise, Kyocera Hydro, PCD/ZTE/Alcatel Virgin Mobile Venture/JukeB
Carrier: Not Provided

Thanks: 142
Thanked 275 Times in 207 Posts
Send a message via AIM to divinebovine Send a message via MSN to divinebovine
Default

Update: I installed this ROM
[ROM] DRAndroid Lite v1 rev2 (with overclocked kernel) [UPDATED 04/15/2013]
and the problem disappeared.
divinebovine is offline  
Reply With Quote
Reply
Tags
dalvik, dalvik cache, dalvik-cache, link 2 sd, link2sd, link2sd problems, memory, memory has little space, venture


Go Back   Android Forums > Android Discussion > Android Applications
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:34 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.