[Android Software/Hacking General [Developers Only]] gshaw:
Android apps storage

Just flashed the AOKP ICS ROM from http://xdaforums.com/showthread.php?t=1484648 and afterwards ran the M2SD package. Originally used the 2.6 recommended on the ROM instructions but that got stuck in a boot loop so cleared data and tried again, this time with 4.6 Aroma.

That seemed to work OK, installed a bunch of apps then rebooted with gparted to have a look at the partition usage... space used had gone up so thought all was well.

Question is what should the "Manage Apps" storage graph look like if M2SD is doing its job? Sometimes it goes right down to 25MB free but others it jumps back to around 50MB. Should it show the size of my M2SD partition (512MB?) Might sound a dumb question but if I install new apps are they going straight to the SD-EXT partition or do they land onto internal memory first and get shifted over during boot?

Status and logs as per below if they help...

Status:
-------
* Mounts2SD [safe-mode]
- Apps [loaded]
- Data []
- Dalvik []
- CmDalvik []
- Cache []
- SWAP []
- RMount []

Device info:
------------
* SD-EXT device [/dev/block/mmcblk0p2]
* Swap device []

Locations:
------------
* Cache []

root@android:/ # df
df
Filesystem Size Used Free Blksize
/dev 202M 32K 202M 4096
/mnt/asec 202M 0K 202M 4096
/mnt/obb 202M 0K 202M 4096
/system 250M 180M 69M 4096
/data 150M 127M 23M 4096
/cache 40M 2M 37M 4096
/sd-ext 494M 56M 438M 1024
/data/app 494M 56M 438M 1024
/data/app-private 494M 56M 438M 1024
/data/app-system 494M 56M 438M 1024
/data/local/tmp 40M 2M 37M 4096
/data/data/com.android.providers.downloads/cache 40M 2M 37M 4096
/mnt/sdcard 3G 174M 3G 4096
/mnt/secure/asec 3G 174M 3G 4096
/mnt/asec/com.linkedin.android-1 6M 4M 1M 4096
/mnt/asec/com.mobisystems.office-1 14M 12M 2M 4096
/mnt/asec/com.ebay.mobile-1 6M 4M 1M 4096
/mnt/asec/lysesoft.andexplorer-1 2M 476K 1M 4096
/mnt/asec/fishnoodle.spacescapewallpaper-1 4M 2M 1M 4096
/mnt/asec/bbc.iplayer.android-1 3M 1M 2M 4096

root@android:/ # m2sd log
m2sd log

v/Initiating Mounts2SD (v:4.6.0) [Sun Jul 8 11:15:14 BST 2012]
v/Checking configurations...
w/SYSINIT MISSING: This script works best using sysinit as an executable rather
than an service! Switching to safe mode...
v/Optimizing /system readahead...
v/Disabling /system atime & diratime...
v/Optimizing /data readahead...
v/Waiting for sdcard to initiate...
v/sdcard found at /dev/block/mmcblk0...
v/Setting sdcard readahead to 512kb...
v/Running e2fsck on sd-ext...
v/The sd-ext partition was mounted successfully at /sd-ext using auto detection
of the file system type!
v/Creating link between /data/app and /sd-ext/app...
v/Creating link between /data/app-private and /sd-ext/app-private...
v/Creating link between /data/app-system and /sd-ext/app-system...
v/Creating link between /cache and /data/local/tmp...
v/Creating link between /cache and /data/data/com.android.providers.downloads/ca
che...
v/Mounts2SD has been loaded!

Registered properties:
----------------------
[mounts2sd.sdext.device]: [/dev/block/mmcblk0p2]
[mounts2sd.sdext.status.apps]: [loaded]

Mount Points:
-------------
Filesystem Size Used Available Use% Mounted on
tmpfs 202.6M 32.0K 202.6M 0% /dev
tmpfs 202.6M 0 202.6M 0% /mnt/asec
tmpfs 202.6M 0 202.6M 0% /mnt/obb
/dev/block/mtdblock3 250.0M 180.2M 69.8M 72% /system
/dev/block/mtdblock5 150.8M 127.2M 23.6M 84% /data
/dev/block/mtdblock4 40.0M 2.3M 37.7M 6% /cache
/dev/block/mmcblk0p2 494.8M 56.6M 412.7M 12% /sd-ext
/dev/block/mmcblk0p2 494.8M 56.6M 412.7M 12% /data/app
/dev/block/mmcblk0p2 494.8M 56.6M 412.7M 12% /data/app-private
/dev/block/mmcblk0p2 494.8M 56.6M 412.7M 12% /data/app-system
/dev/block/mtdblock4 40.0M 2.3M 37.7M 6% /data/local/tmp
/dev/block/mtdblock4 40.0M 2.3M 37.7M 6% /data/data/com.android.p
roviders.downloads/cache