yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson XPERIA X10 Mini] wolfilein:
you don't look at the other commands ;)

mv /system/bin/sh /system/bin/sh_bak

cat /sdcard/sh.sh > /system/bin/sh

chmod 755 /system/bin/sh

you replace the shell with a script;

that bypass all inputs to the normal shell and, the first time it's excuted it start my bootscript at boot ;)

*uplaod the new version with the fix from li_bound*
[Sony Ericsson XPERIA X10 Mini] wolfilein:
@user35 no ext3 support in kernel ;)

i'm wondering that ext2 is working
[Sony Ericsson XPERIA X10 Mini] oversim:
Yes I see following commands, but in my mind the question is: How can I replace a binary file with a commandtext-based file if I don't know extactly what original binary file does? I assumed its functions at boot time through a reverse engineering, am I wrong? In a binary file I cannot see exactly its execution steps..

Ok, it works... I'm fine,very fine, but question still remains :)

bye! ;)
[Sony Ericsson XPERIA X10 Mini] mangoman:
So with this new file the issues are solved that i had before? Just repaired the phone so waiting a little while before trying again
[Sony Ericsson XPERIA X10 Mini] li_boud:
You are not losing sh shell, you are renaming it to sh_bak, and then create a link to it in sh. So effectively, you are still using the binary.

Did you have this issue with the older app2sd, or after running the revised script I posted?

Earlier script wasn't remounting system partition as re-writable, so script was failing to update the files properly..

The issue is resolved after revision..

PS: I recommend manual installation of busybox. it minimizes the chance of errors.
[Sony Ericsson XPERIA X10 Mini] user35:
ext3 is supported, anyway it's not important now

hah, it's mounting as ext2 in android. You were right.
[Sony Ericsson XPERIA X10 Mini] mangoman:
I got the error after the last update this morning\ last night. Transferred the files from zip in first post to sdcard. I havent tried your script.

I have installed busybox with titanium.
[Sony Ericsson XPERIA X10 Mini] --__LoRiS__--:
Hello, I have never used adb tool, please someone could create a simple guide to the basics for using app2sd?
[Sony Ericsson XPERIA X10 Mini] li_boud:
how to use adb -

http://xdaforums.com/showthread.php?t=502010
[Sony Ericsson XPERIA X10 Mini] gilfredpaul@gmail.com:
I tried this app2sd script in my mini(2.1).. It was successful and i can see the folder appbak in /data. Now when i tried to installed my 17mb app its saying no space in the disk. (my internal memory is 27mb)

but my ext2 partition has 2gb space...Something wrong in my installation
[Sony Ericsson XPERIA X10 Mini] oversim:
I was forgetting some points

1) I needed to-reinstall all apps. Sure, they worked, but they were un-linked to marked. And widgets disappear from home.

2) With a class 10 SDHC card, no speed issue!

3) Talking about installation code, my question:

+________________________________+
|********************************|
| finished going reboot now |
|********************************|
+--------------------------------+
"
sleep 1
reboot

I would prefer

PS: new Titanium Backup app recognize apps are installed to SD :D :D
[Sony Ericsson XPERIA X10 Mini] oversim:
Two images to show how this script run fine on mini pro with 2.1 :)

Please note Titanium Backup :D

I've a 16Gb class 10 SDCH, 1Gb ext2 second partition.

Please also note Dalvik virtual machine cache and library are still in /system memory file system, but I think it is not a problem, yet.

Thanks all!
[Sony Ericsson XPERIA X10 Mini] li_boud:
Nice, Enjoy mate..

PS: No live wallpaper? ;)
[Sony Ericsson XPERIA X10 Mini] pabling19:
Sorry for the newbie question, but how does app2sd work? Can I assign apps to be installed to the sdcard and assign apps to be installed in system memory? Or do all apps gets installed in the sdcard?
[Sony Ericsson XPERIA X10 Mini] li_boud:
It will still install the apps on the system memory (think of it as main executable), but it will install all the data associated with the app on your SD card. So apps take very low space in system memory, and you dont see any speed reduction...
[Sony Ericsson XPERIA X10 Mini] wolfilein:
@oversim

thanks fot the picture i will ad them to the first post :)
[Sony Ericsson XPERIA X10 Mini] ozzy1212:
anyone tried this on a mac?
[Sony Ericsson XPERIA X10 Mini] wolfilein:
no but it works :),

because the program don't run on your computer it runs on you phone
[Sony Ericsson XPERIA X10 Mini] pabling19:
Can I choose which data to install on the phone and which data to install on the SD? I was thinking on using the phone memory for system apps data and sdcard for other apps like games.
[Sony Ericsson XPERIA X10 Mini] li_boud:
Nope, it doesnt allow you to choose the location for installation (not a feature in Android 1.6 or 2.1).
[Sony Ericsson XPERIA X10 Mini] Passaralho:
Dumb questions:

1. After installation, may I remove the files extracted from app2sd2.1.zip from my sdcard?

2. If I already have busybox (Titanium Backup) and I'm able to root it other way (Universal Androot) do I need to extract them all or can I leave busybox out?

3. I I whish to change my SD card later, what do I have to have in care? I read I can't start my phone without SD card in after installing app2sd, so what can I/should I do?

Thanks!
[Sony Ericsson XPERIA X10 Mini] pabling19:
Will this be a stability issue, especially for system apps?
[Sony Ericsson XPERIA X10 Mini] DaRk_dOg:
Hello,

i have two questions:

1)Is a class 4 SDHC card capable of app2sd? Or would it be too slow for that?

2)I have installed busybox through Titanium Backup. Could this cause any issues during the app2sd installation?

Thank you in Advance,

Dd
[Sony Ericsson XPERIA X10 Mini] li_boud:
1. Yes you can remove the installation file (shell scripts) from your SDcard after successful installation.

2. You need busybox installed on your phone, so it can be accessed from shell. Easy way to check that, Go to adb shell, type busybox and hit enter. If shell returns busybox commands list, you are set to go and can leave busybox out, otherwise you have to install it.

3. two ways to change your Sdcard

a) If you have linux, partition your new Sdcard in same way (first partition fat32, second as ext2) Shutdown your phone, remove your Sdcard, copy the files from old ext2 partition to new ext2 partition using a card reader, insert the new card in phone and switch it on.

b) uninstall app2sd from phone, remove your old sdcard, insert the new sd card, install app2sd again.

No, if you mean android core apps, or SE apps (like camera etc) by system apps. because these apps and their data is always on system partition (sony locked it that way). So even if you install app2sd on SE phones, system apps remain on system partition.

1. Class 4 SDHC is very much capable of running app2sd, you will not notice any speed issues. I can tell this from first hand experience.

2. None that I ever encountered. It seems titanium does not install busybox on system, it just keeps it for its own exclusive use.
[Sony Ericsson XPERIA X10 Mini] Passaralho:
Thank you very much! :)

Installed it now after a fresh SEUS flash and apparently it's ok :)

I don't have any '/sd' directory like I've seen through different posts, but the apps I installed (after and before app2sd) are in '/data/app' I believe.

So I guess everything is ok.

Now, if I restore the backup I have with Titanium will the apps go to the sdcard too? I hope so, I'm runing it now :)

And one last note: I had Titanium installed but didn't install any other busybox before running app2sd because I read in first post that it was no longer necessary due to some changes to the script. Is this ok? Am I safe to go?

Regards and thank you!
[Sony Ericsson XPERIA X10 Mini] xdamemberde:
Thank you very much!!!

Some Apps now did not work for me!

like:

sitchpro widget

appbrain

BatteryLife

root manager

somebody alse have problems with apps?

whats wrong and what can i do to get them to work???
[Sony Ericsson XPERIA X10 Mini] wolfilein:
try to reinstall :)
[Sony Ericsson XPERIA X10 Mini] Passaralho:
Mine is working fine, all apps and widgets restored from titanium backup. Only thing was that I had to remove the widgets I already had in my screen and add them again. I believe it's understandable once I think the launcher was looking for them where they weren't anymore.

Like I said before, I have no '/sd' and all the apps are in /data/app which I believe is correct.

Regards
[Sony Ericsson XPERIA X10 Mini] DaRk_dOg:
Thank you very much. I appreciate your help.

;)

*EDIT*

I'm sooooo happy, it works on my mini (E10i)
[Sony Ericsson XPERIA X10 Mini] Passaralho:
Well, I found an 'error' of behaviour...

Can't get Desktop Visualizer to work, even after downloading an fresh install...

Any tips?

Regards and thanks!!

edit: solved.

The info in case someone gets the same error:

Couldn't get it to work downloading from the Market. Don't know why.

I managed (googled) a way to download the apk file (1.04 same version as the one in the Market) and then installed it through my dropbox or sdcard. It work nice:)

Odd but solved!

Cheers!
[Sony Ericsson XPERIA X10 Mini] pabling19:
Sorry, but one last question before I try:

Do I need to reinstall the apps after installing app2sd so that data will move to the sdcard? Or will it do it by itself when I install?
[Sony Ericsson XPERIA X10 Mini] Passaralho:
Mainly, they will move by themselves.

I have another issue too...

Some applications don't install well from market but install from sdcard. Can't understand why and it's very annoying.

It happened with Desktop Visualizer and now with Graffiti 2.0.4.

With Graffiti I didn't try the instal from sdcard or dropbox because I didn't find the file to download.

Some other apps worked well from the market.

Is there something wrong with the scripts, any info missing to vending.apk or is it specific of each app?

Any idea?

Thanks
[Sony Ericsson XPERIA X10 Mini] pabling19:
I mean the previously installed apps? Will they move to the sdcard by themselves?
[Sony Ericsson XPERIA X10 Mini] pabling19:
It iz werkz (I think)!

Here's the screenshot after installing app2sd:

Here's after installing Angry Birds (12.8MB)

It werkz right? Now, do we have some sort of script we can run move previously installed apps to sd?

Edit:

Phone hanged twice now while uninstalling apps. Anyone experienced this before? I assume this is not normal?

I'm using 8 gig class 4 BTW

Titanium FCs wildly... And when it loads, it lags...
[Sony Ericsson XPERIA X10 Mini] xdamemberde:
that was what i do before i post.

I reinstall from different places (sd; internet; ram) everytime same problem!

German Message:

"Die Anwendung Paket-Installer (Prozess com.android.packageinstaller) wurde unerwartet beendet. Versuchen Sie es erneut."

"The Application package-installer terminated unexpectedly. Try again."

Can I install apps to the system on a different way (like manual)?

Thank you for your help!
[Sony Ericsson XPERIA X10 Mini] pabling19:
I think my SD card is unstable.. Phone keeps rebooting everytime (even without installing app2sd, just the ext2 partition)...
[Sony Ericsson XPERIA X10 Mini] Passaralho:
I do believe something is wrong regarding market behaviour.

As I stated before, some apps don't install correctly from the marke.

Any ideas?

Thanks
[Sony Ericsson XPERIA X10 Mini] xdamemberde:
I think some apps did not support app2sd!

Need a way to install to interneal memory?
[Sony Ericsson XPERIA X10 Mini] oversim:
No, all apps use "our" app2sd!

Thus, as I wrote yesterday, cache and library still use "old" /app memory file system.

So, when I install an app, some files are copied in memory, one ( the .apk file ) on SD Card.
[Sony Ericsson XPERIA X10 Mini] xdamemberde:
Yes and I think exactly this is the problem! Some apps did not land up on the ext2!

The working apps are all in /system/sd and /data/app

the non working apps are listed in application list with ****.apk name and standard android symbol and are definitely not in /system/sd or /data/app

like k9-mail wich isn't app2sd compatible
[Sony Ericsson XPERIA X10 Mini] oversim:
in our app2sd /data/app exist.. thus, it is a link ;)

Interesting theory about it... So, we have to write an App2SD "black list"? :eek:

Let me try K9 :)

....Downloaded...

....Installed...

....Run K9 mail... and I was able to setup an account....

What was (is?) your problem?
[Sony Ericsson XPERIA X10 Mini] Passaralho:
If you can, try access graffiti and desktop visualizer, straight from the market.

I'm on a X10 Mini and both didn't work from the market but Desktop Visualizer worked when installed from dropbox or sdcard. I didn't manage to arrange Graffiti apk to download to dropbox/sdcard so I didn't test it.

I'd like to know if the same is happening with other ppl.

Greets!
[Sony Ericsson XPERIA X10 Mini] ChilliBo:
maybe im stupid but where i can find the script lol??

Edit: thinking its "app2sd.sh" but what i need to do with it??
[Sony Ericsson XPERIA X10 Mini] pabling19:
I gave up on apps2sd... Dunno if it's my microSD that's having problems or what... Phone keeps on restarting and apps won't load. *sigh* reflashed my phone 5 times today trying to fix it but no luck...
[Sony Ericsson XPERIA X10 Mini] li_boud:
This is a problem with the market, not related to app2sd. Try uninstalling updates for market and clear the cache and see if it works.

They move to sdcard, the script moves them..
[Sony Ericsson XPERIA X10 Mini] oversim:
First time I tried app2sd in 1.6 x10 mini pro, I bricked it cause card was damage.

Try to backup sd fat partition data, the create only one fat32 partition.

Format it but DON'T USE QUICK FORMAT but SLOW format.

If it will not faile, sd is ok. Mine failed...
[Sony Ericsson XPERIA X10 Mini] oversim:
I have a 16gb class 10.

No one problem. I have installed and uninstall a lot of apps, but, at now, no one freeze.

But I have an expansive class 10 :(
[Sony Ericsson XPERIA X10 Mini] Passaralho:
I tryed that. I removed vending.apk from /sytem/app, com.android.vendig and com.vending.updater or simillar from /data/data.

Than installed vending.apk from my dropbox.

Now I can't download a thing. It always crashes with 'proccess com.android.vending' force close thing.

What is wrong? How can I fix this? Any idea?

Edit: I can download things now. Had to copy vending.apk to /system/app folder and reboot to make market work.

Anyway, still can't make graffiti work....

Any extra advices and may a better idea of how to clear all the settings and cache from market?

And if it's not asking too much, can someone with a X10 Mini and this app2sd installed try to download and install Access Graffiti from Market?

I tryed K9 just to check, and it worked well. Other apps too.

Only problems for me till now are Graffiti and Desktop Visualizer.

Thanks
[Sony Ericsson XPERIA X10 Mini] xdamemberde:
If I would know my problem, I would not ask you for help :(

Ok my last theory is that there are some trash from old apps...

I format sdcard and ext2; reinstalled 2.1 update1; and now all work fine...

I have no probs with market or other installation :)

Before I tasted to install the apps without sdcard, it works but later with sdcard I had some crashes with other apps.

So be careful, app2sd works fine but is susceptible :eek:
[Sony Ericsson XPERIA X10 Mini] Passaralho:
Well, I believe that can be the trick...

I recovered my apps from Titanium Backup, surely some 'non app2sd related crap' came along and probably that's why I had some problems.

I guess I'll leave it as it is for now, until 2.1 arrives here and Black Theme is ready for it. :)

Edit: Couldn't wait and... There are some apps that won't work.

Re-flashed with original 1.6. Clean fresh phone. Installed graffiti and desktop visualizer with no problems. Uninstalled both and installed app2sd. Nothing else. Couldn't install none of them again.

Did try other way. New fresh, installed Graffiti and run app2sd without removing it. Stopped working.

There are 'black listed' apps to this.

Cheers!
[Sony Ericsson XPERIA X10 Mini] roadkiler:
Hi,

Sorry for the dumb question, but how much space fat and ex2 partitions need?

Ex: 8GB Card, do i make 4gb for Fat and 4gb for Ext2 or more space for far or more space for ext2??

I've searched and nobody talked about this, can somebody explain to me?

Regards,

R
[Sony Ericsson XPERIA X10 Mini] DaRk_dOg:
I think that 1Gb of ext2 is more than enough for all of your apps.

Fat32 should take the rest of your space. Just remember: first should be the Fat32 partition, leaving ext2 as second
[Sony Ericsson XPERIA X10 Mini] Passaralho:
Any idea why Titanum stopped working properly, even after a clean system 1.6 install and app2sd? Just with that?
[Sony Ericsson XPERIA X10 Mini] nykaryan:
partion e10i.

The method shown in thread by usin the mini partion tool not working. Error- memory card blank. Can sm1 pls help me out to partion my card. Thanx
[Sony Ericsson XPERIA X10 Mini] phoxie:
how come i got only 216mb on app2sd while i had already set ext2 for 1.5gb??? :confused::confused::confused:
[Sony Ericsson XPERIA X10 Mini] Kwal:
Got this problem.

Microsoft Windows [version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Users\Pierre>cd c:/exploid_x10mini

c:\exploid_x10mini>adb shell

error: device not found

c:\exploid_x10mini>su

'su' n'est pas reconnu en tant que commande interne

ou externe, un programme exécutable ou un fichier de commandes.

c:\exploid_x10mini>adb shell

$ su

su

# 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]0

0

busybox: not found

mkdir failed for /system/xbin, File exists

/sdcard/busybox: invalid length

rm failed for /etc/mount_sd.sh, No such file or directory

/sdcard/sh.sh: No such file or directory

+________________________________+

|********************************|

| finished going reboot now |

|********************************|

+--------------------------------+

c:\exploid_x10mini>

So it's about busybox, any suggestion?

P.S: when i tried to install ap2sd, then my phone was unrooted :o
[Sony Ericsson XPERIA X10 Mini] li_boud:
Where did you put your app2sd scripts and busybox?
[Sony Ericsson XPERIA X10 Mini] wolfilein:
please delte the directory (i think) busybox on your sdcard

and unpack the zip again (to your sdcard)
[Sony Ericsson XPERIA X10 Mini] st-tps:
I have one suggestion and a question...

First the suggestion:

What if you change this part of the script:

busybox cp -a /data/app /system/sd/app
mkdir /data/appbak
busybox cp -a /data/app /data/appbak/
rm -r /data/app

To this:

busybox cp -a /data/app /system/sd/app
mkdir /data/appbak
rm -r /data/app
busybox cp -a /system/sd/app /data/appbak/

Wouldn´t that come around the problem filling the entire phone-memory when backing upp the apps to /data/appbak ?

Because you delete the /data/app and free the space, and then copy apks from the sdcard instead.

Pros cons on this ?

The question:

When i try to install Paypal, it doesn´t want to run. The icon isnt right and when I try to start I got a FC right away.

Looking in the /data/app shows no Paypal apk-file either.

Downloaded the same app och my wifes x10 mini (without app2sd) and it works nicely. Looking in the /data/app shows that the apk isnt a apk but a zip (com.paypal.android.p2pmobile.zip)

She had a couple more apps that where zip, Facegoo, Sounds for kids and two swedish apps.

Is this something new, not using apks but zips instead?

And how does we solve this ?
[Sony Ericsson XPERIA X10 Mini] rollbar:
I did everything like you said in the first post...but no way to make it work the app2sd thing.

Installed but no functional,because i cannot install any of the apps I download from the Market and either the apps i have in the memory card ,even the apps that Titanium saved with the backup.

I will use it when it will be more stable the app2sd ,for now i will wait better version,in my case was very unstable and working bad.

Uninstalled successfully and now i can install al apps i want.

I have nordic fw 2.1 update/1 on X10 mini.
[Sony Ericsson XPERIA X10 Mini] oversim:
This app to sd does works.

If market cannot install any apps, at the end of installation, and there was no errors in installation phase, believe in me, problem is not releated to a 'young version' oh this app2sd :)

Did you try to clean market cache!?

In my u20i app to sd worked on donut and now I'm using it on 2.1...
[Sony Ericsson XPERIA X10 Mini] Ray_jai:
Just installed on my 2.1 and it looks like it works so far.

how can i check things are really being installed to SD?

how can i install some apps to main memory, I don't want everything on SD, only the games.

thanks!

Edit:

i started testing the apps people mentioned and the paypal app doesn't work from market. Install ebuddy from market and it worked. odd
[Sony Ericsson XPERIA X10 Mini] st-tps:
You can´t choose, all apps will now install on SD.

The entire /data/app folder is "moved" to the SD-card and if you use Root explorer you can see that remaining space in that folder is much greater than before you ran the script.

Used + remaining = the size that you made the ext2-partition.
[Sony Ericsson XPERIA X10 Mini] Ray_jai:
Will app to SD still move the programs if i use a restore program?

does it also move the preinstalled apps?

thanks!

Edit:

ok, I don't get whats going on, before i installed app to sd, I had 44.57 mb free, after installing app to sd, i have 36.11mb free in internal memory. what's going on here? shouldn't i have freed up more space?

I checked with root explorer and all the apps are still in, system/app and data/app.

did I do something wrong? this isn't makng any sense?

thanks!
[Sony Ericsson XPERIA X10 Mini] Ray_jai:
I'm still new to android, so please help me out.

Does app to sd really mean it install apps to SD? or am i just using the SD card as free memory so apps run faster? like readyboost on W7?

If it does install apps to SD, why are the apks still in the data/app folder?

I see a appbak folder too with the same files inside.

I don't want to reformat the phone and spend 5hrs reinstalling apps again.
[Sony Ericsson XPERIA X10 Mini] li_boud:
Yes it installs the apps on sd card.

The app folder in data folder is just a link (shortcut, in windows language) to the app folder on sdcard partition.

So in nutshell, apps are installed on sdcard, and a shortcut to sd card is placed as /data/app.
[Sony Ericsson XPERIA X10 Mini] Ray_jai:
Thanks for replying

how come my main memory did not free up more space?
[Sony Ericsson XPERIA X10 Mini] ozzy1212:
what do you mean?

where did you see this?
[Sony Ericsson XPERIA X10 Mini] casablanko:
HELP!!

my x10mp stuck in an infinite loop at boot....

how can i fix this without re-flash the firmware :(

im using 4gb sdhc with 2gb fat32, ~1.5gb ext2 and ~390mb swap

am i doing wrong?

thanks

update----

i know and also confused, it worked with 2gb fat32, 1.44gb ext2 and ~390mb swap configuration

anyone can explain this?? why it must fixed at 1,4gb??

thanks
[Sony Ericsson XPERIA X10 Mini] Ray_jai:
I looked in SD card & phone memory, and internal storage,

The space did not free up, on a fresh install, i had 132mb free after removing all branded stuff.

After I installed my apps I had 44mb left. i installed app2sd and now it says i have 36mb left?
[Sony Ericsson XPERIA X10 Mini] li_boud:
The space is taken by appbak folder.
[Sony Ericsson XPERIA X10 Mini] Ray_jai:
What does that folder do? can i delete it?

thanks
[Sony Ericsson XPERIA X10 Mini] li_boud:
Thats the backup folder created by app2sd, you should not delete it, unless you like to see a lot of free space (unused and useless) on your flash..

Posted through XDA app from my kickass U20i
[Sony Ericsson XPERIA X10 Mini] Ray_jai:
Thanks for taking your time explaining it to me, i appreciate your help

so even tho I'm using app to SD, I am still limited to the amount of apps i can install from the main memory?