Hackerz Team

best hacking tips and tricks


    Install apps on sd card on android phones

    Share
    avatar
    Admin
    Admin
    Admin

    Posts : 47
    Points : 139
    Reputation : 5
    Join date : 2011-05-09
    Age : 24
    Location : Bhopal

    Install apps on sd card on android phones

    Post  Admin on Sun May 15, 2011 4:17 am

    FOLLOW THESE STEPS CAREFULLY BEFORE PERFORMING:-

    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/com.keramidas.TitaniumBackup/files.

    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:

    Code: 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:

    Code: cd /system mkdir sd

    7) Mount ext2 partition into /system/sd

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

    Cool Create a folder to store the
    applications into ext2 partition:

    Code: cd /system/sd mkdir app

    9) Copy busybox to /system/bin

    Code: cat /data/data/com.keramidas.TitaniumBackup/files/busybox > /system/bin/busybox
    chmod 755 /system/bin/ busybox

    10) Copy your applications to ext2 partition:

    Code: busybox cp /data/app/* /
    system/sd/app/

    11) Change permissions of copied applications:

    Code: 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 were started 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:

    Code: #!/system/bin/sh/system/etc/init-sd2.sh& init-sd2.sh content:

    Code: #!/system/bin/sh MYLOG=/data install- recovery.log 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>>$ MYLOG 2>>$MYLOG 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:

    Code: 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:

    Code: 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/install-recovery.log

    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.
    avatar
    Swapnil
    Newbie
    Newbie

    Posts : 30
    Points : 86
    Reputation : 1
    Join date : 2011-05-10
    Age : 23
    Location : Bhopal

    good

    Post  Swapnil on Sun May 15, 2011 12:45 pm

    ye trick to ankit ke liye hai plz uske card par dekh

      Current date/time is Tue Nov 21, 2017 3:23 pm