FORUMS
Remove All Ads from XDA

modified: Installing & Run application on sdcard

32 posts
Thanks Meter: 0
 
By tempo10, Junior Member on 23rd December 2008, 08:27 PM
Post Reply Email Thread
27th December 2008, 03:08 PM |#21  
bhang's Avatar
Senior Member
Flag megalopolis
Thanks Meter: 5
 
More
internal memory usage after this mod
what becomes of the internal fs and or the mem that it occupied?

Is it all used like ram on a pc to run apps on?

If the web and market caches don't seem to purge untill the "low space" error comes up, would they just bloat on up to fill the extra space if not moved or do they get moved by default, because the phone now thinks the partition on the sd is the internal FS?

I just want to understand how this affects the phone, I can make out from the commands what is going on but that is not what I want to know..thanks

If a g1 with its FS moved to sd rings in the woods but nobody is around to hear it, did somebody really call?


bhang

edit:
It just seems like there will be alot of storage on the handset FS that would sit unused, unless you added more *nix type stuff to like /bin or /sbin, or maybe debian or sumthin but ATM its just sitting unused, please correct me if im wrong, the OS doesn't see both /app dirs, correct?
 
 
29th December 2008, 05:43 PM |#22  
Senior Member
Thanks Meter: 320
 
More
I wonder if its possible to move /data/data to the ext2 sdcard fs? Will that cause any issues?

Also, would running apps off of the sdcard be slower than running it from internal memory?
29th December 2008, 11:25 PM |#23  
jashsu's Avatar
Senior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by dwang

I wonder if its possible to move /data/data to the ext2 sdcard fs? Will that cause any issues?

Also, would running apps off of the sdcard be slower than running it from internal memory?

It is definitely possible. The only concern would be getting it mounted in the init.rc, as the sdcard service starts after /data/init.rc.
30th December 2008, 12:42 AM |#24  
Senior Member
Thanks Meter: 320
 
More
Ok I got it working. The missing piece from the OP is that you need to manually create the sd directory under /system (ie /system/sd) instead of rootfs (/)

adb remount

adb mkdir /system/sd

and then change the supplied init.rc

FROM

mount ext2 /dev/mmcblk0p2 /sd noatime nodiratime

TO

mount ext2 /dev/mmcblk0p2 /system/sd noatime nodiratime

all apps moved from /data/apps to /system/sd/apps run fine from the sdcard.

Now I'm going to try to move /data/data to the sdcard and hope it works!

EDIT:

Managed to move /data/data/com.android.browser to the ext2 sdcard partition (/system/sd/data) and the browser runs fine, but performance is significantly reduced. Is the sdcard that much slower than internal memory? :(
30th December 2008, 06:26 PM |#25  
Senior Member
Thanks Meter: 320
 
More
So far this hack is working great. I have 35 apps installed and still have 60 megs of internal memory left. i use to be very careful about what apps i install, but now i just go crazy.

only problem i've encountered is that pacman won't install. it gives an out of space error or something. every other app i've installed works though. i would like to know if others are having the same issue w pacman.

df shows plenty of free storage


Filesystem Size Used Available Use% Mounted on
tmpfs 48.4M 0 48.4M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 67.2M 304.0k 100% /system
/dev/block/loop0 4.7M 4.7M 0 100% /system/modules
/dev/block/loop1 6.0M 6.0M 0 100% /system/xbin
/dev/mmcblk0p2 493.8M 26.8M 441.5M 6% /system/sd
/dev/block/mtdblock5 74.8M 14.2M 60.6M 19% /data
/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache
/dev/block/mmcblk0p1 1.4G 3.5M 1.4G 0% /sdcard
#

EDIT:

Fixed the pac-man issue. Pac-man is installed in /data/app-private and for some reason pac-man complains about lack of space even though I have plenty of internal memory, so I just created a symlink from /data/app-private to /system/sd/app-private and pac-man installed fine. I'm guessing the app and app-private directories need to reside on the same partition?
1st January 2009, 02:53 AM |#26  
JBDynamics's Avatar
Senior Member
Flag Denver
Thanks Meter: 8
 
Donate to Me
More
Will this mod work on the Android Dev Phone 1 (ADP1)? I just got a new one today from BrightStar. I bought a G1 that was supposed to be over a month old, and it already had RC30 installed . I don't think that the init.rc and mountd.conf are the same on the different firmwares.

If the procedure is the same minus being able to use Tempo10's pre-configured files for JF's RC30 v1.2: My question is where do I add those 3 lines (insmod, mknod, & mount) in the init.rc file? And does "adb remount | adb mkdir /system/sd" come after step 3: "adb push /*the path of modified mount.conf */mount.conf /system/etc/mountd.conf" ?

Also, it is my first time using ADB, when I am specifying a path on my computer do I use for example c:\Users\Name\whatever ? Or do I copy it to the SDK directory on my desktop and /folder/mountd.conf is mountd located in the SDK directory in the folder named "folder"? I am new again to *nix again, I haven't run a *nix OS since Redhat version 4.* came out.

Last and finally, does anyone know if the ext2fsd utility will format a second partition on the MicroSD card after I make the first FAT32 with a Windows SD card format utility. Also, do I need to format the SD card while it is in the ADP1 or can I use a USB MicroSD reader or MicroSD to SD adapter and plug it into the SD card slot on my desktop?

Thanks Guys!
1st January 2009, 04:20 AM |#27  
Senior Member
Thanks Meter: 320
 
More
Hi JB,

This mod won't work on a stock ADP1 phone. You'll have to install jc 1.2 or 1.3 on it first.

Once you do, you can follow the directions from the OP. Only change you need to do is modify the supplied init.rc to point to /system/sd instead of /sd and run adb remount & adb mkdir /system/sd.

You can do adb remount and adb mkdir /system/sd after step3. That's fine.

I'm not sure if ext2fsd utility will partition your sdcard. I booted up linux and used gparted myself.

The easiest way to install linux is to use wubi.

http://wubi-installer.org/


Good Luck!

Quote:
Originally Posted by JBDynamics

Will this mod work on the Android Dev Phone 1 (ADP1)? I just got a new one today from BrightStar. I bought a G1 that was supposed to be over a month old, and it already had RC30 installed . I don't think that the init.rc and mountd.conf are the same on the different firmwares.

If the procedure is the same minus being able to use Tempo10's pre-configured files for JF's RC30 v1.2: My question is where do I add those 3 lines (insmod, mknod, & mount) in the init.rc file? And does "adb remount | adb mkdir /system/sd" come after step 3: "adb push /*the path of modified mount.conf */mount.conf /system/etc/mountd.conf" ?

Also, it is my first time using ADB, when I am specifying a path on my computer do I use for example c:\Users\Name\whatever ? Or do I copy it to the SDK directory on my desktop and /folder/mountd.conf is mountd located in the SDK directory in the folder named "folder"? I am new again to *nix again, I haven't run a *nix OS since Redhat version 4.* came out.

Last and finally, does anyone know if the ext2fsd utility will format a second partition on the MicroSD card after I make the first FAT32 with a Windows SD card format utility. Also, do I need to format the SD card while it is in the ADP1 or can I use a USB MicroSD reader or MicroSD to SD adapter and plug it into the SD card slot on my desktop?

Thanks Guys!

3rd January 2009, 06:01 AM |#28  
Member
Thanks Meter: 10
 
More
edited for my stupidity...
3rd January 2009, 09:59 PM |#29  
Junior Member
Thanks Meter: 1
 
More
brings back some memory...
All this makes me think of my old sharp zaurus. Same problem : not enough space to install all the nifty apps out there, but sdcard support...

The approach used on the zaurus by the openzaurus / angstrom guy was to use a package manager that would be able to install packages on the sd (or flash). Then it would use the packages metadata (list of files) to symlink every file on root memory.

The big advantage to this method is to be able to have "root" apps (necessary for a functional device) and "sd" apps (not a big deal if not available because the sd card is removed).

Here, we could use a similar approach. I'm an android noob (got my ADP1 a week ago and only started to really play with it), but I understand that an application is only an apk file in /system/apps or /data/apps, so it would be even simpler (please correct me if I'm wrong).

So we need :
  1. a partitioned micro-sd as described here by tempo10 (or by saurik in this thread)
  2. a modified installer to install apps on the sdcard and symlink it in the /system or /data directory
  3. a service to add/remove symlinks, plus doing the necessary homework (what is needed to install/deinstall, that is, register/unregister an app ?) when we need to change the card
  4. optionnaly, the ability to move an app to or from the sdcard and creating/erasing symlinks as needed

Actually, all this could be done easily with some shell scripting, but I lack the (java, android) knowledge to make a nice usable app.
I'll first play a bit with symlinks to see what it does, thought
3rd January 2009, 10:47 PM |#30  
CardinS2U's Avatar
Senior Member
Thanks Meter: 22
 
More
thanks!

it work perfect! instruction need to be modify for newbies

but it worked fine.......

now got like 50% apps installed....haha no more watching out what stuff you install then uninstall
4th January 2009, 01:00 AM |#31  
Senior Member
Flag Milwaukee
Thanks Meter: 0
 
More
Can anyone who has done this say if moving the apps to the SD card resolves the phone getting a common case of errors due to high SMS/MMS's as is mentioned in other posted? or is still a problem
Post Reply Subscribe to Thread

Tags
apps on sd, root

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

Advanced Search
Display Modes