[Galaxy Ace S5830 Android Development] psndna88:
PSN>> MEMORY-MOD-v2 SwapAll-v3.0 KERNEL MODDER

I decided to make this script so that i don't have to keep on modding kernels as new ones are released (AOSP/AOKP specially)

USE THIS AT YOUR OWN RISK BECAUSE I CANNOT TEST IT BECOZ NO ACE ANYMORE​

INFO:

MEMORY-MOD

SD-EXT partition (/dev/block/mmcblk0p2) on phone's memory card is mounted as /data instead of original internal data partition(stl13)

SWAPALL v3.0

Original Internal Storage (/dev/stl13 on stock GB & /dev/block/stl13 on AOSP) is formatted to be used as swap partition entirely so as to fully take advantage of fast internal data partition and relieving read/write load on memory card.

The third swap partition on memory card created using CWM or MiniTool or Gparted (/dev/block/mmcblk0p3) IF FOUND is used as swap space, with lower priority . So it will be used for swapping only when above mentioned swap partiton on internal data storage is full.

Swappiness set at 30.

Q.) WHATS NEW WITH MEMORY-MOD v2 IN THIS "KERNEL PATCHER" ???

A.) It simply patches an existing flashed kernel on phone

It extracts an existing flashed kernel from the phone

Then it extracts ramdisk from the kernel

Then it patches the required files on ramdisk

Then it builds back ramdisk and compiles back boot.img

Then it flashes the modded boot.img on phone to the phone

NOTE:

1: OFFICIAL CM7.2 roms with unmodified kernels do not have SWAP support :crying: so i recomend using a custom CM7 GB kernel then apply this mod else you will get increased memory but no swapall feature, resulting in slow system.

2: DO NOT use USB MASS STORAGE with linux computers because they mount your /sd-ext which is already being used as /data and corrupts it.

PREREQUISITES:

1: Custom kernel to be flashed before installing this script (STOCK based/AOSP/AOKP with ext4 support and init.d support but not Mem-Modded)

2: SD-EXT partition on sdcard formatted to ext4 (u can use this tool PSN_EXT4_Recovery_based_SD-EXT_ONLY_Format_Tool-signed.zip)

3: SWAP support implemented in kernel

4: Atleast 2.1 MB of free space available in /system

5: An SDCARD of CLASS 6 or more (class 4 users please dont report of ACE crawling slow!)

NOTE:

1: for fresh install only; user data on original /data will not be moved on /sd-ext; after flashing this script you will have to setup ur ace again.

1: after flashing this you wont be able to directly do a nandroid backup in cwm; so wipe(format) "/data" in recovery before attempting nandroid backup.

2: your phone will boot always as first boot with this script if no memory-card inserted or memory-card inserted without a sd-ext partition

3: Memory-Mod v2 will delete the init.d scrips of adrenaline engine which when unmodified is not compatible with Memory-Mods

4: if your rom has Adrenaline Engine 4.3 or 4.4 which has not been modified by for compatibility with Memory-Mod then you can reflash a compatible Adrenaline Engine 4.4 by flashing this(STOCK version / CM version) AFTER flashing the MEMORY-MOD script.

5:

to reflash newer fixed versions of this mod you have to reflash ur non-patched kernel or rom and then flash this kernel patcher in recovery.

Some info:

PSN_STOCK-GB_MEM-MOD-v2_SWAPALLv3.0 : will work on kernels like batteryextender and nims

PSN_CM7.2-GB-official_MEM-MOD-v2_SWAPALLv3.0 : will work on kernels on official cm7.2 roms

PSN_CM10.1-JB_MEM-MOD-v2_SWAPALLv3.0 : will work on JB 4.2.2 based roms like PAC.. should work on others too

PSN_CM9-ICS_MEM-MOD-v2_SWAPALLv3.0-signed.zip : is for CM9 based unofficial roms

PSN_CM9-ICS-MACLAW-FINAL3+_MEM-MOD-v2_SWAPALLv3.0-signed.zip : is for ICS CM9 Maclaw final 3 and above roms

UNINSTALL METHOD:

(to get back to old-school 150MB internal data on ace)

1: flash your original non-modded kernel or custom rom

2: flash PSN_factory_reset_EXT4_Recovery_based_Format_Tool-signed.zip

3: you need to setup your phone all over again for old-school 150MB internal data on ace.