Jump to content


Apps2SD Miniguide


134 replies to this topic

#1
Luqq

Luqq

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Location:Groningen
  • Devices:I900 dxia5 taril
I got apps2sd working here with 2 SD cards, the standard of 4GB, and a 2GB Goldcard.

-put in the goldcard with the signed apps2sd zip (this is important, cant install if the apps2sd zip isnt on the goldcard)
-Go into recovery via linux (./recovery-linux.sh)
-install the apps2sd from zip
-power off
-put in the sdcard you want to use for apps2sd
-go into recovery via linux (./recovery-linux.sh)
-click partition sd card
-enter the sizes you want to use
-boot

Tada! I instantly noticed this. Where my desire would clog up entirely when i installed a app, i could install 6 at the same time now with lightning speed.

Not sure if its working? Go insto 'adb shell' and:

ls -l /data
      
this should list the top 2 items as:

lrwxrwxrwx root     root              2010-04-28 22:54 app-private -> /system/sd/app-private
lrwxrwxrwx root     root              2010-04-28 22:54 app -> /system/sd/app

You could also install some apps, like i did, and then:

  ls -l /system/sd/app

-rw-r--r-- system   system    1846131 2010-04-28 22:58 com.handcent.nextsms.apk
-rw-r--r-- system   system    3661236 2010-04-28 22:59 com.google.android.apps.maps.apk
-rw-r--r-- system   system    1483847 2010-04-28 22:59 com.facebook.katana.apk
-rw-r--r-- system   system    3348752 2010-04-28 23:00 com.bfs.papertoss.apk

This is correct, these are the apps i installed. :huh:

Now, the final proof:

   busybox df -h

Filesystem                Size      Used Available Use% Mounted on
[BIG CUT]
/dev/block/mmcblk0p2    457.0M      9.9M    422.7M   2% /system/sd


Good luck! :P


#2
wesbar

wesbar

    Regular

  • Members
  • PipPip
  • 56 posts
thanks very much for this guide. Mine is exactly like you described but my phone memory still decreases? How would I regain this memory. Thanks.


#3
afiorillo

afiorillo

    Diehard

  • Members
  • PipPipPipPip
  • 449 posts
  • Location:Rome, IT
  • Devices:HTC Desire w/ MCR r9 WIP
  • Twitter:@afiorillo
***SOLVED***

Thank you Luqq for your guide.

Unfortunately I'm getting the following error while installind a2sd from zip file:

E:Can't symlink /system/xbin/[
E:Failure at line 5:
symlink busybox SYSTEM:xbin/[

Installation aborted.

I tried with two different SDs made as Goldcards (each one with its unique CID process). Retrying now to flash rootedupdate.zip again.

Any ideas about that?

Thanks.

Edited by afiorillo, 29 April 2010 - 08:29 PM.


#4
Luqq

Luqq

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Location:Groningen
  • Devices:I900 dxia5 taril

View Postwesbar, on Apr 29 2010, 00:11, said:

thanks very much for this guide. Mine is exactly like you described but my phone memory still decreases? How would I regain this memory. Thanks.

I think it still saves some kind of cache in the phone memory, not too sure about this. Maybe paul knows more :huh:

View Postafiorillo, on Apr 29 2010, 00:19, said:

Thank you Luqq for your guide.

Unfortunately I'm getting the following error while installind a2sd from zip file:

E:Can't symlink /system/xbin/[
E:Failure at line 5:
symlink busybox SYSTEM:xbin/[

Installation aborted.

I tried with two different SDs made as Goldcards (each one with its unique CID process). Retrying now to flash rootedupdate.zip again.

Any ideas about that?

Thanks.

Are you sure you're rooted?


#5
wesbar

wesbar

    Regular

  • Members
  • PipPip
  • 56 posts
So what will happen when the sytem memory runs out then? Will apps still continue to go to the SD card or will it stop working? Pretty pointless if thats the case  :huh:


#6
Luqq

Luqq

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Location:Groningen
  • Devices:I900 dxia5 taril

View Postwesbar, on Apr 29 2010, 00:26, said:

So what will happen when the sytem memory runs out then? Will apps still continue to go to the SD card or will it stop working? Pretty pointless if thats the case  :P

The same as on internal memory i guess, you wont be able to install new programs, and you get a notification on top that you need to clear up some space :huh:


#7
waterc00l

waterc00l

    Regular

  • Members
  • PipPip
  • 84 posts

View Postafiorillo, on Apr 28 2010, 22:19, said:

Thank you Luqq for your guide.

Unfortunately I'm getting the following error while installind a2sd from zip file:

E:Can't symlink /system/xbin/[
E:Failure at line 5:
symlink busybox SYSTEM:xbin/[

Installation aborted.

I tried with two different SDs made as Goldcards (each one with its unique CID process). Retrying now to flash rootedupdate.zip again.

Any ideas about that?

Thanks.

i installed apps2sd but then my phone wont restart so i thought i try installing it again and then i had exactly the same error.  anyway the installation worked in the first run.


#8
dreamdealer

dreamdealer

    Regular

  • Members
  • PipPip
  • 146 posts
  • Gender:Male
  • Location:warrington
  • Devices:Galaxy S2, HTC Desire, G1
  • Twitter:@DreDealer
i do this as instructed but end up in a HTC quietly  brilliant loop.. must be doing something wrong.


#9
mtbmtb

mtbmtb

    Newbie

  • Members
  • Pip
  • 8 posts
How do I go into adb shell?


#10
twistywizard

twistywizard

    Newbie

  • Members
  • Pip
  • 15 posts

View Postmtbmtb, on Apr 28 2010, 23:52, said:

How do I go into adb shell?

You need to download the Android SDK and also Java.

Then open a command prompt in Windows, plug in your Desire. Get to the tools directory which adb resides in and then just type adb shell and press enter

http://java.sun.com/...widget/jdk6.jsp

http://developer.and.../sdk/index.html

Hope this helps. This worked for me. Not sure if there is another way?


#11
Luqq

Luqq

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Location:Groningen
  • Devices:I900 dxia5 taril

View Postdreamdealer, on Apr 29 2010, 00:47, said:

i do this as instructed but end up in a HTC quietly  brilliant loop.. must be doing something wrong.

Did you wipe/factory reset? :huh:


#12
dreamdealer

dreamdealer

    Regular

  • Members
  • PipPip
  • 146 posts
  • Gender:Male
  • Location:warrington
  • Devices:Galaxy S2, HTC Desire, G1
  • Twitter:@DreDealer

View PostLuqq, on Apr 28 2010, 23:58, said:

Did you wipe/factory reset? :huh:

good point no i never did, i try tomorrow getting late now work tomorrow lol.. thanks for the reply btw.


#13
waterc00l

waterc00l

    Regular

  • Members
  • PipPip
  • 84 posts

View Postdreamdealer, on Apr 28 2010, 23:03, said:

good point no i never did, i try tomorrow getting late now work tomorrow lol.. thanks for the reply btw.

works for sure, had the same issue :huh:


#14
mtbmtb

mtbmtb

    Newbie

  • Members
  • Pip
  • 8 posts
Does phone need to be in hboot/fastboot for adb shell?


#15
Luqq

Luqq

    Newbie

  • Members
  • Pip
  • 37 posts
  • Gender:Male
  • Location:Groningen
  • Devices:I900 dxia5 taril

View Postmtbmtb, on Apr 29 2010, 01:07, said:

Does phone need to be in hboot/fastboot for adb shell?

Nope :huh: Only if you want RW to /system.


#16
jekin

jekin

    Newbie

  • Members
  • Pip
  • 2 posts
Luqq, thanks for the guide.
Works as described.
But, after installing some apps the mobile phone storage is decreased from 136MB to 129MB.
Does that mean AP2SD is not working?


#17
afiorillo

afiorillo

    Diehard

  • Members
  • PipPipPipPip
  • 449 posts
  • Location:Rome, IT
  • Devices:HTC Desire w/ MCR r9 WIP
  • Twitter:@afiorillo

View Postafiorillo, on Apr 29 2010, 00:19, said:

Thank you Luqq for your guide.

Unfortunately I'm getting the following error while installind a2sd from zip file:

E:Can't symlink /system/xbin/[
E:Failure at line 5:
symlink busybox SYSTEM:xbin/[

Installation aborted.

I tried with two different SDs made as Goldcards (each one with its unique CID process). Retrying now to flash rootedupdate.zip again.

Any ideas about that?

Thanks.
I'm quoting myself, and never mind about that: fixed. Just reflashed rootedupdate.zip and, without rebooting nor nothing else, flashed a2sd; rebooted, it worked like a charm.
I followed the steps to make sure A2SD was working, and YES: it works.  :huh:

So, thank you!


#18
warrie

warrie

    Newbie

  • MoDaCo Ad Free
  • Pip
  • 22 posts
  • Gender:Male
  • Devices:Samsung Galaxy Nexus
Did you guys notice that the internal memory is still getting down? The linking and other stuff is fine, but there must be some kind of bug that the phone still thinks you install on internal memory

Quote

# cd /data/app
cd /data/app
# pwd
pwd
/system/sd/app
#

Quote

/dev/block/mtdblock5    147.6M     34.0M    113.6M  23% /data
/dev/block/mmcblk0p2    915.1M     46.3M    820.0M   5% /system/sd

Quote

ls -l /data/app
lrwxrwxrwx root     root              2010-04-29 00:06 app -> /system/sd/app


As You see, APP2SD is working really fine. Just confusing the memory usage of /data

I tried install CoPilot whats about 10mb. And i lost 10mb of free space in /data/ AND /system/sd

Edited by warrie, 29 April 2010 - 12:24 AM.


#19
maati

maati

    Newbie

  • Members
  • Pip
  • 27 posts
  • Devices:MDA Vario
Same here. Internal free space still goes down, despite A2SD working.


#20
PaulW21781

PaulW21781

    Regular

  • Members
  • PipPip
  • 107 posts
  • Devices:HTC Desire Xperia X1 BlueAngel
I've done some looking...

Inside of /data, there is another folder...

/data/data

Inside /data/data is all the application datafiles for running...  Hence the phone space still going down??

Is it possible to move and symlink /data/data to /system/sd/data ???

This is the only possible solution I can see to the reduction of phone space still...

http://code.google.c...-roms/wiki/A2SD

It mentions moving /data/data in there as an optional... but then inside 40a2sd, it says

    # don't allow /data/data on sd because of upgrade issues - move it if possible

???

**EDIT**

I've since created a modified update zip for a2sd, and moved over the dalvik-cache folders...  Free'd up 14MB of space so not too bad (went from 111MB free to 125MB free) :huh:  Just unsure now if I want to move over /data/data...

If you want the DALVIK-cache enabled ones, there are 2 files:

If you have NOT already installed the A2SD release which Paul posted, use this one
http://paulw.hardmil...resh-signed.zip

If you HAVE already installed the A2SD release which Paul posted, and wish to add the DALVIK-CACHE feature, use this one
http://paulw.hardmil...rade-signed.zip

Just flash this using the Recovery Console as you did for the main Rooting mod.

Also, if you flash the wrong one, or since flashing A2SD you are getting a bootlooping on the Quietly Brilliant screen, installing the UPGRADE Package may resolve this, as I found that if the file within /system/etc/init.d are not copied and set correctly, they *WILL* cause this bootloop.  UPGRADE package fixes this if you encounter the

E:Can't symlink /system/xbin/[
E:Failure at line 5:
symlink busybox SYSTEM:xbin/[

Installation aborted.

Problem from previous installs :P

Edited by PaulW21781, 29 April 2010 - 10:09 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users