[Epic 4G Android Development] BThomas22x:
A2SD Walkthrough!! (Also found in post #2, part 3.)

BThomas22x's A2SD (Based Off Darktremors A2SD), Modified to

work on Epic ROM's.

A2SD Download:

CLICK HERE to download A2SD Files. (Flash through clockwork)

Setting up A2SD...

1. The very first thing you have to do is install the VIPERspeed Lag Fix. You don't need to install the actual lagfix if you don't want to, but you'll need to install the EXT2Tools. So scroll down on the menu page and hit "Install EXT2Tools". Let it run through it's process, then back out of the VIPERspeed Lag Fix.apk. (If you want to install the Lag Fix, please wait till after this process is complete as it may cause problems.)

2. Download Terminal Emulator from the market, and install. Open Terminal Emulator and type the command su to allow Superuser permission.

3. Type boota2sd. It will run through it's process, and at the end, it will probably force close Titanium Backup. This is fine, don't panic.

4. At this point, a2sd will be setup on your phone, but everything is still running from internal memory, so we need to fix this. Type fixa2sd and it will start running the Apps from the sdcard. I'm currently trying to figure out how to transfer the Dalvik still, but as soon as i find out, i'll post it.

Below are a list of commands to help you with a2sd. You do NOT need to do any of them if you do not wish, they are just there for your convenience. If you wanna do something, you're more than welcome to, just be careful of what you do, as to not undo anything you've done.

A2SD Commands

So there's been some issues with the A2SD program that's built into the phone. Hopefully this list of commands will help you to get everything going smoothly. If any of these commands do not work, let me know and i will double check it.

To launch these commands, you simply type the following:

"a2sd [Name of command here]"

ex: "a2sd reinstall" (Minus the "" of course)

reinstall

Moves free and paid apps to the ext2/ext3/ext4 partition on your secure digital card. Removes the a2sd flag file. This is used if you have already executed an a2sd remove command. Otherwise, this part is automatically performed when apps2SD is started.

Swap Partition Commands

reswap

Removes the No Swap flag. Allows A2SD to activate the swap partition. This is used if you have already executed an A2SD noswap command. Otherwise, this part is automatically performed when Apps2SD is started.

noswap

Creates the No Swap flag. Prevents A2SD from activating the Swap partition.

Dalvik-Cache Commands

cachesdreset

Performs the same function as cachesd, plus erases the contents of Dalvik-Cache, forcing a rebuild on reboot.

cachepart

Moves Dalvik-Cache files to the /cache partition in your phone. Creates Dalvik-Cache to Cache partition flag.

cachepartreset

Performs the same function as cachepart, plus erases the contents of Dalvik-Cache, forcing a rebuild on boot.

cachenocache

Moves Dalvik-Cache files to the internal phone storage. Removes all Dalvik-Cache flags.

cachenocachereset

Performs the same function as nocache, plus erases the contents of Dalvik-Cache, forcing a rebuild on reboot.

resetcache

Clears the dalvik cache and restarts the phone.

Apps2SD Diagnostic Commands

check

Performs a symlink and flag file check on your setup. Outputs a report that shows you if there are issues with your Apps2SD setup.

repair

Performs a repair of all symlinks based on flag file activation.

diskspace

Shows disk space statistics for the ext partition.

sysinfo

Displays information about your phone, partitions, swap, and more. Also writes a dump file that has an entire profile of your phone. This is for troubleshooting only.

swapspace

Shows swap space statistics for all swap space active on the phone.

ZipAlign Commands

align

Performs a one-time zipalign on all APK files in /data/app, /data/app-private and /system/app.

zipalign

Allows ZipAlign to execute during the boot process. Creates the ZipAlign flag file.

nozipalign

Prevents ZipAlign from executing during the boot process. Removes the ZipAlign flag file.

Dalvik Setting Commands

defaultheap

Resets the Dalvik heap size to the default heap size.

smallheap

Sets the Dalvik heap size to the default heap size of 16MB.

largeheap

Sets the Dalvik heap size to the default heap size of 24MB.

jumboheap

Sets the Dalvik heap size to the default heap size of 32MB.

Low Memory Killer Commands

lowmem-moderate

Sets the internal memory killer to the following settings:

Foreground Apps:1536 pages/ 6MB

Visible Apps: 3072 pages/ 12MB

Secondary Server: 4096 pages/ 16MB

Hidden Apps: 7680 pages/ 30MB

Content Provider: 8960 pages/ 35MB

Empty App: 10240 pages/ 40MB

lowmem-optimum

Sets the internal memory killer to the following settings:

Foreground Apps: 1536 pages/ 6MB

Visible Apps: 2048 pages/ 8MB

Secondary Server: 4096 pages/ 16MB

Hidden Apps: 10240 pages/ 40MB

Content Provider: 12800 pages/ 50MB

Empty App: 15360 pages/ 60MB

lowmem-strict

Sets the internal memory killer to the following settings:

Foreground Apps: 1536 pages/ 6MB

Visible Apps: 2048 pages/ 8MB

Secondary Server: 4096 pages/ 16MB

Hidden Apps: 15360 pages/ 60MB

Content Provider: 17920 pages/ 70MB

Empty App: 20480 pages/ 80MB

lowmem-aggressive

Sets the internal memory killer to the following settings:

Foreground Apps: 1536 pages/ 6MB

Visible Apps: 3072 pages/ 12MB

Secondary Server: 4096 pages/ 16MB

Hidden Apps: 21000 pages/ 82MB

Content Provider: 23000 pages/ 90MB

Empty App: 25000 pages/ 98MB

lowmem-extreme

Sets the internal memory killer to the following settings:

Foreground Apps: 1536 pages/ 6MB

Visible Apps: 3072 pages/ 12MB

Secondary Server: 4096 pages/ 16MB

Hidden Apps: 38400 pages/ 150MB

Content Provider: 40960 pages/ 160MB

Empty App: 43520 pages/ 170MB

lowmem-ultimate

Sets the internal memory killer to the following settings:

Foreground Apps: 1536 pages/ 6MB

Visible Apps: 3072 pages/ 12MB

Secondary Server: 4096 pages/ 16MB

Hidden Apps: 51200 pages/ 200MB

Content Provider: 57600 pages/ 225MB

Empty App: 64000 pages/ 250MB

lowmem-default

Sets the internal memory killer back to phone default settings.

I hope this helps for everyone. If you need anything else, just let us know.

Team VIPER.