[Howto] App2sd Step by Step

Search This thread

wolfilein

Senior Member
Aug 31, 2010
223
53
This new Turial is not from me credits go to tot31




I'm writing the how to my own way, hope this will more helpful..

How To : App2sd on Xperia X10i mini

Pre Installation.
I'm assuming that you have just fresh install 2.1/1.6 firmware and root your phone before you start the procedure. This is how I did with my phone.
1. Reinstall 2.1 firmware by using Sony Ericsson Update Service.
2. Root the phone by using SuperOneClick ( http://d01.megashares.com/dl/1xcuTic/Super...4-ShortFuse.zip ). More info on SuperOneClick, go here -> http://xdaforums.com/showthread.php?t=803682
Note : Please disable any anti virus especially Kaspersky as it will give false virus alarm and will delete one of the file.

Step 1 : Preparing your micro SD Card.
Please refer to this link ( http://xdaforums.com/wiki/index...rd_partitioning ) on how to prepare your micro sd card. For better performance I would advise that you use a Class 10 card instead of the original card that comes with the phone because the card is only Class 2 card. For more infomation on speed class rating of sd card please go here -> http://en.wikipedia.org/wiki/Secure_Digital

An excerpt taken from wikipedia :-
The following are the ratings of some currently available cards:
* Class 0 - These cards do not specify performance, which includes all legacy cards prior to class specifications.
* Class 2 - Minimum of 2 MB/s performance. Lowest speed for SDHC cards.
* Class 4 - Minimum of 4 MB/s performance.
* Class 6 - Minimum of 6 MB/s performance.
* Class 10 - Minimum of 10 MB/s performance.

Note : The recommended maximum size of ext2 partition is 1.4GB. I've tried 3GB before and ended up with unstable system and eventually crash the phone. So if you're really greedy since you've bought a 16GB or 32GB card to partition the ext2 more than the recommended size and if your phone is unstable, you've been warn.

Step 2 : Download the related files.
1. App2sd : see attachment
2. adb shell : see attachment

Step 3 : Enabling USB Debugging mode on you phone.
Go to Settings -> Applications -> Development -> USB Debugging (check this option).

Step 4 : Installing App2sd.
Create a folder name adb in your pc and extract all the files from adb.zip into this folder.

Connect your phone to your pc and mount the sd card. Extract all the file from app2sd2.1.zip to the root of your sd card. Make sure to unmount the sd card before continue the next step.

In your pc open up a dos terminal box by typing cmd in the Search programs and files box.

Type

cd /adb

then type

adb shell

then type

sh /sdcard/app2sd.sh

you'll be presented by this screen...
+________________________________+
|********************************|
|*Welcome To wolfilein's App2sd *|
|*installing script *|
|********************************|
+--------------------------------+

~this version should be go on any device ~

+___________________+
|********************|
|* Menu *|
|* *|
|*[0] install app2sd*|
|*[1] remove app2sd *|
|*[2] exit *|
|********************|
+--------------------+
[0]


now just press the enter key & wait.

Important : Make sure to set your phone screen timeout to the max because Superuser will ask for your permission to allow this script to run. If your screen goes blank, you can't see this prompt and the installation will fail.

after a while you'll get this..

busybox is /system/bin/busybox
rm failed for /etc/mount_sd.sh, No such file or directory
+________________________________+
|********************************|
| finished going reboot now |
|********************************|
+--------------------------------+


Don't worry, actually it does not fail. I also got the same message and I also thought it failed but when install all the apps and check using Minitool Partition Wizard and Linux Reader for windows, all my applications are installed into my card (see my previous post with screenshot).

The Explanation
If you look through the app2sd.sh script, command rm /etc/mount_sd.sh means remove/delete the mount_sd.sh file from /etc folder, since that file does not exist in the fresh install phone, it gives this error message but continue with other commands..

rm /etc/mount_sd.sh
mv /system/bin/sh /system/bin/sh_bak
cat /sdcard/sh.sh > /system/bin/sh
chmod 777 /system/bin/sh
busybox cp /sdcard/mount_sd.sh /etc/mount_sd.sh
echo "
+________________________________+
|********************************|
| finished going reboot now |
|********************************|
+--------------------------------+
"
sleep 1
reboot


Finally after a reboot, your phone is ready with app2sd. From now on when you install any applications it will save into your sd card.

Disclaimer : Do this at your own risk. I will not responsible if any injuries or damage occur to you or your phone ;)
 

Attachments

  • adb.zip
    784.1 KB · Views: 35,489
  • app2sd2.1.zip
    979 KB · Views: 39,925
Last edited:

knudsen81

Senior Member
Sep 22, 2006
1,726
61
42
Aabenraa
Google Pixel 7 Pro
/!\Warning this is for testing only/!\
¯¯ ¯¯
here is the script that "should work on the x10 minni"
i hadn't one so i can't say if it works
install is verry easy just
first make a second ext2 fomratted patition on the sdcard

extract the zip in the root of your sd-card
open an adb shell
and type in
sh /sdcard/app2sd.sh
then press just enter and app2sd will be installed
yout phone will reboot and then say me if it give errors

wolfilein

it says the folder do not exist
 

wolfilein

Senior Member
Aug 31, 2010
223
53
i have an idea
can anyone of you guys ceck out wat habens if you add a bootscript to
/system/drm/DxDrm/init_drm.rc
/system/etc/hw_config.sh


anyone check this please
 

rudem0e

Member
Jun 4, 2010
21
0
init.rc

i'm not comfy editing init.rc.
I'm gonna try Autostart application from market first.
 
Last edited:

wolfilein

Senior Member
Aug 31, 2010
223
53
are you ignoring me ??
:mad:

and you the autostartapp can't start before it's loaded on boot that means that you must first load the apps
 
Last edited:

wolfilein

Senior Member
Aug 31, 2010
223
53
2 thing create one
and check if it excuted
and
check this file
/system/drm/DxDrm/init_drm.rc
 

wolfilein

Senior Member
Aug 31, 2010
223
53
so ive edit my script and i will upload it now on both
x10 an x10 minni this script should work on every android phone
:)
 

Yodd

Member
Oct 5, 2010
15
0
simple way apps2sd

First, you have to make two partitions on your sdcard - Fat32 and ext2 (ext3)
Second, Mount ext2(ext3) on your device
Third, ln -s /system/app/xxx.apk \sdcard\ ext partition\ way you want\xxx.apk

Caution - never try to remove sdcard after this operation - very dangerious for the health of your device.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    This new Turial is not from me credits go to tot31




    I'm writing the how to my own way, hope this will more helpful..

    How To : App2sd on Xperia X10i mini

    Pre Installation.
    I'm assuming that you have just fresh install 2.1/1.6 firmware and root your phone before you start the procedure. This is how I did with my phone.
    1. Reinstall 2.1 firmware by using Sony Ericsson Update Service.
    2. Root the phone by using SuperOneClick ( http://d01.megashares.com/dl/1xcuTic/Super...4-ShortFuse.zip ). More info on SuperOneClick, go here -> http://xdaforums.com/showthread.php?t=803682
    Note : Please disable any anti virus especially Kaspersky as it will give false virus alarm and will delete one of the file.

    Step 1 : Preparing your micro SD Card.
    Please refer to this link ( http://xdaforums.com/wiki/index...rd_partitioning ) on how to prepare your micro sd card. For better performance I would advise that you use a Class 10 card instead of the original card that comes with the phone because the card is only Class 2 card. For more infomation on speed class rating of sd card please go here -> http://en.wikipedia.org/wiki/Secure_Digital

    An excerpt taken from wikipedia :-
    The following are the ratings of some currently available cards:
    * Class 0 - These cards do not specify performance, which includes all legacy cards prior to class specifications.
    * Class 2 - Minimum of 2 MB/s performance. Lowest speed for SDHC cards.
    * Class 4 - Minimum of 4 MB/s performance.
    * Class 6 - Minimum of 6 MB/s performance.
    * Class 10 - Minimum of 10 MB/s performance.

    Note : The recommended maximum size of ext2 partition is 1.4GB. I've tried 3GB before and ended up with unstable system and eventually crash the phone. So if you're really greedy since you've bought a 16GB or 32GB card to partition the ext2 more than the recommended size and if your phone is unstable, you've been warn.

    Step 2 : Download the related files.
    1. App2sd : see attachment
    2. adb shell : see attachment

    Step 3 : Enabling USB Debugging mode on you phone.
    Go to Settings -> Applications -> Development -> USB Debugging (check this option).

    Step 4 : Installing App2sd.
    Create a folder name adb in your pc and extract all the files from adb.zip into this folder.

    Connect your phone to your pc and mount the sd card. Extract all the file from app2sd2.1.zip to the root of your sd card. Make sure to unmount the sd card before continue the next step.

    In your pc open up a dos terminal box by typing cmd in the Search programs and files box.

    Type

    cd /adb

    then type

    adb shell

    then type

    sh /sdcard/app2sd.sh

    you'll be presented by this screen...
    +________________________________+
    |********************************|
    |*Welcome To wolfilein's App2sd *|
    |*installing script *|
    |********************************|
    +--------------------------------+

    ~this version should be go on any device ~

    +___________________+
    |********************|
    |* Menu *|
    |* *|
    |*[0] install app2sd*|
    |*[1] remove app2sd *|
    |*[2] exit *|
    |********************|
    +--------------------+
    [0]


    now just press the enter key & wait.

    Important : Make sure to set your phone screen timeout to the max because Superuser will ask for your permission to allow this script to run. If your screen goes blank, you can't see this prompt and the installation will fail.

    after a while you'll get this..

    busybox is /system/bin/busybox
    rm failed for /etc/mount_sd.sh, No such file or directory
    +________________________________+
    |********************************|
    | finished going reboot now |
    |********************************|
    +--------------------------------+


    Don't worry, actually it does not fail. I also got the same message and I also thought it failed but when install all the apps and check using Minitool Partition Wizard and Linux Reader for windows, all my applications are installed into my card (see my previous post with screenshot).

    The Explanation
    If you look through the app2sd.sh script, command rm /etc/mount_sd.sh means remove/delete the mount_sd.sh file from /etc folder, since that file does not exist in the fresh install phone, it gives this error message but continue with other commands..

    rm /etc/mount_sd.sh
    mv /system/bin/sh /system/bin/sh_bak
    cat /sdcard/sh.sh > /system/bin/sh
    chmod 777 /system/bin/sh
    busybox cp /sdcard/mount_sd.sh /etc/mount_sd.sh
    echo "
    +________________________________+
    |********************************|
    | finished going reboot now |
    |********************************|
    +--------------------------------+
    "
    sleep 1
    reboot


    Finally after a reboot, your phone is ready with app2sd. From now on when you install any applications it will save into your sd card.

    Disclaimer : Do this at your own risk. I will not responsible if any injuries or damage occur to you or your phone ;)
    2
    ***Apps2sd on 2.1 for noobs***


    Alright you'll be needing rooted phone, for that you can use z4root(i'll attach the download link)

    Step I : Firstly root your device using z4root or anyother way you prefer, as it is for noobs I would suggest using z4root.
    Step II : Now u need to make two partiton on your memory card, i would suggest you to bak up all your data before starting
    Step III : Downlaod Mini Tools Partition Wizard(i'll attach the link)
    Step IV : Run the .exe file and mount your SD card on the computer, now open Mini Too s wizard and right click on removable disk then select delete partition(make sure you've backed up your data).
    Step V : Right click on the removable disk, select create partition, make the file system as FAT and make it primary, assign any volume label and adjust size of the label according to your need(this will be your partition for normal storage)
    Step VI : Right click on the removable disk, select create partition, make the file system as FAT32 and make it primary too, assign any volume label and leave the size of label untouched(this will be your partition for APP storage)
    Step VII : Mount the SD card on the device, give a reboot. (dont be bothered about any "blank SD card errors etc reboot will fix 'em)
    Step VIII : Now you've 2nd partition on your SD card, now open market download Links2SD application, open app and grant it root privelages and it'll ask for a reboot, give a reboot and now u can select apps and link them to the second partition of your SD card.


    Required files:
    Mini tools partition wizard: http://download.cnet.com/Partition-...62200.html?part=dl-6285158&subj=dl&tag=button
    z4root : http://xdaforums.com/attachment.php?attachmentid=446145&d=1290341328
    1
    will try that again...do i have to remove the app2sd? or can i just restore my phone with the software update..?

    and how do i push the apps manually? there are some apps that is quite huge cant inastall...

    thanks man!

    restore is cleaner...lesser probability for errors...
    pushing apps means you gotta fix permissions after copying the apk to your /data/app folder.
    check the permissions of the other files and just do the same for your new apk.
    cheers!
    1
    i see thanks alot!!

    one more question how do i restore :confused: very sorry is my first time using andriod phone last time was using nokia thinking for a change i wanna try andriod :D

    you can restore w SEUS...easiest, at least for me...
    download the Sony Ericsson Update Service from here...
    follow the instructions like in updating your phone...
    choose reinstall...and it will wipe your phone like it's brand new so make sure you've got backups of apps and stuff...
    after that, go get rooted. z4root is the easiest.
    try installing a file explorer first to help you install apps.
    then reformat and repartition your sdcard
    then run the app2sd script again.
    cheers!
    1
    C:\Users\Administrator>adb shell
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    $ sh /sdcard/app2sd.sh
    sh /sdcard/app2sd.sh

    +________________________________+
    |********************************|
    |*Welcome To wolfilein's App2sd *|
    |*installing script *|
    |********************************|
    +--------------------------------+

    ~this version should be go on any device ~


    +___________________+
    |********************|
    |* Menu *|
    |* *|
    |*[0] install app2sd*|
    |*[1] remove app2sd *|
    |*[2] exit *|
    |********************|
    +--------------------+

    [0]



    Permission denied (forgot to accept the superuser)

    +________________________________+
    |********************************|
    |*Welcome To wolfilein's App2sd *|
    |*installing script *|
    |********************************|
    +--------------------------------+

    ~this version should be go on any device ~


    +___________________+
    |********************|
    |* Menu *|
    |* *|
    |*[0] install app2sd*|
    |*[1] remove app2sd *|
    |*[2] exit *|
    |********************|
    +--------------------+

    [0]



    mount: No such file or directory
    busybox is /system/bin/busybox
    cp: write error: No space left on device
    cp: write error: No space left on device
    cp: write error: No space left on device
    cp: write error: No space left on device
    rm failed for /etc/mount_sd.sh, No such file or directory
    write: No space left on device
    cp: write error: No space left on device

    +________________________________+
    |********************************|
    | finished going reboot now |
    |********************************|
    +--------------------------------+

    Did i do everything right does it work now?

    my widgets hadd a little problem with starting but after 15sec it came back


    MY WI-FI DOES NOT WORK ANYMORE!!!!!!!! WHYY???