Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
britoso
Old
#1  
britoso's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 2,632
Join Date: Jan 2010
Location: FortWorth/TX

 
DONATE TO ME
Question apps2sd working, but /data size increasing?

In short: When I install a new app, the app gets installed in /system/sd just fine (/data/app and /data/app-private symlinks work just fine) , but /data increases a little too.

before installing seesmic and pandora df shows:
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   197584         0    197584   0% /dev
tmpfs                     4096         0      4096   0% /sqlite_stmt_journals
/dev/block/mtdblock3    148480    110484     37996  74% /system
/dev/block/mtdblock5    200960     62260    138700  31% /data
/dev/block/mtdblock4     97280     39952     57328  41% /cache
/dev/block/mmcblk0p2    702873     97721    567652  15% /system/sd
/dev/block/mmcblk0p2    702873     97721    567652  15% /data/dalvik-cache
/dev/block//vold/179:1
                      14898512    827680  14070832   6% /sdcard
After installing seesmic and pandora df shows:
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   197584         0    197584   0% /dev
tmpfs                     4096         0      4096   0% /sqlite_stmt_journals
/dev/block/mtdblock3    148480    110484     37996  74% /system
/dev/block/mtdblock5    200960     62544    138416  31% /data
/dev/block/mtdblock4     97280     41280     56000  42% /cache
/dev/block/mmcblk0p2    702873    100347    565026  15% /system/sd
/dev/block/mmcblk0p2    702873    100347    565026  15% /data/dalvik-cache
/dev/block//vold/179:1
                      14898512    827680  14070832   6% /sdcard
  1. Notice that /data increased by 300KB. Anyone know why?
  2. why is my /data partition 31% used?
Java Developer.
Phone: Galaxy Nexus-> CM10.1 PA Nightlies
Phone: Nexus One-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Links:
»My Apps [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
craigacgomez
Old
#2  
craigacgomez's Avatar
Senior Member
Thanks Meter 1683
Posts: 1,600
Join Date: Jan 2010
Location: Lake Forest, CA

 
DONATE TO ME
Yes, the size of the /data partition does increase even with apps2sd enabled... and from a quick analysis of the /data partition (with apps2sd enabled), I noticed this...
1. the applications are installed on the sd card and the /app & /app-private are symlinked
2. the application information is stored in /data/system/packages.xml (kinda like the windows registry)
3. some application data like shared prefs, extra libs (if any) are stored in /data/data

i guess this accounts for the usage size increase!!!
CRAiG GoMEZ
Donate to me

 
britoso
Old
(Last edited by britoso; 16th March 2010 at 07:01 PM.)
#3  
britoso's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 2,632
Join Date: Jan 2010
Location: FortWorth/TX

 
DONATE TO ME
It looks like the apps are getting is installed to the sd card fine, but the app data still gets stored in the internal ROM
/data/data has 157 folders and is 52MB
/system/sd/app-private has 0 files and is 1K

Therefore it looks like either the apps2sd implementation is incomplete, or didnt get installed correctly.

Anyone tried moving /data/data to /system/sd/app-data and creating a symlink for it? (trying this now...)
Java Developer.
Phone: Galaxy Nexus-> CM10.1 PA Nightlies
Phone: Nexus One-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Links:
»My Apps [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
britoso
Old
(Last edited by britoso; 16th March 2010 at 07:25 PM.)
#4  
britoso's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 2,632
Join Date: Jan 2010
Location: FortWorth/TX

 
DONATE TO ME
darn it. after a reboot the OS removed my symlink, created a new /data/data folder, and apps are still writing to this folder now. lucky i made a backup.
... maybe while booting it saw that the /system/sd/app-data link was invalid (not mounted yet), and hence re-created the folder.
Java Developer.
Phone: Galaxy Nexus-> CM10.1 PA Nightlies
Phone: Nexus One-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Links:
»My Apps [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
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

Go to top of page...