Haykuro Apps to SD

From Android Wiki

(Difference between revisions)
Jump to: navigation, searcha
(New page: =Apps-to-SD on Haykuro Roms= This guide might work on other roms, but is not made for them, so use at your own risk (well, you use at your own risk anyways, but you get the point). Also it...)
Line 12: Line 12:
==Flash Rom==
==Flash Rom==
-
Download the latest version of the rom you which to use from the [http://code.google.com/p/sapphire-port-dream/downloads/list Sapphire-Port-Dream Googlecode Site] and flash it like you would any other rom (download, rename to update.zip and place in /sdcard. flash in the recovery manager). Boot up your new build and run "adb remount" to make /system writable, then "adb shell" to connect to it. If you do not have adb installed, you will need to download the sdk and get it from the tools folder.
+
# Download the latest version of the rom you which to use from the [http://code.google.com/p/sapphire-port-dream/downloads/list Sapphire-Port-Dream Googlecode Site] and flash it like you would any other rom (download, rename to update.zip and place in /sdcard. flash in the recovery manager).  
 +
# Boot up your new build and run "adb remount" to make /system writable, then "adb shell" to connect to it. If you do not have adb installed, you will need to download the sdk and get it from the tools folder.
==Setup Symlinks and Folders==
==Setup Symlinks and Folders==
-
Second, download busybox.zip, unzip the zip file, and place the busybox file in your /sdcard. (DO NOT TRY TO FLASH BUSYBOX--IT IS NOT A ROM)
+
# download [http://android-dls.com/files/linux/busybox busybox] and place this file in your /sdcard. ''(DO NOT TRY TO FLASH BUSYBOX--IT IS NOT A ROM)''
-
Third, flash the haykuro rom with apps-to-sd support (dont ask which or how, if you are here, you should know this stuff by now)
+
# run "adb remount" (on your desktop), then "adb shell" and then the following commands (to setup busybox):
-
Fourth, run "adb remount" (on your desktop), then "adb shell" and then the following commands (to setup busybox):
+
#*<pre>dd if=/sdcard/busybox of=/system/xbin/busybox</pre>
-
***NOTE*** this step will **NOT** work with the 4.0 and 4.9 versions of his apps-to-sd since there is no room in /system for the busybox binary. you are going to have to figure something else out.
+
#*<pre>chmod 4755 /system/xbin/busybox</pre>
-
Code:
+
# we need to move your apps to the new partition, and remove the old copies, then create a symlink between the 2 so the device doesnt know they moved.
-
 
+
#*<pre>busybox df -h</pre>
-
$ dd if=/sdcard/busybox of=/system/xbin/busybox
+
# look for /system/sd on one of the lines, if you see it continue, if not, something is wrong with your partitioning, start at the top.
-
$ chmod 4755 /system/xbin/busybox
+
#*<pre>busybox cp -a /data/app /system/sd</pre>
-
 
+
#*<pre>busybox rm -r /data/app</pre>
-
Fifth, we need to move your apps to the new partition, and remove the old copies, then create a symlink between the 2 so the device doesnt know they moved.
+
#*<pre>busybox ln -s /system/sd/app /data/app</pre>
-
Code:
+
-
 
+
-
$ busybox df -h
+
-
 
+
-
look for /system/sd on one of the lines, if you see it continue, if not, something is wrong (your partition is not found, this guide cannot help you)
+
-
Code:
+
-
 
+
-
$ busybox cp -a /data/app /system/sd
+
-
$ busybox rm -r /data/app
+
-
$ busybox ln -s /system/sd/app /data/app
+
When those commands are complete, type in "reboot" at the command line and wait for it to reboot. If all looks well, try installing some apps, or testing the ones you already had.
When those commands are complete, type in "reboot" at the command line and wait for it to reboot. If all looks well, try installing some apps, or testing the ones you already had.

Revision as of 23:14, 12 April 2009

Contents

Apps-to-SD on Haykuro Roms

This guide might work on other roms, but is not made for them, so use at your own risk (well, you use at your own risk anyways, but you get the point). Also it is recommended that you DO NOT do this with a class 2 card, and most likely not a class 4. They are too slow and can cause repeated crashes/constant reboots.

Preparing SD card

First you need to have 2 partitions on your SD card to do this. A good size for your apps (ext2) partition is anywhere from 150mb to 500mb. If you feel you need more than that, you are probably wrong. At this time I have 212 apps installed with other things moved to my apps partition using 120mb. Any more than this and you will slow down your phone. I have a 450mb apps partition on my 8g card.

Windows Users

If you are running windows you can use disk management (found in Administrative tools>computer management) if you have access to it to do some of this. Open disk management and pick the device (do not make a mistake if you like the computer you are working on). Delete the current partition on it and make a new one that is a little smaller. Once you are done you will want to use a linux live cd to make the ext2 partition. I recommend *buntu and gparte. Make sure your fat partition is FIRST and the ext2 partition is SECOND.

Linux Users

I used gparted to do this. I had an empty 8g card which I resized. I then created the fat partition also using gparted. Make sure your fat partition is FIRST and the ext2 partition is SECOND.

Flash Rom

  1. Download the latest version of the rom you which to use from the Sapphire-Port-Dream Googlecode Site and flash it like you would any other rom (download, rename to update.zip and place in /sdcard. flash in the recovery manager).
  2. Boot up your new build and run "adb remount" to make /system writable, then "adb shell" to connect to it. If you do not have adb installed, you will need to download the sdk and get it from the tools folder.

Setup Symlinks and Folders

  1. download busybox and place this file in your /sdcard. (DO NOT TRY TO FLASH BUSYBOX--IT IS NOT A ROM)
  2. run "adb remount" (on your desktop), then "adb shell" and then the following commands (to setup busybox):
    • dd if=/sdcard/busybox of=/system/xbin/busybox
    • chmod 4755 /system/xbin/busybox
  3. we need to move your apps to the new partition, and remove the old copies, then create a symlink between the 2 so the device doesnt know they moved.
    • busybox df -h
  4. look for /system/sd on one of the lines, if you see it continue, if not, something is wrong with your partitioning, start at the top.
    • busybox cp -a /data/app /system/sd
    • busybox rm -r /data/app
    • busybox ln -s /system/sd/app /data/app

When those commands are complete, type in "reboot" at the command line and wait for it to reboot. If all looks well, try installing some apps, or testing the ones you already had.

Personal tools