Skip to content

Instantly share code, notes, and snippets.

@hemenkapadia
Last active January 16, 2016 23:17
Show Gist options
  • Save hemenkapadia/a77a9e6642874a8afc61 to your computer and use it in GitHub Desktop.
Save hemenkapadia/a77a9e6642874a8afc61 to your computer and use it in GitHub Desktop.
Resoltuion to the datadata space constraint issue on Infuse
# Important - if the device shows as unauthorized in adb devices -l command. Then go into recovery mode and try adb shell. It will drop to you the shell as root.
# All the below steps needs to be performed in recovery mode.
The fix for the space limitation with yaffs /datadata partion is causing the phone to display low memory error when i enable corporate email on my Samsung Infuse.
The workaround i have is to move some of the data intensive applications to /data/data2 directory which is ext4 based - so far i have not noticed any challanges with performance.
These steps are to be performed in recovery mode. Use CWM to mount /datadata and /data partitions if you notice they are empty.
First make the /data/data2 directory
mkdir /data/data2
Then let the magic begin for each app you want to move
cd /datadata
du -d 1 -kc 2>/dev/null | grep -v directory | sort -nr # shows the disk usage for the applications
ls -l # at this step note the owner user and group for the folder com.android.email, lets assume u0_a40:u0_a40
cp -a com.android.email /data/data2
rm -rf com.android.email
ln -s /data/data2/com.android.email com.android.email
chown -h u0_a40:u0_a40 com.android.email
ls -l
# at this point com.android.email should be a symlink to /data/data2/com.android.email
# with ownersip chown -h u0_a40:u0_a40 com.android.email
# which can be verified with the last ls -l
# I usually move the following applications
com.google.android.gms
com.whatsapp
com.google.android.apps.maps
com.microsoft.office.outlook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment