How to flash CF-Root kernel (Ex with BLN & swap) on Samsung Galaxy Ace (Gingerbread)

Previously we showed you how to flash CF-Root kernel on Samsung Galaxy Ace but that version of kernel didn’t include BLN & swap support. Today we are going to show you how to flash this kernel on your stock Gingerbread (versions listed below). This tutorial is not meant for new users.
If you don’t already know, CF-Root kernel is very popular kenel for Samsung Galaxy Ace. It provides many popular features like Ext4 file system & many useful scripts.As of now all the Customs Roms are based on this kernel.

Note : This is not a custom firmware. It is only a kernel for Samsung Galaxy Ace S5830 . You do NOT need to wipe anything for this patch. This will  work with KPH/KPN/DDKQ5/KPB/KPO versions of GB.

Requirements:

  • You need to have a firmware already on your device.
  • Root

The “CF-Root-S5830-v3.7-b82-ex.zip” package also contains a modified CWM required to work with this kernel.

Features (Only in the Ex Version)

  • Swap and BLN support
    Using a kernel compiled from source, the config file extracted from DXKPB device (/proc/config.gz) with small modification
    Need a patched Service Manager (services.jar) installed on deodexed framework/Rom for fully working BLN. Backup your /system/framework/services.jar first! (Step 6)
  • BUGFIX: b82-ex-fixed
    Fix for following bugs:

    1. Auto boot when plugged into the charger/USB from off state or turned off when the device connected to charger/USB
    2. Gallery3D freeze after browsing some pictures, and then fail to display 3D textures in all 3D app

Features:

  •  Root, su binary v2.3.2-efgh
  • Superuser v2.3.6.3
  • Busybox v1.17.2 for the boot image and v1.16.2  for the recovery image (from CWM)
  • A modified CWM
  • CWM Manager
    Features:

    • Boot to CWM
    • Backup firmware
    • Restore backups (SGA: Do not use CWM Manager to restore any backup for now, use CWM Advance Backup directly)
    • Delete backups
    • Install APKs
    • Flash CWM update.zip’s
    • Flash kernels (zImage, zImage in TAR, zImage in ZIP, zImage in TAR in ZIP) (SGA: you have to rename boot.img to zImage)
  • Tweak Manager CF-Root includes a number of tweaks that are applied on startup. You can use to select which tweaks to apply.
    Kernel: Scheduler option always disabled on boot.
    Kernel scheduler tweak not working on S5830.
  • Ext4 Manager CF-Root supports ext4 mounts for the main mount points. Filesystem conversion between rfs and ext4, however, requires a secondary external package ‘CF-Root-S5830_ext4-v1.3u3.apk’ (Step 3).
    ou can use the “ext4” app to convert between filesystems, manually check the filesystem, etc.
    No need to revert back to rfs before flashing a new stock Gingerbread Rom. Tested using XXKPH, XWKPN, and DXKPB.
    Features:

    • Show current filesystem status
    • Convert between rfs <=> ext4 and back
    • Manual fsck
    • Selects either internal or external sdcard for temporary storage, depending on which has the most space
    • Automatically reverts on conversion failure

    Please note that when first using the tool to convert, you will probably notice /system is not converted. If this happens, it is because /system does not have enough free space for the extra space overhead of ext4. You will need to free up some space on /system before the conversion will succeed.

  • Dark Tremor a2sd:
    A modified DT’s apps2sd to guarantee no interference with Wi-Fi, Bluetooth, GPS etc. (Step 4)
    By default, CF-Root  doesn’t automatically starts a2sd script during boot.
    Now have “DT: Auto start” option to turn on/off Darktremor’s a2sd script on boot. Don’t worry, Darktremor a2sd setting is persistent, even if you turn off the auto start script. It’s safer to turn a2sd auto start off!
  • Custom boot / init scripts
  • Custom boot animations and binaries

Instructions

  1. Boot into default CWM4 recovery or Stock recovery. Flash CF-Root-S5830-v3.7-b82.zip.
  2. Download “b82-ex-fixed.zip” to SD card from below and then install it via “CWM Manager – Flash kernel” or using CWM recovery.
  3. Download the ‘CF-Root-S5830_ext4-v1.3u3.apk’ from below.
    Copy it to your SD card.
    Start CWM Manager & select “Install APK”, point to the APK and tap to install.
  4. Download “CF-Root-S5830_dtapps2sd-v1.2.zip”. Copy it to the root of your SD card. Flash it using ‘Modified CWM recovery’ or CWM Manager. Flash update.
  5. Run Tweak Manager and select “DT: Auto start” option, then “Apply changes” to reboot your phone.
    When booting, bootloop will occur several times during DT apps2sd activation for the first time.
  6. Backup your ‘/system/framework/services.jar’ by copying it somewhere else using a file manager.
    Now download “CF-Root-S5830_yourfirmware-services.zip” from below & flash it using CWM manager or CWM recovery.
    (Imp.- Select the proper zip matching with your firmware number. You need to deodex your Rom before flashing patched services.jar)

Done!!

Download Links:
Kernel:
CF-Root-S5830-v3.7-b82-ex.zip (11.83 MB)
Bugfix: b82-ex-fixed.zip (4.83 MB)
FS Converter: CF-Root-S5830_ext4-v1.3u3.apk (1.44 MB)
A2SD: CF-Root-S5830_dtapps2sd-v1.2.zip(1.08 MB)
Services:
CF-Root-S5830_KPH-services.zip (840.8 KB)
CF-Root-S5830_KPN-services.zip
(834.0 KB)
CF-Root-S5830_DXKPB-services.zip(847.9 KB)
CF-Root-S5830_XWKPO-services.zip(835.6 KB)
CF-Root-S5830_DDKQ5-services.zip(850.4 KB)

DDKQ6-services.zip
Important: Installing busybox over the included version is not recommended.

It is possible to install a custom busybox. However, this is not without risk. CF-Root makes heavy use of scripting, and many CF-Root scripts rely on the internal busybox version. If you do install a seperate busybox version (always use “stericson” installer!), install it to /system/xbin. Installing it to /system/bin will mess things up for sure. Even if you do that part right, it may still break CF-Root, so make sure to make a backup before trying.
Special thanks to the developers chainfire for developing the Kernel & ketut.kumajaya for porting it to SGA.

[via xda-developers]

Related Articles:
How to setup BLN (Back Light Notifications) on your phone? Coming soon.

16 thoughts on “How to flash CF-Root kernel (Ex with BLN & swap) on Samsung Galaxy Ace (Gingerbread)

  1. I dont wats going wrong i am performing every step but my phone doesnt gets into the boot lopp
    and after flashing the services patch it gets stucked at samsung galaxy ace screen

    DDKQ6 service patch

  2. hi….
    i’ve 2.3.5 xkws2 stock firmware, not rooted… can i flash this kernel…?? if not thn plz tell me how can i root my ace…! tried that “update.zip” n superuser got installed my no root acess…. I badly need to root my ace n i’m very new to android thing so plz help me…

    thanX in advance….

  3. Hi,

    i’ve failed to do this, how do I reboot to factory settings after doing stap 6 with the wrong firmwire? I pikked the firmwire which looked the most like mine. But now it won’t start anymore. (I don’t think I back upped anything -,-)

    Thanks and sorry for my bad English

  4. Pingback: Requested behaviour from ace, possible? - Android Forums

  5. just to let you know, the a2sd link has the wrong file attached. just copy the text and Google it to find the proper download link to the file

  6. Pingback: Your Ultimate Guide to Samsung Galaxy Ace DDKQ6 « Ace Tips

  7. Hi,

    I have go through the tutorial step by step and so far I have no issue.

    But can you tell me how to install the service.jar. Mine using CF-Root-S5830_DXKPB-services.zip, but I have no Idea how to install the file.

    thanks.

  8. Pingback: How to Overclock Samsung Galaxy Ace « Ace Tips

  9. Pingback: How to flash CF-Root kernel on Samsung Galaxy Ace (Gingerbread) « Ace Tips

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s