[Q] Is splitting the Dalvik cache between two memory locations possible? - Desire Q&A, Help & Troubleshooting

Hi,
I was thinking that for some applications for performance reasons it is preferable to have the associeate davlik cache file in internal memory and for others it is better to move to them to sd in order to save space? Is there any script/code which implements such a feature?

You can allow DK to be on ext, then move certain DKs to a new folder on NAND, then add a symlink on ext.

Droidzone said:
You can allow DK to be on ext, then move certain DKs to a new folder on NAND, then add a symlink on ext.
Click to expand...
Click to collapse
thanks, is there some kind of gui for this that would make batch processing simple, and can i do it the other way? I.e. symlink files from Nand to ext?

I dont know if there is any gui. Why do you need one?
Code:
adb shell
mv targetpath/filename.dex sourcepath/
ln -s targetpath sourcepath
are all the commands that you need.

Droidzone said:
I dont know if there is any gui. Why do you need one?
Code:
adb shell
mv targetpath/filename.dex sourcepath/
ln -s targetpath sourcepath
are all the commands that you need.
Click to expand...
Click to collapse
So that i can move multiple files easily. I was considering XD2SDX http://forum.xda-developers.com/showpost.php?p=18911182&postcount=1784 which places app data and apks on the sd and keeps the dalvik cache on internal memory. My thinking is that for apps that are rarely used it is unecessary to have the the associated cache on the internal memory, so I want to experiment with moving invidual dalvik app caches, this is why a gui would be useful. Afterall it would be a chore to have to type in the commands manually each time i install a new app.

QtADB.............symlinks will have to be created manually.

Related

[SOLVED] AP2SD+++, data on /system/sd, Where wrong?

I want to move some some huge apps data dir on sd card, to free internal memory. /data/data/com.google.earth, for example, is 17MB !
So, I make a folder /system/sd/data/ moving in com.google.earth and doing symlink under /data/data
Code:
ln -s /system/sd/data/com.google.earth com.google.earth
but, at reboot, symlink are still here, but folder /system/sd/data disapears with all contents...
Why ? Where wrong ?
(i'm using MCR R4 with AP2SD++ )
I believe that the A2SD script moves all data to internal memory and removes the data dir from SD.
It's not even recommended to move data to the SD card because it's very insecure and can cause force closes.
At least that's how it was on the G1 and the A2SD script is most probably taken from there.
beidl said:
I believe that the A2SD script moves all data to internal memory and removes the data dir from SD.
Click to expand...
Click to collapse
well, looking into A2SD script I found this:
Code:
# don't allow /data/data on sd because of upgrade issues - move it if possible
if [ -d /system/sd/data ];
then
busybox cp -a /system/sd/data/* /data/data/;
busybox rm -rf /system/sd/data;
fi;
And I agree, if you move all /data/data phone never start without SD, but all what I want is move some, less used, big application, link Google Earth. So I've call the folder /system/sd/4data, to prevent script deleting, and seems to works fine, it survive at boot, Google Earth starts and I have 17Mb more memory free.

[Test] Extended App2SD with data/data on SD

I'm using App2SD+ with MoDoCo r7.
I have today tried to moving data/data to sd card through symlink. I have now 138 MB internal memory free with (240 Apps). 90% of Apps & all Games works fine. But I can't start some Apps like "Market" or "Swype".
I get an error and it will be closed.
Can somebody check my adb steps ? is it correct or have I forgot some things ?
mount system
mkdir /system/sd/data
cd /data/data
cp * /system/sd/data
cd /data
rm -r data
ln -s /system/sd/data /data/data
thanks!
App data on SD causes too much problems and a big decrease in speed. (Galaxy S users have problems because data is on an internal SD card by default)
There's a reason data hasn't been moved to SD by the A2SD script yet.
If you really really really want as much space on /data as possible,
it's better to move an apps lib file to /system and symlink it to the apps data directory.
So at least the file is on the internal NAND.

[Q] HELP SD-EXT back to phone memory

Is there a method to move data in ext2 back to phone memory in my desire? I found some recovery tools allow that. But I don't find any way in clockwork mod.
Thanks for the help.
Make a backup of yours Apps+Data with Titanium Backup, make a backup of FAT32-Partition of the Card. Partition the SD-Card without swap and ext. Reboot the Desire and restore the SD-Card (with USB-Connection) and restore the backups made with Titanium Backup.
Thanks for the info. But Titanium Backup can't restore everything. Is there any other method to move ext2 data back to phone like some other recovery tools able to move ext back to phone.
n
Go into recovery, mount sd-ext and data.
Open an ADB shell and do the following
rm /data/app
rm /data/app-private
rm /data/dalvik-cache
Thats how you delete the links.
mv /sd-ext/app /data/
mv /sd-ext/app-private /data/
mv /sd-ext/dalvik-cache /data/
If it's correct there should be a app, app-private and dalvik-cache dir again, check like this:
ls /data/
Double check if there is still something important left on sd-ext:
ls /sd-ext
If there is a data folder you need to move it to, but I think there were only app, app-private and dalvik-cache.
Turn phone off, remove SD card and put it into your PC to repartition it. If you reboot the phone with SD card still in it will re-setup ap2sd.
By using this command all apps will move back to phone right?
Titanium Backup
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there
mrusheen said:
I found an option in Titanium Backup allowing for a batch moving of all apps to the internal memory. I used it (because i need to also) and I checked in Settings>Applications>Apps on SD and none were there
Click to expand...
Click to collapse
Settings>Applications>Apps on SD only shows Froyo Apps to SD, it doesn't show old A2SD or A2SD+ apps, the phone is tricked into thinking those apps are installed internally
Yes that is the problem. So I want to find a way to reverse it.

[Q] Apps2SD +++

I've been trying to add all apps+data+dalvik to my sdcard but only got the apps+dalvik to the sdcard.
After installing a few apps i was out of space internally and tried to mount a 4th sd partition as /data/data.
The problem was:
1. when all was done in recovery it was not used when rebooting the phone, this also applies to /etc/fstab
2. still canot figure out how to permanently mount /dev/block/mmcblk0p4 as /data/data or as an alternative mount it as /sd-ext2 and mount -o bind /sd-ext2 with /data/data
3. the froyo style apps2sd seems to me like a bunch of crap, the went to my fat32 partition ?
4. not the problem ? Partition1=fat32, partition3=ext3(apps), partition3=swap, partition4=ext3(data)
5. the phone totally crashed when trying to combine partition 2 and 4 as one with 2gb storage and mounting it to /data/
If anyone can figure out a solution to this it would be great
Btw, tried this on modaco r9, pinkolin pinky, auraxtsense and leedroid roms, all with sense. (I want to use sense just because!)
PLZ come up with a solution/patch/mod, this would be the lifesaver for us who want's alot of apps and still lots of free storage space
Iknow linux, but it made no difference with android in some ways.
I've tried several attempts to ln-s /sd-ext/data to /data/data as well, but ever boot it resets it and does it's thing.
Nothing I do seems to permanently change this thing.
Where can I change it ?
It's the same as with /data/app and /data/dalvik-cache ?
And if so, where is that ?
SYmlink works with /data/app and dalvik-cache, why not on /data/data ?
This is strange because I've moved my dalvik-cache to /cache without any problem.
Maybe froyo doesn't like being symlinked to external storage?
hawkn said:
I've tried several attempts to ln-s /sd-ext/data to /data/data as well, but ever boot it resets it and does it's thing.
Nothing I do seems to permanently change this thing.
Where can I change it ?
It's the same as with /data/app and /data/dalvik-cache ?
And if so, where is that ?
SYmlink works with /data/app and dalvik-cache, why not on /data/data ?
Click to expand...
Click to collapse
the symlink wont exist after reboot unless you add a correct script to the /system/ect/init.d/ directory!! but be warned i have tried this and its not worth the effort, even if your device dosent bootloop when you try to boot, it will be as slow as a stoned wildfire, if you have s-off, i suggest changing the partiton tables on your device, you can gain an extra 50mb+ on the data partition that way, and its alot safer!

Runnymede 5.3, increased internal memory?

I am running the Runnymede 5.3 from Sebastian which i find excellend other than the lower internal storage I have.
I am on the CM7/R2 version after restoring my apps, i only have 20mb free. I dont want to use the XD2SDX script as i find it laggy.
So question is, is there any other way to get increased internal storage? I was thinking of moving the dalvik to the SD by using the zip created by coolexe but it does not seem to work.
Is there any other way for increased storage?
move dalvik to sd slows system
like XD2SDX
must have a class 10 sd card to speed up the system
Rubbish!
10char
Tried sibere's data2sd?
rootSU said:
Rubbish!
10char
Click to expand...
Click to collapse
Agree, I moved the dalvik on previous roms without any issues at all. Any ideas to the original question?
Im not familiar enough with the a2sd script thats in the rom.
if you explore the device, is dalvik on sd ext or on data instead?
rootSU said:
Im not familiar enough with the a2sd script thats in the rom.
if you explore the device, is dalvik on sd ext or on data instead?
Click to expand...
Click to collapse
Dalvik is on data. I was hoping to move this to sd-ext but not sure how.
325i. said:
Dalvik is on data. I was hoping to move this to sd-ext but not sure how.
Click to expand...
Click to collapse
The script attatched to the first post of 5.3 for a2sd, if you read it says:
Code:
busybox mkdir /data/dalvik-temp busybox chmod 777 /data/dalvik-temp###> Copy Application Dalvik to dalvik-temp cd /sd-ext/dalvik-cache; echo "Dalvik On SD-EXT:"
Which says it does move it.
rootSU said:
The script attatched to the first post of 5.3 for a2sd, if you read it says:
Code:
busybox mkdir /data/dalvik-temp busybox chmod 777 /data/dalvik-temp###> Copy Application Dalvik to dalvik-temp cd /sd-ext/dalvik-cache; echo "Dalvik On SD-EXT:"
Which says it does move it.
Click to expand...
Click to collapse
Sorry, but where does it say that on the thread?
I have again checked and the dalvik is definetly on data. if the dalvik was on the SD, i should have loads more space.
325i. said:
Sorry, but where does it say that on the thread?
I have again checked and the dalvik is definetly on data. if the dalvik was on the SD, i should have loads more space.
Click to expand...
Click to collapse
It doesn't say it in the thread. At the botom of Post 1 is a list of attachments. One of which is a2sdx. If you download that and look at the script inside, it says that. Perhaps you need to flash that zip?
Im trying to avoid that script has i find it very problematic like many others.
So i was hoping a for a simple dalvik to sd script.
That script apparently doesnt work well with stock Hboot.
The simplest script is the redux one which you can download, but you will need to titanium backup all apps and settings, Factory reset, REMOVE YOUR EXISTING a2sd SCRIPT! then flash that one from the Redux website.
How do i remove the existing A2sd script?
If you have root explorer you can just browse to system/etc/init.d and delete what I assume is called 40apps2sd. But when you reboots all your app links are lost meaning all your apps will be broken so titanium backup first.
Or remove it from the Rom zip first in the same place (even replace it with the one on the redux site) and reflash
Sent from my HTC Desire using xda premium
Did that and it seems to have worked, I now have over 200mb of space.
Strangely, the low memory warning message still pops up after a reboot.
Sent from my HTC Runnymede using Tapatalk
Not sure about the message but its small potatoes.
Don't forget the thanks button
Sent from my HTC Desire using xda premium

Categories

Resources