inigomontoyasr
Android Enthusiast
Thanks to hroark13, murderousone, interdpth, tkirton, elgubbo, shabbypenguin, and everyone who has helped to get a little more than expected.
This is a modified version 2.7.5.2-1 of Darktremor A2SD. The zip in this post is the only one that works with stock-based Prevail Roms. This will not work with data-to-ext kernels.
- A root enabled ROM
- ClockworkMod Recovery ( Do NOT use ROM Manager!!)
- dta2sd_prevail.zip
Recommended:
- A complete backup of your sd card contents.
Install With CWM
1. Back up your entire sd card contents to a folder on your computer.
2. Place downloaded dta2sd_prevail.zip on SD card
3. Turn off phone
4. Boot into recovery (hold vol up + power)
NOW'S A GOOD TIME TO MAKE ANOTHER BACKUP. OK, Let's Continue.
4. Select - Mounts and Storage > mount /system and /data. When done, press power button to return to main menu.
5. Select - Install zip from sdcard > Choose zip from sdcard > dta2sd_prevail.zip. Confirm. Wait. Return to main menu.
6. Select - Advanced > Partiton sd card > ext size (any) > swap size (any). Wait. This may take some time. When finished, return to main menu.
7. Select - Reboot system now
First boot may take a few minutes while apps are moved.
To see if it worked check the a2sdGUI now in your app drawer
or open a terminal or adb shell with root privileges and type
Code:
a2sd check
What does this do for my phone?
All modifications should be made with the knowledge that you can possibly harm your device. I cannot be held responsible for any errors be they hardware, software, or user.This is Darktremor Apps2SD, a multipurpose program that primarily allows a user to execute applications created for the Android OS on their Secure Digital card (with the proper setup...more on that later). But, Darktremor Apps2SD is all about stability. The goal is to be able for all users of the Android OS to be able to take advantage of a method to run their applications from a secure digital card.
But just because the Darktremor Apps2SD is all about stability, doesn't mean it isn't packed with features:
- Move applications (both free and paid) to the Secure Digital card.
- Move Dalvik Cache to run either from your Secure Digital card or from your cache partition and clears the cache on demand.
- Boot Loop Protection: prevents the phone from boot looping in the event the SD card could not be mounted.
- Dalvik JIT for faster performance on Roms which support it.
- User selectable sizes for the Dalvik heap sizes, allowing a user to freely optimize their system.
- Activate a swap partition on your SD card and sets how often the swap partition is utilized.
- Automatically fixes configuration issues.
- Users can check the free space on their SD card and check the installation to make sure all is setup correctly.
- Runs ZipAlign on demand...this makes your programs load faster.
- Built in help system for easy reference of commands.
- All features can also be reversed without repartitioning your Secure Digital card.
- New logging features assists in troubleshooting issues.
- Commands to set the Low Memory Killer feature at boot time. Great for those people who are the "set it and forget it" type.
- And more...
Download DarkTremor A2SD for Prevail here
Commands to use with terminal emulator or adb
All commands start with a2sd
ex: #a2sd reinstall
or: C:\adb>adb shell a2sd reinstall
would reset the symlinks and make sure your folders are moved to sd card
Darktremor Apps2SD Help
Version 2.7.5.2-1 (2011-01-02)
=================================================
Syntax: /system/bin/a2sd command
All commands create a logfile: /data/dta2sd.log
Command is one of the following
Standard Apps2SD Commands:
--------------------------------------------------
reinstall
Moves free and paid apps to the ext2/ext3/ext4
partition on your secure digital card. Removes
the No 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.
File removed: /data/.noa2sd
remove
Moves free and paid apps to the internal phone
storage. Creates the No A2SD flag file.
File created: /data/.noa2sd
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.
File removed: /data/.noswap
noswap
Creates the No Swap flag. Prevents A2SD from
activating the swap partition.
File created: /data/.noswap
swappyxx
Sets swap partition swappiness value to xx.
Example: To set the swappiness of the swap
partition to 30%, type:
a2sd swappy30
To set at 70%, type:
a2sd swappy70
File created: /data/dtswap
Dalvik Cache Commands:
--------------------------------------------------
cachesd
Moves Dalvik cache files to the ext2/ext3/ext4
partition on your secure digital card. Creates
Dalvik Cache to SD flag.
File created: /data/.dalvikcacahe
File removed: /data/.dcpartition
cachesdreset
Performs the same function as cachesd, plus
erases the contents of Dalvik-Cache, forcing
a rebuild on reboot.
File created: /data/.dalvikcache
File removed: /data/.dcpartition
cachepart
Moves Dalvik cache files to the /cache partition
in your phone. Creates Dalvik Cache to Cache
Partition flag.
File created: /data/.dcpartition
File removed: /data/.dalvikcache
cachepartreset
Performs the same function as cachepart, plus
erases the contents of Dalvik-Cache, forcing
a rebuild on reboot.
File created: /data/.dcpartition
File removed: /data/.dalvikcache
nocache
Moves Dalvik cache files to the internal phone
storage. Removes all Dalvik Cache flags.
File removed: /data/.dcpartition
/data/.dalvikcache
nocachereset
Performs the same function as nocache, plus
erases the contents of Dalvik-Cache, forcing
a rebuild on reboot.
File removed: /data/.dcpartition
/data/.dalvikcache
resetcache
Clears the dalvik cache and restarts 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.
File Created: /data/dtsysdump.txt
swapspace
Shows swap space statistics for all
swap space active on the phone.
partlist
Shows the supported EXT partitions
available for your particular ROM.
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.
File Created: /data/.zipalign
nozipalign
Prevents ZipAlign from executing during the
boot process. Removes the ZipAlign flag file.
File Removed: /data/.zipalign
Dalvik Setting Commands:
--------------------------------------------------
jit
Installs DalvikVM JIT.
WARNING: Do not run this command if your phone
has NAND protection active.
nojit
Removes DalvikVM JIT.
WARNING: Do not run this command if your phone
has NAND protection active.
heapsizexx
Sets Dalvik Heap Size to xx, or heapsize0 resets
heap size to default settings.
Ex: If you want to set the Dalvik Heap Size to
24mb, type a2sd heapsize24
File Created: /data/a2sdheapsize (value > 0)
File Removed: /data/a2sdheapsize (value = 0)
Low Memory Killer Commands:
----------------------------------------------------
lowmem-moderate
Sets the internal memory killer to the following
settings:
Foreground Apps: 1536 pages / 6 MB
Visible Apps: 3072 pages / 12 MB
Secondary Server: 4096 pages / 16 MB
Hidden Apps: 7680 pages / 30 MB
Content Provider: 8960 pages / 35 MB
Empty App: 10240 pages / 40 MB
Create File: /data/.lmmoderate
Remove File: /data/.lmoptimum
/data/.lmstrict
/data/.lmaggressive
/data/.lmultimate
/data/.lmextreme
lowmem-optimum
Sets the internal memory killer to the following
settings:
Foreground Apps: 1536 pages / 6 MB
Visible Apps: 2048 pages / 8 MB
Secondary Server: 4096 pages / 16 MB
Hidden Apps: 10240 pages / 40 MB
Content Provider: 12800 pages / 50 MB
Empty App: 15360 pages / 60 MB
Create File: /data/.lmoptimum
Remove File: /data/.lmmoderate
/data/.lmstrict
/data/.lmaggressive
/data/.lmultimate
/data/.lmextreme
lowmem-strict
Sets the internal memory killer to the following
settings:
Foreground Apps: 1536 pages / 6 MB
Visible Apps: 2048 pages / 8 MB
Secondary Server: 4096 pages / 16 MB
Hidden Apps: 15360 pages / 60 MB
Content Provider: 17920 pages / 70 MB
Empty App: 20480 pages / 80 MB
Create File: /data/.lmstrict
Remove File: /data/.lmmoderate
/data/.lmoptimum
/data/.lmaggressive
/data/.lmultimate
/data/.lmextreme
lowmem-aggressive
Sets the internal memory killer to the following
settings:
Foreground Apps: 1536 pages / 6 MB
Visible Apps: 3072 pages / 12 MB
Secondary Server: 4096 pages / 16 MB
Hidden Apps: 21000 pages / 82 MB
Content Provider: 23000 pages / 90 MB
Empty App: 25000 pages / 98 MB
Create File: /data/.lmaggressive
Remove File: /data/.lmmoderate
/data/.lmoptimum
/data/.lmstrict
/data/.lmextreme
/data/.lmultimate
lowmem-extreme
Sets the internal memory killer to the following
settings:
Foreground Apps: 1536 pages / 6 MB
Visible Apps: 3072 pages / 12 MB
Secondary Server: 4096 pages / 16 MB
Hidden Apps: 38400 pages / 150 MB
Content Provider: 40960 pages / 160 MB
Empty App: 43520 pages / 170 MB
Create File: /data/.lmextreme
Remove File: /data/.lmmoderate
/data/.lmoptimum
/data/.lmstrict
/data/.lmaggressive
/data/.lmultimate
lowmem-ultimate
Sets the internal memory killer to the following
settings:
Foreground Apps: 1536 pages / 6 MB
Visible Apps: 3072 pages / 12 MB
Secondary Server: 4096 pages / 16 MB
Hidden Apps: 51200 pages / 200 MB
Content Provider: 57600 pages / 225 MB
Empty App: 64000 pages / 250 MB
Create File: /data/.lmultimate
Remove File: /data/.lmmoderate
/data/.lmoptimum
/data/.lmstrict
/data/.lmaggressive
/data/.lmextreme
lowmem-default
Sets the internal memory killer back to phone default
settings.
Remove File: /data/.lmmoderate
/data/.lmoptimum
/data/.lmstrict
/data/.lmaggressive
/data/.lmextreme
/data/.lmultimate