[Hero, G2 Touch Android Development] robin04:
NEW A2SD

Operation a2sd:

ext4 partitions may only work intermittently.If you have issues with ext4,

repartition your SD card for ext3.

The first time your phone is booted after you move Dalvik-cache sd, you may experience a long delay before your phone completely boots. This is due to the dalvik-cache being redirected to your sd card. The contents of dalvik cache are recreated on your SD card, which can take up to 10 minutes to complete.

You may also experience a delay on first boot while the ZipAlign code performs an optimization of your applications and private applications. This could take in upwards of five minutes.

Problems with market:

If you apply this program and your market suddenly stops working, perform the following steps:

1. Remount your internal storage to read-write by typing adb remount

2. Go into your phone's terminal by typing adb shell

3. Type /system/bin/a2sd fixmarket. This will relocate the market to /system/app and allows you to choose it in the All Programs screen. You will need to drag it back onto your desktop if you want it there.

Problem with dalvik or swap:

If you experience force closes or random reboots after installation, this

could be that your SD card is not fast enough to handle the dalvik-cache.

If you have already activated dalvik-cache to the SD card, perform the

following steps to move your dalvik-cache back to your phone:

1. Switch your phone into read-write mode by typing: adb remount

2. Enter your ADB shell by typing: adb shell

3. In the ADB shell, type /system/bin/a2sd nocache

4. Reboot phone by typing the following command: reboot

If that doesn't work, follow these commands:

1. Switch your phone into read-write mode by typing: adb remount

2. Enter your ADB shell by typing: adb shell

3. In the ADB shell, type rm /data/dalvik-cache/*

4. Reboot phone by typing the following command: reboot

If you have a swap partition and you suspect this may also be an issue,

follow these instructions:

1. Enter your ADB shell by typing: adb shell

2. In the ADB shell, type /system/bin/a2sd noswap

What does and what it can do a2sd:

1. Moves applications to the sd card

2. Moves dalvik-cache to the sd card

3. Activates swap partition if one exists

4. Allows the user to deactivate a2sd without removing the ext2/ext3

partition (a2sd remove to deactivate, a2sd install to activate)

5. Allows the user to restore dalvik-cache back to the main memory (a2sd

nocache to deactivate, a2sd cache to activate)

6. Allows the user to deactivate swap (a2sd noswap to deactivate, a2sd swap to activate)

7. Creates the /system/sd mount if one doesn't exists.

8. Checks the symlinks and flag files. Reports to the user what needs to be repaired. Also checks the Busybox installation. (a2sd check)

9.Repair symlinks based on active flag files. Also repairs missing or incomplete busybox installations. (a2sd repair)

10. Zipaligns all programs in /data/app and /data/app-private. Using the align command, /system/app will also be zipaligned. You can turn on and off ZipAlign (a2sd zipalign / a2sd nozipalign)

11. Wipes dalvik-cache without the need to go into a recovery partition (a2sd resetcache)

12. Checks how much space is being used on your ext partition (a2sd diskspace)

13. Repairs missing or corrupted market in Android 2.1 (a2sd fixmarket)

to use the command: adb remount -> adb shell -> type the command in red

How to tell if it is working:

1. On your computer in the Android SDK Tools directory, type adb shell

2. In the adb shell, type /system/bin/a2sd check

3. Read the report. It will tell you if all is well. If you see anything with [X], type a2sd repair

If you want to move the apps to the SD card (when the program doesn't do it for you or you have moved the apps to the internal storage in the past):

1. Enter the ADB Shell by typing adb shell

2. In the ADB shell, type /system/bin/a2sd install

To prevent A2SD from running, type /system/bin/a2sd remove