A blog about cutting edge technology at its maximum pace.

Ritesh Warke On Sunday, January 2, 2011

1) You'll need to root your phone. There is a lot of guides about this available, just google
for it. Better use the SuperOneClick Root to do this.
2) Partition your sd card like this:
1 - FAT, 2 - Linux ext2. Again, there is a lot of guides about this
on the net, just google again. Better use Paragon Partition Manager 2010 to lower the size FAT
partition, leaving an
unallocated space at the end of the card. Then format this space as ext2 in linux, using ubuntu live CD. Most guides around there recommends that you keep this partition between
500~750MB, so don’t try with greater sizes. Also, keep your
partition 1 as FAT 16, but FAT 32 might actually work too, try that if you want.
3) Download Titanium Backup (or another app backup tool) from market and backup your applications. You may need to restore your applications to
correct some permission problems that may occur after
completing this guide.
4) Install busybox. BusyBox is a software application that provides many standard Unix tools, which are not available onstock android. You can get a
copy of busybox by clicking on “problems?” button on Titanium Backup main window. It will get installed on /data/data/
5) If you still don ’t have Android
SDK installed on your PC,download and install it from Google. You ’ll need ADB (Android
Debug Bridge), which is included in the SDK, to proceed. Now open
a shell connection with your device by typing:

adb shell

Just keep in mind that you MUST be logged as root.
Root command prompt is recognized
by the # character. If you don’t have root type the ‘su’ command.
If even with ‘su’ you couldn’t get
root, please review step 1.
6) Create ‘sd’ folder int /system:

cd /system
mkdir sd

7) Mount ext2 partition into /

mount -t ext2 /dev/block/
mmcblk0p2 /system/sd

8) Create a folder to store the
applications into ext2 partition:

cd /system/sd
mkdir app

9) Copy busybox to /system/bin

cat /data/data/
files/busybox > /system/bin/
chmod 755 /system/bin/busybox

10) Copy your applications to
ext2 partition:

busybox cp /data/app/* /system/

11) Change permissions of
copied applications:

cd /system/sd/app
chown system.system *
chmod 644 *

12) Now comes the tricky part:
making Android mount your new
partition at boot time. All the hard work would be useless if
Android discarded the mount points every time we restarted
our phones. To do this we ’ll need to create 2 scripts and store then
into /system/etc. Obviously the scripts should be started by
init.rc and need to run as root.
Fortunately Android ’s init.rc have a gap that makes this possible.
The scripts are named install-recovery.sh and init-sd2.sh.
install-recovery.sh content:

init-sd2.sh content:


echo "$(date) Starting install-
recovery.sh" > $MYLOG
echo "$(date) Waiting SD to
become ready..." >> $MYLOG
sleep 10
mount -t ext2 /dev/block/
mmcblk0p2 /system/sd 1>>$
mount -o bind /system/sd/app /
data/app 1>>$MYLOG 2>>$MYLOG
mount >> $MYLOG
echo "$(date) Finishing install-
recovery.sh" >> $MYLOG

If you plan to edit this files on windows I recommend a tool
that is capable of keeping UNIX
file format, just like notepad++
free tool.
13) After placing the scripts,
change their permissions:

cd /system/etc
chmod 555 install-recovery.sh
chmod 555 init-sd2.sh

14) Rename the default application folder. If everything
works fine you can remove this later to save space:

cd /data
mv app app_old
mkdir app
chown system.system app
chmod 755 app

15) Restart your phone.
16) If you have problems with
your widgets don’t worry. You just need to remove then from
your homescreen and add again.
17) Check if your applications are
running as they should. Restore
backups you ’ve made with Titanium Backup for the applications showing problems.
18) If your partition didn ’t mount at boot, check log file at /data/
19) From now on your new applications will be installed on your SD Card. You can modify the scripts to store other folders
from /data into the ext2 partition as needed.

                                                                    MOBILE TIPS  AND TRICKS


Post a Comment

New Users Register Here