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.


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

The “” 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


  •  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

    • 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’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.

    • 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


  1. Boot into default CWM4 recovery or Stock recovery. Flash
  2. Download “” 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 “”. 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 “” 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)


Download Links:
Kernel: (11.83 MB)
Bugfix: (4.83 MB)
FS Converter: CF-Root-S5830_ext4-v1.3u3.apk (1.44 MB)
Services: (840.8 KB)
(834.0 KB) KB) KB) KB)
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 “” 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, but I have no Idea how to install the file.


  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: Logo

You are commenting using your 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 )

Connecting to %s