FORUMS
Remove All Ads from XDA

[Howto] App2sd Step by step

223 posts
Thanks Meter: 53
 
By wolfilein, Senior Member on 5th October 2010, 09:45 PM
Post Reply Email Thread
a big part of this new tutorial is not from me, credits go to tot31

New version out !!


Now you can choose if you also want to move the dalvik cache an the /data/data directory to sd (if you have an slow sd-card this will be a bit laggy) (to use this you can now use the update funktion)

and i've added an update funktion and protectet the install function so now you can't install app2sd two times an brick your fimrware

and if this help you you can help/thanks me

If You have an x10 mini (pro) go here :

http://forum.xda-developers.com/showthread.php?t=804574



The leds on boot are Now working :





blue means:

no proplem with sd card booting normal

purple/voilet means
sdcard malfunktion booting with failsafe



.

How To : App2sd on Xperia X10i

Pre Installation.
Root the phone by using z4root ( http://forum.xda-developers.com/showthread.php?t=833953 )

Step 1 : Preparing your micro SD Card.
Please refer to this link ( http://forum.xda-developers.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 but normaly 1.4 GB are enough

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 *|
|* *|
|*[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 |
|********************************|
+-----------------------------------------+


the both messages above doesn't mean that your installation has failed

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
Attached Files
File Type: zip app2sd.zip - [Click for QR Code] (978.6 KB, 9391 views)
File Type: zip adb.zip - [Click for QR Code] (784.1 KB, 8611 views)
File Type: zip app2sd2.1.zip - [Click for QR Code] (949.3 KB, 9699 views)
The Following 14 Users Say Thank You to wolfilein For This Useful Post: [ View ] Gift wolfilein Ad-Free
 
 
6th October 2010, 05:47 AM |#2  
Junior Member
Thanks Meter: 0
 
More
Good, But can someone make a more detail guide on step by step to get this done.

Thank you
6th October 2010, 08:49 AM |#3  
Senior Member
Thanks Meter: 4
 
More
How to partition the sd card without bootlodaer?
Sorry if this is a noob question.
6th October 2010, 09:18 AM |#4  
Senior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by Wenner

How to partition the sd card without bootlodaer?
Sorry if this is a noob question.

Use a MicroSD reader and a linux system?
6th October 2010, 11:28 AM |#5  
zdzihu's Avatar
Retired Recognized Developer
Thanks Meter: 5,174
 
Donate to Me
More
No need for card reader, just plug the phone and use parted
The Following 2 Users Say Thank You to zdzihu For This Useful Post: [ View ] Gift zdzihu Ad-Free
6th October 2010, 04:05 PM |#6  
OP Senior Member
Thanks Meter: 53
 
Donate to Me
More
i will add some pictures if a have the time
6th October 2010, 05:14 PM |#7  
Member
Thanks Meter: 10
 
More
if I understand this correctly, this script essentially creates link to sd card directory, where previously is a directory of apps.

nice trick, but without any failsafes.
I mean, if you remove sd card you are without /data/app/ directory at all!

there should be some failsafe...

method 1:

script at startup checking:
  • if there is a symbolic link to sdcard? (check attributes of /data/app/ )
  • if directory is a symbolic link and no data exists inside (for example specific directory/file is not existent) ->point the symbolic link to /data/app2/ directory.
to make it work,
/system/app2 directory should be created:
Code:
busybox cp -a /data/app /data/app2
instead of removing it in your script:
Code:
"rm -r /data/app "
also make some specified light flash on the phone, to warn user that old backup copy is used because of sd card malfunction (i've documented a way to do this in:

http://forum.xda-developers.com/wiki/index.php?title=Xperia_X10#Leds_and_backglight
)

for example pink led:
Code:
echo 15 > /sys/class/leds/ledc:rgb1:red/brightness
echo 2 > /sys/class/leds/ledc:rgb1:green/brightness
echo 3 > /sys/class/leds/ledc:rgb1:blue/brightness
method 2:
even better way would be that sd card partition is mounted on every start on system OVER old /data/app/.

this works always in linux - you can mount over non-empty directory without a problem

so, if the sd card is not accessible - dont mount sd card apps directory and like in method 1, flash the led or something, and old apps directory would work without doing anything more

to check:
- does mounting over non-empty directory works also in android?
- what is the way to add startup script init in the system?
(possibly executed from sd card - when no card is visible, the script would not execute, right :P )
- why there is a 1.4GB limit ? is this a ext2 limit on android ?
6th October 2010, 08:08 PM |#8  
OP Senior Member
Thanks Meter: 53
 
Donate to Me
More
yes doun't normaly you don't remove your sdcard
6th October 2010, 08:36 PM |#9  
zdzihu's Avatar
Retired Recognized Developer
Thanks Meter: 5,174
 
Donate to Me
More
Quote:
Originally Posted by devein

- does mounting over non-empty directory works also in android?
- what is the way to add startup script init in the system?
(possibly executed from sd card - when no card is visible, the script would not execute, right :P )
- why there is a 1.4GB limit ? is this a ext2 limit on android ?

1. Yes
2. exec your script from either /etc/mount_iso.sh or /system/drm/DxDrm/drm.sh
3. There is no such limit, rather an advised value
8th October 2010, 03:07 AM |#10  
Luhccas-X10's Avatar
Senior Member
Flag Fortaleza - Ceará
Thanks Meter: 166
 
More
So... It works or not?
8th October 2010, 04:56 AM |#11  
Junior Member
Thanks Meter: 0
 
More
Can someone post something like the rooting instruction for App2SD?

Eg: Step 1 - Step 2

With all the links to apps required.

That would be a great thread for everyone !

Thank you
Post Reply Subscribe to Thread

Tags
app2sd, xperia

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes