NOTE: ROMS THAT ARE ORM (ORIGINAL ROM FROM MANUFACTURER...ALSO KNOWN AS STOCK ROMS) WILL NOT RUN ANY VERSION OF APPS2SD EXCEPT FROYO. The code to launch Darktremor Apps2SD is not present in the init.rc. The only way Apps2SD will work with a Stock ROM is if the init.rc has been modified with the commands to run Apps2SD.
Since you are flashing this version to your phone, do a nandroid backup of your phone before starting these instructions. Also, it is preferred you use RA 1.6.2 (or greater) Recovery, Godspeed Recovery or ClockworksMod Recovery.
- Download the program: http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.3-beta02-signed.zip
- Determine if you have setup your sd card with an ext partition
if you have setup your sd card already (existing users of Darktremor Apps2SD or other Apps2SD programs...any version):
Copy the program to your sd card. Reboot into recovery
if you have not setup your sd card (for those new to Darktremor Apps2SD):
backup your sd card to your computer. I can't stress this enough, as partitioning will wipe the entire card. Reboot into recovery In android system recovery, select partition sdcard In the partition sdcard menu, select partition sd Follow the instructions on the phone to partition your sd card. You can optionally set a swap file while you are partitioning your sd card. In the partition sdcard menu, select sd:ext2 to ext3. Follow the instructions on the screen. Only perform this step if you want ext4 and your rom supports it: in the partition sdcard menu, select sd:ext3 to ext4. Follow the instructions on the sdcard. Press the back button on the phone to go back to the main menu. Put the Darktremor file on the sd card (and all your other files you backed up earlier) by selecting usb-ms toggle and transfer the files to your computer.
- In recovery, select flash zip from sdcard.
- In flash zip from sdcard, select the Darktremor package file you downloaded earlier. Press home (or Power Button for newer phones) to flash.
- Reboot phone.
Note: Due to an issue with the Sprint Hero source code, ext4 partitions may only work intermittently. You may not want to use an ext4 partition unless the rom you are using is certified to have a working ext4 partition. If you have issues with ext4, repartition your sd card for ext3.
Note: If you apply Darktremor Apps2SD and still notice internal storage is decreasing, this is due to the dalvik-cache not being moved. By default, Darktremor Apps2SD will not move the dalvik-cache on boot.
Reworked the EXT mounting code to search for SD cards on all block devices from mmcblk0 to mmcblk9. This should make Darktremor Apps2SD more compatible with other roms. Added in Beta 01. Added experimental support for moving the /data/data directory to the SD card. Users can move the directory between SD and Internal Storage in Beta 01. More code for autocorrection, boot protection and allowing a2sd check to report the /data/data status was added in Beta 02. Checks kernel support for native Linux partitions (EXT2, EXT3 or EXT4). If none are present, program will activate boot protection and end program. This prevents time being wasted searching for a partition to mount when kernel support is not available. Added in Beta 02. Does more checks for commands in the native rom version of Busybox. Now will check all Busybox commands used in Darktremor Apps2SD and will revert to using the Busybox packaged in Darktremor when a command is missing in the native Busybox. This will prevent any issues that occur when a Busybox command is not present. Added in Beta 02. Beta 02 fixes code that was accidentally broken in Beta 01. Most of this is related in using the incorrect variable to reference Busybox. Added new commands:
a2sd datasd and a2sd nodata: These commands move the /data/data directory between the SD card and Internal Storage [Beta 01]. a2sd forcecheck: This command instructs Darktremor Apps2SD to perform a detailed filesystem check upon next reboot. This will add time to the reboot process for one single reboot [Beta 03]. a2sd convert-ext3: This command converts an EXT2 partition to an EXT3 partition. EXT3 partitions have better unmount protection because of journaling [Beta 03]. a2sd convert-ext4: This commands converts an EXT3 partition to an EXT4 partition. Use this command as your own risk as many roms do not have EXT4 support and will not mount the partition. (Beta 04)
Rebuilt the entire dalvik-cache move routines. New code is simpler. [Beta 03] Rebuilt the entire repair routines. New code is much simpler. (Beta 04) Created simpler Boot Protection code. (Beta 04) Reworked a2sd program file itself to fix the boot loop issues. (Beta 04) Change the PS functions from using Busybox to using Toolbox. (Beta 04) Added check code for Busybox commands. If native Busybox doesn't have a command needed for Darktremor, the Busybox packaged with Darktremor will be used for that command. (Beta 04) SD Card goes through individual mount commands now. This may fix the EXT4 partition mounted as EXT2 issue. (Beta 04) Added new program: fix_permissions. This is ran after any move relating to Programs or Program Data. (Beta 04) Phone will reboot if Programs, Dalvik-Cache or Program Data is moved. This maintain integrity in the system. (Beta 04) Added new commands: usedtbusybox and usedefaultbusybox. The first command forces the program to use the Busybox supplied by Darktremor package. The second command returns all Busybox functions to normal (Beta04). Convert-ext3 and convert-ext4 now does the conversion during boot before the SD card is mounted. (Beta 04) Updated included Busybox from 1.15 to 1.17-3 (Beta 04) Fixed bugs in all the programs and the updater-script. Added support for Oxygen 2.0 (they have a different way of signaling the init.rc that they are finished) (Beta 03). Filesystem check code makes its triumphant return (Beta 03). SD Fix for EVO is included...runs at startup. May work for other phones.
If you want to move the dalvik-cache to the sd card, type:
a2sd cachesd (move dalvik to sd card)a2sd cachesdreset (move dalvik to sd card and clears contents of dalvik-cache)a2sd cachepart (move dalvik to cache partition)a2sd cachepartreset (move dalvik to cache partition and clears contents of dalvik-cache)
Make sure your SD card is at least a class 4 before doing this, otherwise you may run into performance issues, unless you move the dalvik to the cache partition.
You still have other caches (i.e. Browser caches) and other data being stored and updated in internal storage, so the number of free space will continue to drop, but at a slower rate (unless you are engage in heavy web surfing, tweeting or facebook socializing.)
This is the Darktremor Apps2SD Command Line Help guide. This is the same guide you will see if you type a2sd help in Darktremor Apps2Sd 2.7.5.3:
The syntax to run any of this commands is the following:
a2sd <command></command>
...where <command> is one of the following: </command>
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.
- install
Same as reinstall. This was brought back for
users of version 2.7.
- remove
Moves free and paid apps to the internal phone
storage. Creates the No A2SD flag file.
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.
- 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 75%, type:
a2sd swappy75
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.
- 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 reboot.
- nocache
Moves Dalvik cache files to the internal phone
storage. Removes all Dalvik Cache flags.
- nocachereset
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 phone.
Program Data Commands:
- datasd
Moves /data/data to the SD card.
- nodata
Restores /data/data to the internal storage.
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.
- partlist
Shows the supported EXT partitions
available for your particular ROM.
- fixapk
Fixes permissions on programs.
- usedtbusybox
Uses the Darktremor packaged Busybox. Used
to diagnose issues.
- usedefaultbusybox
Reactivates Busybox scanning.
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:
- 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
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
- 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
- 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
- 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
- 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
- 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
- lowmem-default
Sets the internal memory killer back to phone default
settings.
SD Card Maintenance Commands
- forcecheck
Forces Darktremor Apps2SD to force check the
EXT partition on the SD card when phone is
rebooted.
- convert-ext3
Converts an EXT2 partition to an EXT3 partition.
Note: Boot process will take longer due to the
conversion.
- convert-ext4
Converts an EXT3 partition to an EXT4 partition.
Note: You must execute a2sd convert-ext3 first if you
are trying to convert from EXT2 to EXT4.
Boot process will take longer due to the
conversion.
Original Post: XDA
Developer: TKirton
No comments:
Post a Comment