[Galaxy Ace S5830 Android Development] psndna88:
[KERNEL][STOCK GB 2.3.x] 14-12-2012 PSN>> Kernel Memory-Modded SWAPALL v3.0 & SuperSU

Presenting users of stock roms and stock-based custom roms for S5830(Galaxy ACE),

PSN>> kernel

Features:

1: Compiled from Battery Extender 1.5.1 sources. (thanks to LibiSC)

2: Memory Mod applied (thanks to Doc_cheilvenerdi.org)

3: Swap enabled

4: Optional OC suport (max 960MHz)

5: Default ondemand CPU governor

6: Default deadline I/O scheduler

7: Kernel has inbuilt support for ext3, ext4, cifs filesystems (no kernel modules needed for these)

8: SU binary and apk updated to v3.1.1

9: a2sd suport completely removed from kernel to avoid any interference with memory mod

10: Rest same as in Battery Extender 1.5.1 kernel

Also available nims kernel with memory-mod applied & noswap/swap/swapall versions, OC supported. (thanks to nims11)

also BatteryExtender v1.6 mem-mod swapall-v3.0 OC supported available! (14-12-2012)

also BatteryExtender v1.2 mem-mod swapall-v3.0 SuperSU-0.99 supported available! (03-03-2013)

(UNTESTED COZ NO ACE ANYMORE )

also Space Kernel v4 mem-mod swapall-v3.0 SuperSU-v1.20 supported available! (03-03-2013)

(UNTESTED COZ NO ACE ANYMORE )

REGARDING publishing sources of these kernels: it is completely

same

as the sources posted by LibiSC BatteryExtender 1.5.1 & nims stock OC kernel on github; I haven't made any changes in it whatsoever.

Note:

1: sdext has to be formatted in ext4 only

2: Do not install a2sd or link2sd...or even any other init.d script for memory extension like armurulz script. You will fall into problems.!

3: The original data on internal /data is not moved onto the memory card partition mounted as /data.

4. The memory card sd-ext partition will be used unless phone is switched off and will not be unmounted during USB MASS Storage(only the fat32 partition will be unmounted; ie normal mass storage works perfectly).. BUT, you can physically remove your memory card (safely) only when phone is switched

OFF.

5. When installing apps via apk or google play, they will be moved to sdcard by default(native android app2sd)... so if u want ur phone to always move future apps to be installed in the vast internal storage, do following in android terminal app or adb shell on PC:

su

pm setInstallLocation 1

Q.) What is this MEMORY MOD ??

A.)

Users of fast scards (class 6 or above recomended) can utilise their second sdcard partition (sd-ext) as phone's internal storage (/data) without any link2sd/a2sd/other init.d scripts.

If your sdext partition is 1GB wide, your phones internal memory (/data) will be 1GB wide.. tension free installation & use of apps.

How does it Work:

Scenario 1:

I switch on the Phone, without a MicroSD slotted in or with a microSD with a single FAT32 partition (broken or damaged microSD also suite this scenario...); GingerBread boots as usual!

No Difference!

Pure stock rom flashed via odin(rfs) or stock-based custom roms(ext4) supported.

Scenario 2:

I switch on The Phone with a microSD slotted in (with the second partition formatted as EXT4 filesystem but still EMPTY); Ginger boots acting as if

/data

is completely moved outside to microSD but just WIPED (not true obviously, and the original /data is safe inside the phone), so it resettle it from beginning...

Scenario 3:

I switch on the Phone with the second partition of the microsd (EXT4) up and running (already resettled up for use and with my userdata on it); Ginger simply boots with sdext as /data on microSD with your userdata there and tons of apps just installed from the market...

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

MEMORY-MODDED SwapAll v3.0 kernels:

1: Original Internal Storage (/dev/stl13) 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.

3: 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.

4: Swappiness set at 30 here.

5:

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

6: if you want to revert to any other mem-mod kernel then flash PSN_EXT4_Recovery_based_DATA_ONLY_Format_Tool-signed.zip before flashing other mem-mod kernel, thats it !

7: if you want to revert to other non-modded kernel, just do a factory reset using this tool (PSN_factory_reset_EXT4_Recovery_based_Format_Tool-signed.zip) and you need to setup all again.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Note:

1: Highly recomended for use on fresh installation so that 120-160 MB of free space is available at internal /data storage for swapfile; else u can use INTERNAL DATA STORAGE formatting tool provided.

2: You can easily switch between any swapall kernels but with formatting ONLY the INTERNAL DATA STORAGE using provided tool so as to ensure swapall working.. no need to wipe anythng else :)

3: All Memory-mod kernels are interchangeable; but swap configurations are different !

4: Swapall versons will take approx 5-10 seconds more to boot becuse of swapfile creation on boot ! Later on its quite fast !!!!

5: Nims swapall v2.0+ kernels have bootanimation working !

DOWNLOAD SECTION:-

SWAPALL v3.0 KERNELS:

Battery Extender 1.5.1 swapall v3.0(PSN-edited S2 bootanimation with small size)

Nims GB kernel swapall v3.0 (PSN-edited S2 bootanimation with small size)

Battery Extender 1.6 swapall v3.0

06-11-2012 Nims STOCK GB mem-mod swapall-v3.0 with new bootanimation & SuperSU 0.97 inbuilt

06-11-2012 BatteryExtender 1.5.1 STOCK GB mem-mod swapall-v3.0 with new bootanimation & SuperSU 0.97 inbuilt

(THANKS TO CHAINFIRE)

this will replace Superuser.apk(v3.1.3) and its corresponding su binary with SuperSU(v0.97) and its needed su binary

CWM / RZ RECOVERY BASED FORMAT TOOLS:-

[Thanks to chainfire & Ketut P. K. for their works]

EXT4(non-journalling) format tool to format /data /cache & /sdext to ext4 filesystem (factory reset)

EXT4(non-journalling) format tool to format internal /data only to ext4 filesystem

EXT4(non-journalling) format tool to format only sd-ext to ext4 filesystem

EXT4(non-journalling) format tool to format ALL including /system (but not /sdcard) to ext4 (TARGETED AT ROM COOKS)

Script available to clear dalvik-cache on sd-ext in case of any problem (just in case) :cowboy:

Script available to remove apps2sd (a2sd) & other interfering init.d files from an installed rom :highfive: